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: 26e683262e1566595e1354fb38ab178e36763c50edf3a6f5d9bca647bd8df76e
4
- data.tar.gz: 52edb3cf280a5f1ae143e34394ded8fdf5aab19e021ba4bb8c1f2a41d53ffcbf
3
+ metadata.gz: 72d97aedd61e58203f074d35ab38312f057420ddb5e1a75dcde2c13e783de46e
4
+ data.tar.gz: 134b31cbf7a3248ff7d50582b3dd1d367f137cbfb84af7087f9028755463b981
5
5
  SHA512:
6
- metadata.gz: a68273a9574c1fa18e73a73af64988a1e42889599f6b3389919ea2789d226357def3aa77090cbd87ff2db6650052bc872ac5665f300d942c18628501c425c876
7
- data.tar.gz: 45a472ed4d6750c0c00d968927a4d864365468e0934062caa4e5c041b3da2209779f320601169f4926ce02c1d3dbb00e08d746862d6112ee68ca6eca9f7f350e
6
+ metadata.gz: 5a3fd6bde458ec79fca2391f8611e407b9c5be23e92af612e3f18ff2d76ceb1005bac62f78ff601685f2a6cafc2915a7e2791ad8f95511942cef9bd11bc0e1d2
7
+ data.tar.gz: e564a1ef8f480e2c12c45123c0684e185569d13809183cee1d5512499ecb76629c9d673e191cd87205b9de1614297bd8d1bb8c497d1ada5ae02203a797fe9d5f
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
@@ -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: true, debug: false)
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) if assert_path_changed
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)
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.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect