Created
January 27, 2011 19:18
-
-
Save donpinkster/799033 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: User Authentication | |
In order to play the game | |
As an registrered user | |
I want to be able to login | |
Background: | |
Given I have the user "[email protected]" with password "foobar" | |
Scenario: Logging in with incorrect credentials | |
Given I am on the login page | |
When I fill in "Email" with "[email protected]" | |
And I fill in "Password" with "incorrect" | |
And I press "Login" | |
Then I should see "authentication.failure" | |
Scenario: Logging in with correct credentials | |
Given I am on the login page | |
When I fill in "Email" with "[email protected]" | |
And I fill in "Password" with "foobar" | |
And I press "Login" | |
Then I should see "authentication.success" | |
And I should be on the homepage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment