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

Version Path
calabash-cucumber-0.23.7 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.6 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.5 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.4 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.3 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.2 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.1 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.23.0 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.22.2 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.10 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.8 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.7 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.6 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.5 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.4 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.2 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.21.1 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.20.5 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.20.4 features-skeleton/steps/sample_steps.rb
calabash-cucumber-0.20.3 features-skeleton/steps/sample_steps.rb