Skip to content

Instantly share code, notes, and snippets.

@donpinkster
Created January 27, 2011 19:18
Show Gist options
  • Save donpinkster/799033 to your computer and use it in GitHub Desktop.
Save donpinkster/799033 to your computer and use it in GitHub Desktop.
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