Skip to content

Instantly share code, notes, and snippets.

@emk
Created December 28, 2008 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emk/40389 to your computer and use it in GitHub Desktop.
Save emk/40389 to your computer and use it in GitHub Desktop.
Feature: Logging in and out
Context:
Given a site
And a global administator named "sarah" with password "password"
Scenario: Log in with valid name and password
When I try to access the overview page
And I log in as "sarah" with password "password"
Then I should see the overview page
Scenario: Log in with an invalid name
When I try to access the overview page
And I log in as "sarah" with password "invalid"
Then I should see "Could not log you in."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment