effective_test_bot 1.3.5 → 1.3.7

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: 4a17fe103ca39026ff28a4b3b438fe12859f73b7783133777a2a551c88d7890f
4
- data.tar.gz: c075fa86e25c11cedbf3a5f99195d5ee7bc0472adc476e7ea65e4b92294b0c4c
3
+ metadata.gz: c8afeb68eaeb58c0d615fcacf959fa52cfc6a0086edfd9aac72ecd7074c3c85f
4
+ data.tar.gz: 12a5979dbe8a65cb48e348cb28707c652b8f54cf362dffb60dd19b94bbe65cbe
5
5
  SHA512:
6
- metadata.gz: b423d7b189ed090317e48de57fe50d79a87789dc59106f38447f6864be57b65af5c321cfe6ba7a58f5f4cc07b7a642e2445de9cad5de40ef37bbfc5432c6da19
7
- data.tar.gz: 10804ee52c3840b8ad28b876e47f8a67fccaa03358b3719c700e97b324cfe673050323e826aa9c0f581065ed0a55b087ab6cdc94578e751c5284b35633b1be90
6
+ metadata.gz: bb1302de561052019e721e1f183199075bc6b6d4a2906b64fd80466334ecef155f9737077355ab8eba8931e40fd0dacfdc3d790d69c36783c9d976537e23af16
7
+ data.tar.gz: b2dde5b77a15398aa2c7a97a0bb0370c92f312dae0ceedfd74e5e605bfe924e5bd1af6a3ade358d46e02421ff771935c7e747c2aa898b6afb0b8f88f7698db31
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.3.5'.freeze
2
+ VERSION = '1.3.7'.freeze
3
3
  end
@@ -176,9 +176,10 @@ 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.setFocus('start')"
179
+ try_script "ArticleEditor('##{field['id']}').editor.setContent({html: '#{value}'})"
180
180
  try_script "ArticleEditor('##{field['id']}').editor.insertContent({html: '#{value}'})"
181
- try_script "ArticleEditor('##{field['id']}').editor.setFocus('end')"
181
+ try_script "ArticleEditor('##{field['id']}').editor.build()"
182
+ try_script "ArticleEditor('##{field['id']}').editor.getContent()"
182
183
  else
183
184
  field.set(value)
184
185
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_test_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect