Skip to content
Permalink
b9fcf4d274
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (30 sloc) 1.43 KB
Feature: Login to an account
The user should be able to login to an account.
Scenario: login page
Given The browser is open on the home page
When I click on the "login" field
Then take a screenshot called "login-page" in "login"
And the first "title" should be "Game Hub | Login"
And the first "h1" should be "LOGIN"
And the "h1" number "1" should be "Login"
And the unordered list in header should be "Home Login Register"
Scenario: login to an account
Given The browser is open on the login page
When I click on the "login" field
And I enter "Vasper123" in the "username" field
And I enter "123" in the "password" field
And I click on the "submit" field
Then take a screenshot called "logged-in" in "login"
And the first "title" should be "Game Hub | Welcome to the GameHub"
And the first "h1" should be "WELCOME TO THE GAMEHUB"
And the unordered list in header should be "Home Vasper123 Add Logout"
Scenario: login to another account
Given The browser is open on the login page
When I click on the "login" field
And I enter "Gamer123" in the "username" field
And I enter "1234" in the "password" field
And I click on the "submit" field
Then take a screenshot called "logged-in-another" in "login"
And the first "title" should be "Game Hub | Welcome to the GameHub"
And the first "h1" should be "WELCOME TO THE GAMEHUB"
And the unordered list in header should be "Home Gamer123 Add Logout"