-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasbestos_exposure.feature
More file actions
44 lines (40 loc) · 1.97 KB
/
asbestos_exposure.feature
File metadata and controls
44 lines (40 loc) · 1.97 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
42
43
44
@AsbestosExposure
Feature: Asbestos exposure page
Scenario: The page is accessible
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/asbestos-exposure"
Then there are no accessibility violations
Scenario: Form errors
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/asbestos-exposure"
And I click "Continue"
Then I am on "/asbestos-exposure"
And I see a form error "Select if you have been exposed to asbestos"
And there are no accessibility violations
Scenario: Navigating backwards and forwards
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/asbestos-exposure"
Then I see a back link to "/respiratory-conditions"
When I fill in and submit my asbestos exposure with "No"
Then I am on "/cancer-diagnosis"
Scenario: Checking responses and changing them
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/asbestos-exposure"
And I fill in and submit my asbestos exposure with "No"
When I go to "/check-your-answers"
Then I see "No" as a response to "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
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"
When I click the link to change "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
Then I am on "/asbestos-exposure?change=True"
And I see "No" selected
When I fill in and submit my asbestos exposure with "Yes"
Then I am on "/check-your-answers"
And I see "Yes" as a response to "Have you ever worked in a job where you were exposed to asbestos?" under "Your health"
Scenario: Cannot answer when ineligible
Given I am logged in
When I go to "/asbestos-exposure"
Then I am on "/have-you-ever-smoked"