Skip to content

Instantly share code, notes, and snippets.

@robholland
Created April 21, 2010 11:42
Show Gist options
  • Save robholland/373729 to your computer and use it in GitHub Desktop.
Save robholland/373729 to your computer and use it in GitHub Desktop.
Background:
Given "iCuke" from "app/iCuke/iCuke.xcodeproj" is loaded in the simulator
Scenario: User views the About screen
When I tap "About"
Then I should see "Author:"
Scenario: User enters some text
When I tap "Name"
And I type "Rob Holland"
And I tap "Go"
Then I should see "Hello Rob"
Scenario: User interacts with a table
When I tap "Names"
Then I should see "First name"
# The scrolling step performs a swipe in the opposite direction
When I scroll down
Then I should see "Last name"
# Swipe is the literal action, swiping down scrolls up
When I swipe down
Then I should see "First name"
Scenario: User views a web page
When I tap "About"
Then I should see "This application"
When I tap "a link"
Then I should see "some text on the linked page"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment