22
test/features/login.feature
Normal file
22
test/features/login.feature
Normal file
@@ -0,0 +1,22 @@
|
||||
Feature: The Internet Guinea Pig Website
|
||||
|
||||
Background:
|
||||
Given the user is on the login page
|
||||
|
||||
@smoke
|
||||
Scenario Outline: Successful login - <ID>
|
||||
When the user logs in with <username> and <password>
|
||||
Then the user should see a flash message containing "<message>"
|
||||
And the login form should no longer be visible
|
||||
|
||||
Examples:
|
||||
| ID | username | password | message |
|
||||
| 01 | tomsmith | SuperSecretPassword! | You logged into a secure area! |
|
||||
|
||||
Scenario Outline: Failed login - <ID>
|
||||
When the user logs in with <username> and <password>
|
||||
Then the user should see a flash message containing "<message>"
|
||||
|
||||
Examples:
|
||||
| ID | username | password | message |
|
||||
| 02 | foobar | barfoo | Your username is invalid! |
|
||||
Reference in New Issue
Block a user