-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfamily_history_lung_cancer.feature
More file actions
41 lines (38 loc) · 2.32 KB
/
family_history_lung_cancer.feature
File metadata and controls
41 lines (38 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@FamilyHistoryLungCancer
Feature: Family history of lung cancer page
Scenario: The page is accessible
Given I am logged in
When I go to "/family-history-lung-cancer"
Then there are no accessibility violations
Scenario: Form errors
Given I am logged in
When I go to "/family-history-lung-cancer"
And I click "Continue"
Then I am on "/family-history-lung-cancer"
And I see a form error "Select if any of your parents, siblings or children have had a diagnosis of lung cancer"
And there are no accessibility violations
Scenario: Navigating backwards and forwards
Given I am logged in
When I go to "/family-history-lung-cancer"
Then I see a back link to "/cancer-diagnosis"
When I fill in and submit my asbestos exposure with "No"
Then I am on "/check-your-answers"
When I click "Back"
When I fill in and submit my family history lung cancer with "Yes"
Then I am on "/relatives-age-when-diagnosed"
Scenario: Checking responses and changing them
Given I am logged in
When I go to "/family-history-lung-cancer"
And I fill in and submit my family history lung cancer with "No"
When I go to "/check-your-answers"
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"
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"
When I click the link to change "Have any of your parents, siblings or children ever been diagnosed with lung cancer? " under "Family history"
Then I am on "/family-history-lung-cancer?change=True"
And I see "No" selected
When I fill in and submit my family history lung cancer with "Yes"
Then I am on "/relatives-age-when-diagnosed?change=True"
When I fill in and submit my relatives age when diagnosed with "Yes, they were younger than 60"
Then I am on "/check-your-answers"
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"
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"