effective_test_bot 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93add1ae387fbce2c003ee5ae560ac6c8cb3dd1f77b8660c2ffbb0b7325ea8f7
4
- data.tar.gz: fd22cfbd1027f71339e2f2f0511a964a52d8589b4fc70779fc50d35f725a6fca
3
+ metadata.gz: ee7799f74d434efa744019fac146df7b9c5c48bc07258f7aaea4aa551b137662
4
+ data.tar.gz: b246f08bc2459df959c6858cbaea894618e5a32038f8af12d1a11beb28af3571
5
5
  SHA512:
6
- metadata.gz: 7f1cbd8016e4d43ac7e8419dd5adcfef7e2203537df1d099ed4f1ce95eba8d51ca18b9f41e35cfac06576e6c49dcd9a1fee0f85e60901621f6809ad4f678ecf4
7
- data.tar.gz: 7505f8821cf8b74f60c3dbea1d3d91903d9b8950770cc489a0dd65397bca86ca67836c4c8bc1bcba7674dec8a458fcc87bc975da6e99f92c668b25a9ccf62d19
6
+ metadata.gz: bf7fd13d2a8004efc83ae2988c100583b10276b6aa8317e42893494086afe039126b26d38593a986b65c3959c86ecf840df0dbfe24064918faa11b0aeec3255d
7
+ data.tar.gz: 73d400bceeb4f33a83554455076aee06d3546c20133d01bd9c0beb6922b2088eea4de61ec38999a47da09f6913823d86abc3dc7d344804d1b723184c96a3d58b
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.7.2'.freeze
2
+ VERSION = '1.7.3'.freeze
3
3
  end
@@ -337,4 +337,8 @@ module EffectiveTestBotAssertions
337
337
  assert_no_exceptions
338
338
  end
339
339
 
340
+ def assert_wizard_step(step)
341
+ assert page.current_url.end_with?("/#{step}"), "Expected current wizard step to be :#{step}, but it was :#{page.current_url.split('/').last}"
342
+ end
343
+
340
344
  end
@@ -19,6 +19,19 @@ module EffectiveTestBotFormHelper
19
19
  true
20
20
  end
21
21
 
22
+ # Asserts were on the given wizard step, fills the form and submits the page
23
+ def submit_wizard_step(step, fills = {})
24
+ if(add_another = fills.delete(:add_another)).present?
25
+ add_another = 1 if add_another == true
26
+ raise("expected add_another to be a number, but it was #{add_another}") if add_another.present? && !add_another.is_a?(Integer)
27
+ add_another.times { click_on('Add Another') }
28
+ end
29
+
30
+ assert_wizard_step(step)
31
+ fill_form(fills)
32
+ submit_page
33
+ end
34
+
22
35
  def submit_page(label = nil, last: false, assert_path_changed: true, wait: true, debug: false)
23
36
  submit_form(label, last: last, assert_path_changed: assert_path_changed, wait: wait, debug: debug)
24
37
  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.7.2
4
+ version: 1.7.3
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: 2025-05-22 00:00:00.000000000 Z
11
+ date: 2025-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails