Created
July 28, 2011 18:19
Sample Cucumber Spec
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
Story: Visitor should be able to log in | |
As a visitor | |
I should be able to login | |
So that I can have access to the application | |
Scenario: Visitor visits the home page | |
Given a logged out visitor | |
When visitor goes to the home page | |
Then visitor should see the sessions/new page | |
Scenario: Login without a password | |
Given a logged out visitor | |
And valid login credentials without password | |
When visitor attempts to login | |
Then visitor should see the sessions/new page | |
And page should include text: Sorry, invalid username/password | |
And should not be logged in | |
Scenario: Login without a username | |
Given a logged out visitor | |
And valid login credentials without username | |
When visitor attempts to login | |
Then visitor should see the sessions/new page | |
And page should include text: Sorry, invalid username/password | |
And should not be logged in | |
Scenario: Login with invalid credentials | |
Given a logged out visitor | |
And invalid login credentials | |
When visitor attempts to login | |
Then visitor should see the sessions/new page | |
And page should include text: Sorry, invalid username/password | |
And should not be logged in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment