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 +4 -4
- data/README.md +10 -0
- data/lib/effective_test_bot/version.rb +1 -1
- data/test/support/effective_test_bot_form_filler.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a17fe103ca39026ff28a4b3b438fe12859f73b7783133777a2a551c88d7890f
|
4
|
+
data.tar.gz: c075fa86e25c11cedbf3a5f99195d5ee7bc0472adc476e7ea65e4b92294b0c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
@@ -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.
|
180
|
-
try_script "
|
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
|
+
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-
|
11
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|