Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'calabash-android/calabash_steps'
- #Given(/^I wait to see welcoming sceen$/) do
- # macro 'I see the text "WPISZ MIEJSCOWO\u015A\u0106"'
- #end
- When(/^I enter "(.*?)" into input$/) do |arg1|
- arg1 = "Chorzów"
- macro %[I enter "#{arg1}" into input field number 1]
- end
- Then(/^I touch show$/) do
- tap_mark "POKA\u017B"
- end
- Then(/^I should see list of places$/) do
- wait_for_elements_exist(["com.pp.evokids.view.custom.layout.ImageListView"], :timeout => 5)
- screenshot_embed
- end
- Given(/^I see list of places$/) do
- wait_for_elements_exist(["com.pp.evokids.view.custom.layout.ImageListView"], :timeout => 5)
- end
- Then(/^I choose category:$/) do |table|
- # table is a Cucumber::Ast::Table
- data = table.raw
- data.each do |i|
- #tap_mark i
- #tap_when_element_exists("* {text CONTAINS[c] '#{i}'}")
- touch(i)
- #TODO move back one View
- end
- end
- Then(/^I should see list of all sub\-categories$/) do
- pending # express the regexp above with the code you wish you had
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement