effective_test_bot 1.1.17 → 1.1.18

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: 8ee71687d90eaf51e986cd0ef30c9e3c92ac784e389721684e556025402b6447
4
- data.tar.gz: c4d73c2e77f900c59697bafb15b223b416992faa6cac36768c20d11ee39e8838
3
+ metadata.gz: 534aa48a763f848d9407f27fe1187a1c272a740be497ef0178a2bc34535a4ecb
4
+ data.tar.gz: 7c4133d51d0fc2a97536ac401c62cfdeec9fccdfff1c40d10ddd734c1563864e
5
5
  SHA512:
6
- metadata.gz: 4f8c4c44a34bdedfca424bccfc0e2b9342f5240dd1de0085be269ec6c995b907bfc2d4a5cbe2f19ea40156e62138063211016ae32594f28f80965e2922f810cd
7
- data.tar.gz: 5001692409e581fdbeeea2cddbcbde07d0714aa509313822454b22fa8583cde03d331701c3445d1e2c9b234171f1ad4098b759b4523d3c537e0407539fadfeab
6
+ metadata.gz: ea9b3e06789011460020d1984e992295981a35a0617ba5110fb84d7b4206ae4427937a2ae7f58224d41defc578f9e2e21f6ff175ca3a8ae775a8e2a17334c02b
7
+ data.tar.gz: 34e0a6fcd8aa7836191820c3951ad97d7dffdbd4b9ca6977c243289f06a241dff01c1c72b24434c8479f43aa3ac55ad71ee60707d51cdc2aaf58c1a4ac5cd5aa
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.1.17'.freeze
2
+ VERSION = '1.1.18'.freeze
3
3
  end
@@ -14,6 +14,7 @@ module WizardTest
14
14
  end
15
15
 
16
16
  paths = []
17
+
17
18
  0.upto(50) do |index| # Can only test wizards 51 steps long
18
19
  assert_page_normal
19
20
 
@@ -23,10 +24,12 @@ module WizardTest
23
24
  # to click the last submit button on the page
24
25
  last = (paths[index-1] == page.current_path)
25
26
 
26
- if defined?(within_form)
27
- within(within_form) { fill_form(defined?(:fills) ? fills : {}); submit_form(last: last); }
27
+ fills = (defined?(:fills) && respond_to?(:fills)) ? fills : {}
28
+
29
+ if defined?(within_form) && respond_to?(:within_form)
30
+ within(within_form) { fill_form(fills); submit_form(last: last); }
28
31
  else
29
- fill_form(defined?(:fills) ? fills : {})
32
+ fill_form(fills)
30
33
  submit_form(last: last)
31
34
  end
32
35
 
@@ -38,7 +41,7 @@ module WizardTest
38
41
  end
39
42
 
40
43
  # Keep going till there's no more submit buttons
41
- break if all("input[type='submit']").blank?
44
+ break if all("[type='submit']").blank?
42
45
 
43
46
  paths << page.current_path.to_s
44
47
  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.1.17
4
+ version: 1.1.18
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: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails