effective_test_bot 1.3.4 → 1.3.5

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: e3d5c5ac86961fa0b38c5dd96e7749fbf6de1a570d111e06eaf8120deb65fb3d
4
- data.tar.gz: 18910b3179ab7971734b0bdd1686efb3cfb3fcd195f0fea8cf925473a58d500c
3
+ metadata.gz: 4a17fe103ca39026ff28a4b3b438fe12859f73b7783133777a2a551c88d7890f
4
+ data.tar.gz: c075fa86e25c11cedbf3a5f99195d5ee7bc0472adc476e7ea65e4b92294b0c4c
5
5
  SHA512:
6
- metadata.gz: 9108162d099cd5928979f171c8ed6fdb226853bfe41b277cde7140b85b4b07a7819238059631dbf4a7e602b18f1c8dea8ace0e2af83597ca5df8a34aa103d6b1
7
- data.tar.gz: 216569dc5ae2a99d9e29bc174ba541ba48677228a67c25ff843e92b508f554765b44e185a9d1e24e2bed771a34c1dceccf340a2e6c11ac0af66478f86cafbcbe
6
+ metadata.gz: b423d7b189ed090317e48de57fe50d79a87789dc59106f38447f6864be57b65af5c321cfe6ba7a58f5f4cc07b7a642e2445de9cad5de40ef37bbfc5432c6da19
7
+ data.tar.gz: 10804ee52c3840b8ad28b876e47f8a67fccaa03358b3719c700e97b324cfe673050323e826aa9c0f581065ed0a55b087ab6cdc94578e751c5284b35633b1be90
data/README.md CHANGED
@@ -145,6 +145,16 @@ As well,
145
145
 
146
146
  - `assert_page_normal` checks for general errors on the current page. Checks include `assert_page_status`, `assert_no_js_errors`, and `assert_page_title`.
147
147
 
148
+ ## Object Extras
149
+
150
+ Includes a `stub_any_instance` helper:
151
+
152
+ ```
153
+ String.stub_any_instance(:length, 42) do
154
+ assert_equal "hello".length, 42
155
+ end
156
+ ```
157
+
148
158
  ## Capybara Extras
149
159
 
150
160
  The following quality of life helpers are added by this gem:
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.3.4'.freeze
2
+ VERSION = '1.3.5'.freeze
3
3
  end
@@ -176,8 +176,9 @@ 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 "$('body').click()"
179
+ try_script "ArticleEditor('##{field['id']}').editor.setFocus('start')"
180
+ try_script "ArticleEditor('##{field['id']}').editor.insertContent({html: '#{value}'})"
181
+ try_script "ArticleEditor('##{field['id']}').editor.setFocus('end')"
181
182
  else
182
183
  field.set(value)
183
184
  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.4
4
+ version: 1.3.5
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: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails