From b9fcf4d274777f68d3346629f271053cac184669 Mon Sep 17 00:00:00 2001 From: townse41 Date: Thu, 28 Nov 2019 13:09:20 +0000 Subject: [PATCH] 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. --- features/B-login.feature | 4 ++-- features/D-addQuestion.feature | 7 +++---- features/E-profile.feature | 2 +- features/F-home.feature | 34 +++++++++++++++++----------------- 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/features/B-login.feature b/features/B-login.feature index 89f2ea0..7004342 100644 --- a/features/B-login.feature +++ b/features/B-login.feature @@ -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" diff --git a/features/D-addQuestion.feature b/features/D-addQuestion.feature index 7740794..cb1bd47 100644 --- a/features/D-addQuestion.feature +++ b/features/D-addQuestion.feature @@ -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" \ No newline at end of file diff --git a/features/E-profile.feature b/features/E-profile.feature index 0fd827e..8f3c0a6 100644 --- a/features/E-profile.feature +++ b/features/E-profile.feature @@ -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" diff --git a/features/F-home.feature b/features/F-home.feature index e3477e4..d14b21c 100644 --- a/features/F-home.feature +++ b/features/F-home.feature @@ -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"