effective_test_bot 1.3.0 → 1.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d97aedd61e58203f074d35ab38312f057420ddb5e1a75dcde2c13e783de46e
|
4
|
+
data.tar.gz: 134b31cbf7a3248ff7d50582b3dd1d367f137cbfb84af7087f9028755463b981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a3fd6bde458ec79fca2391f8611e407b9c5be23e92af612e3f18ff2d76ceb1005bac62f78ff601685f2a6cafc2915a7e2791ad8f95511942cef9bd11bc0e1d2
|
7
|
+
data.tar.gz: e564a1ef8f480e2c12c45123c0684e185569d13809183cee1d5512499ecb76629c9d673e191cd87205b9de1614297bd8d1bb8c497d1ada5ae02203a797fe9d5f
|
@@ -17,12 +17,17 @@ module EffectiveTestBotFormHelper
|
|
17
17
|
true
|
18
18
|
end
|
19
19
|
|
20
|
+
def submit_page(label = nil, last: false, assert_path_changed: true, debug: false)
|
21
|
+
submit_form(label, last: last, assert_path_changed: assert_path_changed, debug: debug)
|
22
|
+
end
|
23
|
+
|
20
24
|
# This submits the form, while checking for html5 form validation errors and unpermitted params
|
21
|
-
def submit_form(label = nil, last: false, assert_path_changed:
|
25
|
+
def submit_form(label = nil, last: false, assert_path_changed: false, debug: false)
|
22
26
|
assert_no_html5_form_validation_errors unless test_bot_skip?(:no_html5_form_validation_errors)
|
23
27
|
assert_jquery_ujs_disable_with(label) unless test_bot_skip?(:jquery_ujs_disable_with)
|
24
28
|
|
25
29
|
before_path = page.current_path
|
30
|
+
before_path = 'ignore' unless assert_path_changed
|
26
31
|
|
27
32
|
if test_bot_skip?(:no_unpermitted_params)
|
28
33
|
click_submit(label, last: last, debug: debug)
|
@@ -31,7 +36,7 @@ module EffectiveTestBotFormHelper
|
|
31
36
|
end
|
32
37
|
|
33
38
|
# This is a blocking selector that will wait until the page has changed url
|
34
|
-
assert_no_current_path(before_path)
|
39
|
+
assert_no_current_path(before_path)
|
35
40
|
|
36
41
|
assert_no_assigns_errors unless test_bot_skip?(:no_assigns_errors)
|
37
42
|
assert_no_exceptions unless test_bot_skip?(:exceptions)
|