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 +4 -4
- data/lib/effective_test_bot/version.rb +1 -1
- data/test/test_botable/wizard_test.rb +7 -4
- 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: 534aa48a763f848d9407f27fe1187a1c272a740be497ef0178a2bc34535a4ecb
|
|
4
|
+
data.tar.gz: 7c4133d51d0fc2a97536ac401c62cfdeec9fccdfff1c40d10ddd734c1563864e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea9b3e06789011460020d1984e992295981a35a0617ba5110fb84d7b4206ae4427937a2ae7f58224d41defc578f9e2e21f6ff175ca3a8ae775a8e2a17334c02b
|
|
7
|
+
data.tar.gz: 34e0a6fcd8aa7836191820c3951ad97d7dffdbd4b9ca6977c243289f06a241dff01c1c72b24434c8479f43aa3ac55ad71ee60707d51cdc2aaf58c1a4ac5cd5aa
|
|
@@ -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
|
-
|
|
27
|
-
|
|
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(
|
|
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("
|
|
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.
|
|
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
|
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|