Skip to content
Permalink
3817f23326
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
27 lines (24 sloc) 1.21 KB
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"