Created
November 9, 2017 21:22
-
-
Save wpride/ca73e6c95cd2cd77ba37ff9d25743e65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Then (/^I see one item from the list "([^\"]*)"$/) do |items| | |
saw_item = false | |
for item in items.split(",") | |
if element_exists("* {text CONTAINS[c] '#{item}'}") | |
saw_item = true | |
end | |
end | |
if !saw_item | |
fail("Did not see item from list \"#{items}\".") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment