You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/family_history_lung_cancer.feature
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,23 @@ Feature: Family history of lung cancer page
17
17
When I go to "/family-history-lung-cancer"
18
18
Then I see a back link to "/cancer-diagnosis"
19
19
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"
21
21
When I click "Back"
22
22
When I fill in and submit my family history lung cancer with "Yes"
23
23
Then I am on "/relatives-age-when-diagnosed"
24
24
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"
Copy file name to clipboardExpand all lines: features/questionnaire.feature
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -56,18 +56,21 @@ Feature: Questionnaire
56
56
Then I am on "/relatives-age-when-diagnosed"
57
57
When I fill in and submit my relatives age when diagnosed with "Yes, they were younger than 60"
58
58
59
-
Then I am on "/responses"
59
+
Then I am on "/check-your-answers"
60
60
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