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/E-profile.feature
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (24 sloc)
1.21 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: Edit a profile | |
The user should be able to edit thier profile. | |
Scenario: profile page | |
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 | |
And I click on the "profile" field | |
Then take a screenshot called "profile-page" in "profile" | |
And the first "title" should be "Game Hub | Sam Smith's Profile" | |
And the first "h1" should be "SAM SMITH'S PROFILE" | |
And the "h1" number "1" should be "Profile" | |
And the unordered list in header should be "Home Vasper123 Add Logout" | |
Scenario: change profile avatar | |
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 | |
And I click on the "profile" field | |
And I enter image "public/images/tests/python-logo.png" in the "avatar-input" field | |
And I click on the "submit" field | |
Then take a screenshot called "avatar" in "profile" | |