cuke_master 0.1.13 → 0.1.14

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
  SHA1:
3
- metadata.gz: 83adc6b12650c551b1a3e70f77e5416855823947
4
- data.tar.gz: 4a68e78276fdccf695de5478a3f5d52db66c8878
3
+ metadata.gz: e7f2be9dc4c220e69768871869c3ec1948c7b3ec
4
+ data.tar.gz: 6c442ae7769aff596917488ef17124f32c7e824d
5
5
  SHA512:
6
- metadata.gz: 0ce80f3e8f86852be6e46aedecbfcb6c13c56ed31775b246a2b5811a5011f5c4313ed336e022cec1c4f768d693b53894c1eb3e8117b6021cdda11c1aefbb46de
7
- data.tar.gz: e31a4daa51c017c3297bdc43bf5f93d4912b073bd5d175573078a983804cd3336c2408de6633618f6b9e59ec208e00539449455f499782c9751b15f004e37789
6
+ metadata.gz: 4b85e25bb4bb08f7867c320f42db6febdb3c2664f04fc86b437cd8a888a4ded8f9df542c19ab02736417f5c07cc92e17295d7d7025b9d4c5b184ee842a5746e8
7
+ data.tar.gz: 23a6fa93774e74b972febf0ef2ac6bb047208e3728f1f19b6a5391c71e2c42d8276e2493e494af54cdfaa7f69c030c979016d824cfd618eb4ca980b8e9342c91
@@ -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.3 Check for checked checkbox
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|
@@ -1,3 +1,3 @@
1
1
  module CukeMaster
2
- VERSION = '0.1.13'.freeze
2
+ VERSION = '0.1.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuke_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh