Skip to content
This repository
file 71 lines (52 sloc) 1.794 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
Then /^I wait for progress$/ do
  performAction('wait_for_no_progress_bars')
end

Then /^I wait$/ do
  performAction('wait', 2)
end

Then /^I wait for dialog to close$/ do
  performAction('wait_for_dialog_to_close')
end


Then /^I wait for (\d+) seconds$/ do |seconds|
  performAction('wait', seconds)
end

Then /^I wait for 1 second$/ do
  performAction('wait', 1)
end

Then /^I wait for a second$/ do
  performAction('wait', 1)
end


Then /^I wait for "([^\"]*)" to appear$/ do |text|
  performAction('wait_for_text', text)
end

Then /^I wait up to (\d+) seconds for "([^\"]*)" to appear$/ do |timeout, text|
  performAction('wait_for_text', text, timeout)
end

Then /^I wait to see "([^\"]*)"$/ do |text|
  performAction('wait_for_text', text)
end

Then /^I wait up to (\d+) seconds to see "([^\"]*)"$/ do |timeout, text|
  performAction('wait_for_text', text, timeout)
end

Then /^I wait for the "([^\"]*)" button to appear$/ do |text|
  performAction('wait_for_button', text)
end

Then /^I wait for the view with id "([^\"]*)" to appear$/ do |text|
  performAction('wait_for_view_by_id', text)
end

Then /^I wait for the "([^\"]*)" view to appear$/ do |text|
  performAction('wait_for_view', text)
end


Then /^I wait for the "([^\"]*)" screen to appear$/ do |text|
    performAction('wait_for_screen', text)
end

Then /^I wait upto (\d+) seconds for the "([^\"]*)" screen to appear$/ do |timeout, text|
    performAction('wait_for_screen', text, timeout)
end

Then /^I wait up to (\d+) seconds for the "([^\"]*)" screen to appear$/ do |timeout, text|
    performAction('wait_for_screen', text, timeout)
end

# @param - the "tag" associated with the tab, or the text within the tab label
Then /^I wait for the "([^\"]*)" tab to appear$/ do | tab |
  performAction('wait_for_tab', tab)
end
Something went wrong with that request. Please try again.