Skip to content

Instantly share code, notes, and snippets.

@TheMightyLlama
Last active August 29, 2015 14:14
Show Gist options
  • Save TheMightyLlama/5e0cbe4257d6090dc583 to your computer and use it in GitHub Desktop.
Save TheMightyLlama/5e0cbe4257d6090dc583 to your computer and use it in GitHub Desktop.
Login Sample
Feature: Login
Login can be performed with validated email
User stays on login page with wrong username/pass
Scenario: Correct Email Pass Combo
Given User Exists
And User has <email>
And User has <password>
When User attempts to login
Then they are given access to the service
Examples:
| email | password |
| a@b.com | goodpass |
Scenario: Incorrect Username Pass Combo
Given User Exists
And User has <email>
And User has <password>
When User attempts to login
Then they are informed that they have a bad username or password
Examples:
| email | password |
| badmail.com | goodpass |
| badmail@com | goodpass |
| !@£$% | goodpass |
| a@b.com | badpass |
| a@b.com | !@£$%%^ |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment