|
1 | 1 | Feature: Questionnaire |
| 2 | + Scenario: Cannot change responses once submitted |
| 3 | + Given I am logged in |
| 4 | + And I have already submitted my responses |
| 5 | + When I go to "/start" |
| 6 | + And I click "Start" |
| 7 | + Then I am on "/start" |
| 8 | + |
2 | 9 | Scenario: The user can complete the full questionnaire |
3 | 10 | Given I am logged in |
4 | 11 | When I go to "/start" |
5 | 12 | And I click "Start" |
| 13 | + |
6 | 14 | Then I am on "/have-you-ever-smoked" |
7 | | - And I see a back link to "/start" |
8 | 15 | When I fill in and submit my smoking status with "Yes, I used to smoke" |
| 16 | + |
9 | 17 | Then I am on "/date-of-birth" |
10 | | - And I see a back link to "/have-you-ever-smoked" |
11 | 18 | When I fill in and submit my date of birth as 55 years ago |
| 19 | + |
12 | 20 | Then I am on "/height" |
13 | | - And I see a back link to "/date-of-birth" |
14 | | - When I fill in and submit my height with "170" |
15 | | - And I click "Back" |
16 | | - And I click "Switch to feet and inches" |
17 | | - When I fill in and submit my height with "5" feet and "7" inches |
| 21 | + When I click "Switch to feet and inches" |
| 22 | + And I fill in and submit my height with "5" feet and "7" inches |
| 23 | + |
18 | 24 | Then I am on "/weight" |
19 | | - And I see a back link to "/height" |
20 | | - When I fill in and submit my weight with "70" |
21 | | - And I click "Back" |
22 | | - And I click "Switch to stone and pounds" |
23 | | - When I fill in and submit my weight with "5" stone and "10" pounds |
| 25 | + When I click "Switch to stone and pounds" |
| 26 | + And I fill in and submit my weight with "5" stone and "10" pounds |
| 27 | + |
24 | 28 | Then I am on "/sex-at-birth" |
25 | | - And I see a back link to "/weight" |
26 | 29 | When I fill in and submit my sex at birth with "Male" |
| 30 | + |
27 | 31 | Then I am on "/gender" |
28 | | - And I see a back link to "/sex-at-birth" |
29 | 32 | When I fill in and submit my gender with "Female" |
| 33 | + |
30 | 34 | Then I am on "/ethnicity" |
31 | | - And I see a back link to "/gender" |
32 | 35 | When I fill in and submit my ethnicity with "White" |
| 36 | + |
33 | 37 | Then I am on "/education" |
34 | | - And I see a back link to "/ethnicity" |
35 | 38 | When I click "Continue" |
| 39 | + |
36 | 40 | Then I am on "/respiratory-conditions" |
37 | | - And I see a back link to "/education" |
38 | 41 | When I fill in and submit my respiratory conditions with "Pneumonia" and "Emphysema" |
| 42 | + |
39 | 43 | Then I am on "/asbestos-exposure" |
40 | | - And I see a back link to "/respiratory-conditions" |
41 | 44 | When I fill in and submit my asbestos exposure with "No" |
| 45 | + |
42 | 46 | Then I am on "/cancer-diagnosis" |
43 | | - And I see a back link to "/asbestos-exposure" |
44 | 47 | When I fill in and submit my cancer diagnosis with "No" |
| 48 | + |
45 | 49 | Then I am on "/family-history-lung-cancer" |
46 | | - And I see a back link to "/cancer-diagnosis" |
47 | 50 | When I fill in and submit my family history lung cancer with "Yes" |
| 51 | + |
48 | 52 | Then I am on "/relatives-age-when-diagnosed" |
49 | | - And I see a back link to "/family-history-lung-cancer" |
50 | 53 | When I fill in and submit my relatives age when diagnosed with "Yes, they were younger than 60" |
| 54 | + |
51 | 55 | Then I am on "/responses" |
52 | 56 | And I see a back link to "/relatives-age-when-diagnosed" |
53 | 57 | And I see responses "Have you ever smoked? Yes, I used to smoke" |
|
0 commit comments