Skip to content

Instantly share code, notes, and snippets.

@wpride
Created November 9, 2017 21:22
Show Gist options
  • Save wpride/ca73e6c95cd2cd77ba37ff9d25743e65 to your computer and use it in GitHub Desktop.
Save wpride/ca73e6c95cd2cd77ba37ff9d25743e65 to your computer and use it in GitHub Desktop.
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