-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathethnicity.feature
More file actions
36 lines (32 loc) · 1.36 KB
/
ethnicity.feature
File metadata and controls
36 lines (32 loc) · 1.36 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
@Ethnicity
Feature: Ethnicity page
Scenario: The page is accessible
Given I am logged in
When I go to "/ethnicity"
Then there are no accessibility violations
Scenario: Form errors
Given I am logged in
When I go to "/ethnicity"
And I click "Continue"
Then I am on "/ethnicity"
And I see a form error "Select your ethnic background"
And there are no accessibility violations
Scenario: Navigating backwards and forwards
Given I am logged in
When I go to "/ethnicity"
Then I see a back link to "/gender"
When I fill in and submit my ethnicity with "White"
Then I am on "/education"
Scenario: Checking responses and changing them
Given I am logged in
When I go to "/ethnicity"
And I fill in and submit my ethnicity with "White"
When I go to "/check-your-answers"
Then I see "White" as a response to "Ethnic group" under "About you"
And I see "/ethnicity?change=True" as a link to change "Ethnic group" under "About you"
When I click the link to change "Ethnic group" under "About you"
Then I am on "/ethnicity?change=True"
And I see "White" selected
When I fill in and submit my ethnicity with "Black, African, Caribbean or Black British"
Then I am on "/check-your-answers"
And I see "Black, African, Caribbean or Black British" as a response to "Ethnic group" under "About you"