magic_steps 0.0.2 → 0.0.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 +4 -4
- data/lib/magic_steps/page_object/verifications.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74891f424b8f97e0f192143f34082a332fd7000
|
4
|
+
data.tar.gz: f15b89b78e685701b6cbb9959050328895eb1bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7619e7645936f99319cd04239fc99c9e8c96992641e615ce8f6f4b89c8aedd41e2c4912670733cb181cc64605a86cc484d258c963107fb2d3ed34166395393b5
|
7
|
+
data.tar.gz: 9b4e919b974e90011f31645bf0dc5da7ec32ea842ecfd3d15be9023975e1dee8b58f332ba48f1f1d0013392b6546d82ad4d13726ac28c2ec0b9a4d8016a2b992
|
@@ -57,17 +57,17 @@ end
|
|
57
57
|
|
58
58
|
|
59
59
|
# Element within a Page Section within a Page Section should contain text
|
60
|
-
Then(/^the \[(\w+)\] \[(\w+)\] \[(\w+)\] should include the text
|
60
|
+
Then(/^(?:the |)\[(\w+)\] \[(\w+)\] \[(\w+)\] should include the text {(.*)}$/) do |ref, sub_ref, sub_sub_ref, expected|
|
61
61
|
expect { @current_page.ref_to_arr(ref).map {|r| r.ref_to_arr(sub_ref)}.map {|sr| sr.ref_to_arr(sub_sub_ref)}.flatten.map {|e| e.attribute('textContent')} }.to eventually all include(expected)
|
62
62
|
end
|
63
63
|
|
64
64
|
# Element within a Page Section should contain text
|
65
|
-
Then(/^the \[(\w+)\] \[(\w+)\] should include the text
|
65
|
+
Then(/^(?:the |)\[(\w+)\] \[(\w+)\] should include the text {(.*)}$/) do |ref, sub_ref, expected|
|
66
66
|
expect { @current_page.ref_to_arr(ref).map {|r| r.ref_to_arr(sub_ref)}.flatten.map {|e| e.attribute('textContent')} }.to eventually all include(expected)
|
67
67
|
end
|
68
68
|
|
69
69
|
# Element should contain text
|
70
|
-
Then(/^the \[(\w+)\] should include the text
|
70
|
+
Then(/^(?:the |)\[(\w+)\] should include the text {(.*)}$/) do |ref, expected|
|
71
71
|
expect { @current_page.ref_to_arr(ref).map {|e| e.attribute('textContent')} }.to eventually all include(expected)
|
72
72
|
end
|
73
73
|
|