Sha256: d910cd1b8c38e9ebe0c3bf999e5c6deb6e9ebd97d8ed29bcefa7a941627008f4
Contents?: true
Size: 1.02 KB
Versions: 32
Compression:
Stored size: 1.02 KB
Contents
Given(/^the app has launched$/) do wait_for do !query("*").empty? end end And(/^I have done a specific thing$/) do # Example: Given I am logged in # wait_for do # !query("* marked:'username'").empty? # end # # touch("* marked:'username'") # wait_for_keyboard # keyboard_enter_text("cleveruser27") # # touch("* marked:'password'") # wait_for_keyboard # keyboard_enter_text("pa$$w0rd") # # wait_for_element_exists("* marked:'Login'") # touch("* marked:'Login'") # Remember: any Ruby is allowed in your step definitions did_something = true unless did_something fail 'Expected to have done something' end end When(/^I do something$/) do # Example: When I create a new entry # tap("* marked:'new_entry'") # wait_for_keyboard # keyboard_enter_text("* marked:'entry_title'", 'My Entry') # # tap("* marked:'submit'") end Then(/^something should happen$/) do # Example: Then I should see the entry on my home page # wait_for_element_exists("* text:'My Entry'") end
Version data entries
32 entries across 32 versions & 1 rubygems