forked from reisborw/FAQ
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Created new scenario for 'E-profile.feature' and moved test images
Needed to test fucntionality of the profile page and moved test images to its own subfolder Created new scenario 'change profile avatar' and moved test images to 'tests' subfolder in 'public/images'
- Loading branch information
Showing
6 changed files
with
23 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
Feature: Edit a profile | ||
The user should be able to edit thier 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 | ||
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 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" | ||
|
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
BIN
+41.8 KB
public/images/tests/python-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+258 KB
public/images/tests/wolf-armour.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.