Permalink
Cannot retrieve contributors at this time
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?
FAQ-1/features/A-register.feature
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (30 sloc)
1.53 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Register an account | |
The user should be able to register an account. | |
Scenario: register page | |
Given The browser is open on the home page | |
When I click on the "register" field | |
Then take a screenshot called "regsiter-page" in "register" | |
And the first "title" should be "Game Hub | Create an account" | |
And the first "h1" should be "CREATE AN ACCOUNT" | |
And the "h1" number "1" should be "Sign Up" | |
And the unordered list in header should be "Home Login Register" | |
Scenario: create an account without profile picture | |
Given The browser is open on the register page | |
And I enter "Sam Smith" in the "name" 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 "regsitered" in "register" | |
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: create another account with profile picture | |
Given The browser is open on the register page | |
And I enter "Emma Jones" in the "name" 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 "regsitered-another" in "register" | |
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" |