effective_test_bot 1.3.16 → 1.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/effective_test_bot/version.rb +1 -1
- data/test/support/effective_test_bot_form_filler.rb +12 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22657012b01a860a27bbf2e4ee36a2a34d48c802f33fb9a777810a66f06c02f4
|
4
|
+
data.tar.gz: 14b689c23f47ab81cb189fe7a61fa9a40c651bdf09390779bebea08385bdb95a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bffeb270117ad5172eb30be35513ba839d399cab33fd0dd37edd6030286891a3737dfa4aecbdfcad2d9f75e697464d0785de75dbe315f61262731fd11a541007
|
7
|
+
data.tar.gz: 92b0010f86c5d6a1de18f3c2774187f20363746bc7ca4719cff23af331193538cc427e9bc280b4a1dac2eed75d3c588ed20877ea65342da26b268c4b26569b31
|
@@ -176,11 +176,13 @@ module EffectiveTestBotFormFiller
|
|
176
176
|
try_script "CKEDITOR.instances['#{field['id']}'].setData('#{value}')"
|
177
177
|
elsif article_editor_text_area?(field)
|
178
178
|
value = "<p>#{value.gsub("'", '')}</p>"
|
179
|
-
|
180
|
-
|
181
|
-
try_script "ArticleEditor('##{field['id']}').
|
182
|
-
|
183
|
-
|
179
|
+
|
180
|
+
# There are weird mouse events that prevent form submission.
|
181
|
+
try_script "ArticleEditor('##{field['id']}').stop()"
|
182
|
+
field.set(value)
|
183
|
+
|
184
|
+
try_script "ArticleEditor('##{field['id']}').start()"
|
185
|
+
try_script "ArticleEditor('##{field['id']}').disable()"
|
184
186
|
else
|
185
187
|
field.set(value)
|
186
188
|
end
|
@@ -324,6 +326,10 @@ module EffectiveTestBotFormFiller
|
|
324
326
|
field['class'].to_s.include?('custom-control-input')
|
325
327
|
end
|
326
328
|
|
329
|
+
def effective_radios_input?(field)
|
330
|
+
field['class'].to_s.include?('effective-radios-input')
|
331
|
+
end
|
332
|
+
|
327
333
|
def effective_date_input?(field)
|
328
334
|
field['class'].to_s.include?('effective_date')
|
329
335
|
end
|
@@ -352,6 +358,7 @@ module EffectiveTestBotFormFiller
|
|
352
358
|
return false if article_editor_text_area?(field)
|
353
359
|
return false if ckeditor_text_area?(field)
|
354
360
|
return false if custom_control_input?(field)
|
361
|
+
return false if effective_radios_input?(field)
|
355
362
|
return false if file_input?(field)
|
356
363
|
return false if action_text_input?(field)
|
357
364
|
return true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_test_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.4.10
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: A shared library of rails model & system tests that should pass in every
|