Created
November 22, 2013 04:01
-
-
Save bgerstle/7594675 to your computer and use it in GitHub Desktop.
Example cucumber test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Authentication | |
As a user | |
I can use my credentials | |
So I can login to the app | |
And be remembered when the app launches | |
And log out of the app | |
Scenario: Email and password submit using keyboard | |
Given the app is clean | |
And I am on the Login Screen | |
When I fill in "username field" with "[email protected]" | |
And I fill in "password field" with "boristest2" | |
And I touch done | |
And I wait to not see "loading indicator" | |
Then I should not see "login view" | |
Scenario: Auto login email no facebook | |
Given the app is clean | |
And I login as boris | |
When I relaunch the app | |
Then I should not see "login view" | |
Scenario: Logout | |
Given I wait to see "logout button" | |
When I touch "logout button" | |
Then I should see "login view" | |
And I should see empty login fields | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment