Skip to content
Permalink
Browse files
changed acceptance test to be inline with the merge
The gerkin code was not correct to the hbs page

Changed the gerkin code to allow for the change, which is not having a text body and now the header includes a profile picture.
  • Loading branch information
townse41 committed Nov 28, 2019
1 parent fe01744 commit b9fcf4d274777f68d3346629f271053cac184669
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
@@ -19,7 +19,7 @@ Feature: Login to an account
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"
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
@@ -30,4 +30,4 @@ Feature: Login to an account
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"
And the unordered list in header should be "Home Gamer123 Add Logout"
@@ -12,7 +12,7 @@ Feature: Create a question
And the first "title" should be "Game Hub | Create a question"
And the first "h1" should be "CREATE A QUESTION"
And the "h1" number "1" should be "Create a Question"
And the unordered list in header should be "Home Vasper123 Add Logout"
And the unordered list in header should be "Home Vasper123 Add Logout"

Scenario: create a question without image
Given The browser is open on the home page
@@ -27,6 +27,5 @@ Feature: Create a question
Then take a screenshot called "question-created" in "addQuestion"
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"
And the first "h2" should be "Call of Duty"
And the first "h3" should be "How to find pack-a-punch on Die Riese"
And the unordered list in header should be "Home Vasper123 Add Logout"
And the first "h2" should be "Call of Duty"
@@ -14,4 +14,4 @@ Feature: Edit a profile

And the "h1" number "1" should be "Profile"

And the unordered list in header should be "Home Vasper123 Add Logout"
And the unordered list in header should be "Home Vasper123 Add Logout"
@@ -2,24 +2,24 @@ Feature: Open Home page
The user should be able to view the home page.

Scenario: home page
Given The browser is open on the home page
Then take a screenshot called "home-page" in "home"
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 Login Register"
Given The browser is open on the home page
Then take a screenshot called "home-page" in "home"
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 Login Register"

Scenario: home page link
Given The browser is open on the register page
When I click on the "home" field
Then take a screenshot called "home-page-another" in "home"
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 Login Register"
Given The browser is open on the register page
When I click on the "home" field
Then take a screenshot called "home-page-another" in "home"
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 Login Register"

Scenario: home page logo button
Given The browser is open on the login page
When I click on the "logo" field
Then take a screenshot called "home-page-button" in "home"
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 Login Register"
Given The browser is open on the login page
When I click on the "logo" field
Then take a screenshot called "home-page-button" in "home"
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 Login Register"

0 comments on commit b9fcf4d

Please sign in to comment.