cuke_master 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cuke_master/steps.rb +9 -1
- data/lib/cuke_master/version.rb +1 -1
- 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: e7f2be9dc4c220e69768871869c3ec1948c7b3ec
|
4
|
+
data.tar.gz: 6c442ae7769aff596917488ef17124f32c7e824d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b85e25bb4bb08f7867c320f42db6febdb3c2664f04fc86b437cd8a888a4ded8f9df542c19ab02736417f5c07cc92e17295d7d7025b9d4c5b184ee842a5746e8
|
7
|
+
data.tar.gz: 23a6fa93774e74b972febf0ef2ac6bb047208e3728f1f19b6a5391c71e2c42d8276e2493e494af54cdfaa7f69c030c979016d824cfd618eb4ca980b8e9342c91
|
data/lib/cuke_master/steps.rb
CHANGED
@@ -320,7 +320,7 @@ do |tag, attr_name, attr_value, attr2_name, attr2_value|
|
|
320
320
|
assert el[attr2_name] == attr2_value
|
321
321
|
end
|
322
322
|
|
323
|
-
# 4.
|
323
|
+
# 4.4 Check for checked checkbox
|
324
324
|
# I should see tag "div" with attribute "id" filled in "james"
|
325
325
|
Then(/^I should see checkbox with attribute "([^"]*)" \
|
326
326
|
filled with "([^"]*)" "([^"]*)"$/) \
|
@@ -333,6 +333,14 @@ do |attr_name, attr_value, checked_cond|
|
|
333
333
|
assert el.checked? == (checked_cond == 'checked')
|
334
334
|
end
|
335
335
|
|
336
|
+
# 4.5 Check for checked checkbox
|
337
|
+
# I should see "hello" "6" times
|
338
|
+
Then(/^I should see "([^"]*)" "([^"]*)" time\(s\)$/) \
|
339
|
+
do |text, number_of_times|
|
340
|
+
el = all(:xpath, ".//*[contains(text(), '#{text}')]")
|
341
|
+
assert el.length == number_of_times.to_i
|
342
|
+
end
|
343
|
+
|
336
344
|
# 5. ========= MISC ACTIONS ===========
|
337
345
|
# 5.1 Pause
|
338
346
|
Then(/^pause for ([^"]*) seconds$/) do |duration|
|
data/lib/cuke_master/version.rb
CHANGED