Created
May 25, 2009 15:34
-
-
Save mikeymckay/117589 to your computer and use it in GitHub Desktop.
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: Logging in | |
In order to securely access the system's features | |
Users should have to login with a username and password | |
Scenario: View login screen | |
Given I am not logged in | |
When I access a page | |
Then I should be redirected to the "login" page | |
And I should see "Enter Username" | |
And it should look like login_user.jpg | |
Scenario: User enters username and password | |
Given I am on the "login" page | |
And I have entered "testuser" as username and "testpass" as password | |
Then I should see "testuser" in the username | |
And I should see "********" in the password | |
Scenario: User logs in with wrong password | |
Given I am on the "login" page | |
And I have entered "testuser" as username and "wrongpass" as password | |
And I press "Submit" | |
Then the login form should be shown again | |
And I should see "Invalid email or password" | |
Scenario: User logs in with correct password | |
Given I am on the "login" page | |
And I have entered "testuser" as username and "wrongpass" as password | |
And I press "Submit" | |
Then I should be redirected to the "home" page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment