-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgender.feature
More file actions
40 lines (36 loc) · 1.51 KB
/
gender.feature
File metadata and controls
40 lines (36 loc) · 1.51 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
@Gender
Feature: Gender page
Scenario: The page is accessible
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/gender"
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 "/gender"
And I click "Continue"
Then I am on "/gender"
And I see a form error "Select the option that best describes your gender"
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 "/gender"
Then I see a back link to "/sex-at-birth"
When I fill in and submit my gender with "Female"
Then I am on "/ethnicity"
Scenario: Checking responses and changing them
Given I am logged in
And I have answered questions showing I am eligible
When I go to "/gender"
And I fill in and submit my gender with "Female"
When I go to "/check-your-answers"
Then I see "Female" as a response to "Gender identity" under "About you"
And I see "/gender?change=True" as a link to change "Gender identity" under "About you"
When I click the link to change "Gender identity" under "About you"
Then I am on "/gender?change=True"
And I see "Female" selected
When I fill in and submit my gender with "Female"
Then I am on "/check-your-answers"
And I see "Female" as a response to "Gender identity" under "About you"