23 lines
814 B
Gherkin
23 lines
814 B
Gherkin
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! |
|