effective_test_bot 1.3.17 → 1.3.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 211560db6d80a368e6a1782f16936339a79b2fc711f26c76870821d9bdd4b21d
4
- data.tar.gz: 8b5b46b4359c56431f4cc5e4b2de80a05b627569e5229dd1f677320ac4a34cde
3
+ metadata.gz: 22657012b01a860a27bbf2e4ee36a2a34d48c802f33fb9a777810a66f06c02f4
4
+ data.tar.gz: 14b689c23f47ab81cb189fe7a61fa9a40c651bdf09390779bebea08385bdb95a
5
5
  SHA512:
6
- metadata.gz: dddfdfbc86c528f4cfe7f813cd7fdccf2c9a2f521eae9076e7c1e20b6c104b87942bd9bdd570daa16a56053331f0cedc315b5dd9d39f36562b1a9f1a3f540177
7
- data.tar.gz: 51475ed6d4a0c1fa857b9b35b81900c5aee5531c62728eb623aee190d76141ed7ca267096ad2b5dc8a51683bb443ee6b034b9efeeece39154e000f7edf7d2545
6
+ metadata.gz: bffeb270117ad5172eb30be35513ba839d399cab33fd0dd37edd6030286891a3737dfa4aecbdfcad2d9f75e697464d0785de75dbe315f61262731fd11a541007
7
+ data.tar.gz: 92b0010f86c5d6a1de18f3c2774187f20363746bc7ca4719cff23af331193538cc427e9bc280b4a1dac2eed75d3c588ed20877ea65342da26b268c4b26569b31
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.3.17'.freeze
2
+ VERSION = '1.3.18'.freeze
3
3
  end
@@ -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
- try_script "ArticleEditor('##{field['id']}').editor.setContent({html: '#{value}'})"
180
- try_script "ArticleEditor('##{field['id']}').editor.insertContent({html: '#{value}'})"
181
- try_script "ArticleEditor('##{field['id']}').editor.build()"
182
- try_script "ArticleEditor('##{field['id']}').editor.getContent()"
183
- try_script "$('body').click()"
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
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.17
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-07-11 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails