Skip to content

Commit 5fff754

Browse files
authored
Merge pull request #213 from NHSDigital/PPHA-512-check-your-answers-page
PPHA-512: Check your answers page
2 parents 2ecfa06 + 1d72387 commit 5fff754

51 files changed

Lines changed: 783 additions & 222 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

features/asbestos_exposure.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,15 @@ Feature: Asbestos exposure page
1919
When I fill in and submit my asbestos exposure with "No"
2020
Then I am on "/cancer-diagnosis"
2121

22+
Scenario: Checking responses and changing them
23+
Given I am logged in
24+
When I go to "/asbestos-exposure"
25+
And I fill in and submit my asbestos exposure with "No"
26+
When I go to "/check-your-answers"
27+
Then I see "No" as a response to "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
28+
And I see "/asbestos-exposure?change=True" as a link to change "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
29+
When I click the link to change "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
30+
Then I am on "/asbestos-exposure?change=True"
31+
When I fill in and submit my asbestos exposure with "Yes"
32+
Then I am on "/check-your-answers"
33+
And I see "Yes" as a response to "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"

features/cancer_diagnosis.feature

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ Feature: Cancer diagnosis page
1616
Given I am logged in
1717
When I go to "/cancer-diagnosis"
1818
Then I see a back link to "/asbestos-exposure"
19-
When I fill in and submit my asbestos exposure with "No"
19+
When I fill in and submit my cancer diagnosis with "No"
2020
Then I am on "/family-history-lung-cancer"
2121

22+
Scenario: Checking responses and changing them
23+
Given I am logged in
24+
When I go to "/cancer-diagnosis"
25+
And I fill in and submit my cancer diagnosis with "No"
26+
When I go to "/check-your-answers"
27+
Then I see "No" as a response to "Have you ever been diagnosed with cancer?" under "Your health"
28+
And I see "/cancer-diagnosis?change=True" as a link to change "Have you ever been diagnosed with cancer?" under "Your health"
29+
When I click the link to change "Have you ever been diagnosed with cancer?" under "Your health"
30+
Then I am on "/cancer-diagnosis?change=True"
31+
When I fill in and submit my cancer diagnosis with "Yes"
32+
Then I am on "/check-your-answers"
33+
And I see "Yes" as a response to "Have you ever been diagnosed with cancer?" under "Your health"

features/date_of_birth_page.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,16 @@ Feature: Date of birth page
3535
Then I see a back link to "/have-you-ever-smoked"
3636
When I fill in and submit my date of birth as 55 years ago
3737
Then I am on "/check-if-you-need-an-appointment"
38+
39+
Scenario: Checking responses and changing them
40+
Given I am logged in
41+
When I go to "/date-of-birth"
42+
And I fill in and submit my date of birth as 55 years ago
43+
When I go to "/check-your-answers"
44+
Then I see a date 55 years ago as a response to "Date of birth" under "Eligibility"
45+
And I see "/date-of-birth?change=True" as a link to change "Date of birth" under "Eligibility"
46+
When I click the link to change "Date of birth" under "Eligibility"
47+
Then I am on "/date-of-birth?change=True"
48+
When I fill in and submit my date of birth as 60 years ago
49+
Then I am on "/check-your-answers"
50+
And I see a date 60 years ago as a response to "Date of birth" under "Eligibility"

features/education.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ Feature: Education page
1919
When I fill in and submit my education with "A-levels"
2020
Then I am on "/respiratory-conditions"
2121

22+
Scenario: Checking responses and changing them
23+
Given I am logged in
24+
When I go to "/education"
25+
And I fill in and submit my education with "A-levels"
26+
When I go to "/check-your-answers"
27+
Then I see "A-levels" as a response to "Highest level of education" under "About you"
28+
And I see "/education?change=True" as a link to change "Highest level of education" under "About you"
29+
When I click the link to change "Highest level of education" under "About you"
30+
Then I am on "/education?change=True"
31+
When I fill in and submit my education with "GCSEs"
32+
Then I am on "/check-your-answers"
33+
And I see "GCSEs" as a response to "Highest level of education" under "About you"
34+

features/ethnicity.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ Feature: Ethnicity page
1919
When I fill in and submit my ethnicity with "White"
2020
Then I am on "/education"
2121

22+
Scenario: Checking responses and changing them
23+
Given I am logged in
24+
When I go to "/ethnicity"
25+
And I fill in and submit my ethnicity with "White"
26+
When I go to "/check-your-answers"
27+
Then I see "White" as a response to "Ethnic group" under "About you"
28+
And I see "/ethnicity?change=True" as a link to change "Ethnic group" under "About you"
29+
When I click the link to change "Ethnic group" under "About you"
30+
Then I am on "/ethnicity?change=True"
31+
When I fill in and submit my ethnicity with "Black, African, Caribbean or Black British"
32+
Then I am on "/check-your-answers"
33+
And I see "Black, African, Caribbean or Black British" as a response to "Ethnic group" under "About you"
34+

features/family_history_lung_cancer.feature

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,23 @@ Feature: Family history of lung cancer page
1717
When I go to "/family-history-lung-cancer"
1818
Then I see a back link to "/cancer-diagnosis"
1919
When I fill in and submit my asbestos exposure with "No"
20-
Then I am on "/responses"
20+
Then I am on "/check-your-answers"
2121
When I click "Back"
2222
When I fill in and submit my family history lung cancer with "Yes"
2323
Then I am on "/relatives-age-when-diagnosed"
2424

25+
Scenario: Checking responses and changing them
26+
Given I am logged in
27+
When I go to "/family-history-lung-cancer"
28+
And I fill in and submit my family history lung cancer with "No"
29+
When I go to "/check-your-answers"
30+
Then I see "No" as a response to "Have any of your parents, siblings or children ever been diagnosed with lung cancer? " under "Family history"
31+
And I see "/family-history-lung-cancer?change=True" as a link to change "Have any of your parents, siblings or children ever been diagnosed with lung cancer? " under "Family history"
32+
When I click the link to change "Have any of your parents, siblings or children ever been diagnosed with lung cancer? " under "Family history"
33+
Then I am on "/family-history-lung-cancer?change=True"
34+
When I fill in and submit my family history lung cancer with "Yes"
35+
Then I am on "/relatives-age-when-diagnosed?change=True"
36+
When I fill in and submit my relatives age when diagnosed with "Yes, they were younger than 60"
37+
Then I am on "/check-your-answers"
38+
And I see "Yes" as a response to "Have any of your parents, siblings or children ever been diagnosed with lung cancer? " under "Family history"
39+
And I see "Yes, they were younger than 60" as a response to "Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer?" under "Family history"

features/gender.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ Feature: Gender page
1919
When I fill in and submit my gender with "Female"
2020
Then I am on "/ethnicity"
2121

22+
Scenario: Checking responses and changing them
23+
Given I am logged in
24+
When I go to "/gender"
25+
And I fill in and submit my gender with "Female"
26+
When I go to "/check-your-answers"
27+
Then I see "Female" as a response to "Gender identity" under "About you"
28+
And I see "/gender?change=True" as a link to change "Gender identity" under "About you"
29+
When I click the link to change "Gender identity" under "About you"
30+
Then I am on "/gender?change=True"
31+
When I fill in and submit my gender with "Female"
32+
Then I am on "/check-your-answers"
33+
And I see "Female" as a response to "Gender identity" under "About you"
34+

features/have_you_ever_smoked_page.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,16 @@ Feature: Have you ever smoked page
2626
Then I see a back link to "/start"
2727
When I fill in and submit my smoking status with "Yes, I used to smoke"
2828
Then I am on "/date-of-birth"
29+
30+
Scenario: Checking responses and changing them
31+
Given I am logged in
32+
When I go to "/have-you-ever-smoked"
33+
And I fill in and submit my smoking status with "Yes, I used to smoke"
34+
When I go to "/check-your-answers"
35+
Then I see "Yes, I used to smoke" as a response to "Have you ever smoked tobacco?" under "Eligibility"
36+
And I see "/have-you-ever-smoked?change=True" as a link to change "Have you ever smoked tobacco?" under "Eligibility"
37+
When I click the link to change "Have you ever smoked tobacco?" under "Eligibility"
38+
Then I am on "/have-you-ever-smoked?change=True"
39+
When I fill in and submit my smoking status with "Yes, I currently smoke"
40+
Then I am on "/check-your-answers"
41+
And I see "Yes, I currently smoke" as a response to "Have you ever smoked tobacco?" under "Eligibility"

features/height.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,17 @@ Feature: Height page
5050
When I click "Back"
5151
Then I am on "/height"
5252

53+
Scenario: Checking responses and changing them
54+
Given I am logged in
55+
When I go to "/height"
56+
And I fill in and submit my height with "170"
57+
When I go to "/check-your-answers"
58+
Then I see "170 cm" as a response to "Height" under "About you"
59+
And I see "/height?change=True" as a link to change "Height" under "About you"
60+
When I click the link to change "Height" under "About you"
61+
Then I am on "/height?change=True"
62+
When I click "Switch to feet and inches"
63+
And I fill in and submit my height with "5" feet and "7" inches
64+
Then I am on "/check-your-answers"
65+
And I see "5 feet 7 inches" as a response to "Height" under "About you"
66+

features/questionnaire.feature

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,21 @@ Feature: Questionnaire
5656
Then I am on "/relatives-age-when-diagnosed"
5757
When I fill in and submit my relatives age when diagnosed with "Yes, they were younger than 60"
5858

59-
Then I am on "/responses"
59+
Then I am on "/check-your-answers"
6060
And I see a back link to "/relatives-age-when-diagnosed"
61-
And I see responses "Have you ever smoked? Yes, I used to smoke"
62-
And I see responses "What is your date of birth?" with a date 55 years ago
63-
And I see responses "What is your height? 5 feet 7 inches"
64-
And I see responses "What is your weight? 5 stone 10 pounds"
65-
And I see responses "What was your sex at birth? Male"
66-
And I see responses "Which of these best describes you? Female"
67-
And I see responses "What is your ethnic background? White"
68-
And I see responses "What level of education have you completed? A-levels"
69-
And I see responses "Have you ever worked in a job where you might have been exposed to asbestos? No"
70-
And I see responses "Have you ever been diagnosed with any of the following respiratory conditions? Pneumonia and Emphysema"
71-
And I see responses "Have you ever been diagnosed with cancer? No"
72-
And I see responses "Have any of your parents, siblings or children ever been diagnosed with lung cancer Yes"
73-
And I see responses "Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer? Yes, they were younger than 60"
61+
62+
And I see "Yes, I used to smoke" as a response to "Have you ever smoked tobacco?" under "Eligibility"
63+
And I see a date 55 years ago as a response to "Date of birth" under "Eligibility"
64+
65+
And I see "5 feet 7 inches" as a response to "Height" under "About you"
66+
And I see "5 stone 10 pounds" as a response to "Weight" under "About you"
67+
And I see "Male" as a response to "Sex at birth" under "About you"
68+
And I see "Female" as a response to "Gender identity" under "About you"
69+
And I see "White" as a response to "Ethnic group" under "About you"
70+
71+
And I see "Pneumonia and Emphysema" as a response to "Diagnosed respiratory conditions" under "Your health"
72+
And I see "No" as a response to "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
73+
And I see "No" as a response to "Have you ever been diagnosed with cancer?" under "Your health"
74+
75+
And I see "Yes" as a response to "Have any of your parents, siblings or children ever been diagnosed with lung cancer?" under "Family history"
76+
And I see "Yes, they were younger than 60" as a response to "Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer?" under "Family history"

0 commit comments

Comments
 (0)