-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathselect_your_role.feature
More file actions
85 lines (73 loc) · 3.88 KB
/
select_your_role.feature
File metadata and controls
85 lines (73 loc) · 3.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@cpts_ui @select_your_role @regression @blocker @smoke @ui
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4653
Feature: Role selection page renders roles properly when logged in
@rbac_banner
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4653
Scenario: User can navigate to the select your role page
Given I am logged in
When I go to the select your role page
Then I can not see the RBAC banner
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4656
Scenario: User is redirected to the select your role page
Given I am logged in
When I go to the select your role page
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4653
Scenario: User can see the summary container, but not the table contents by default
Given I am logged in
When I go to the select your role page
Then I can see the summary container
And I cannot see the summary table body
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4653
Scenario: User can expand the summary table to see the contents. Clicking again hides it
Given I am logged in
When I go to the select your role page
When I click on the summary expander
Then I can see the summary table body
And I can see the table body has a header row
And I can see the table body has data
When I click on the summary expander
Then I can see the summary container
And I cannot see the summary table body
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4651
Scenario: User can see roles with access cards
Given I am logged in
When I go to the select your role page
Then I can see the roles with access cards
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4651
Scenario: User can navigate to the your selected role page
Given I am logged in
When I go to the select your role page
Then I can navigate to the your selected role page by clicking a card
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4655
Scenario: User without access can see the header on the select your role page
Given I am logged in without access
When I go to the select your role page
Then I cannot see the your selected role subheader
And I can see the no access header
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4655
Scenario: User without access can see the message on the select your role page
Given I am logged in without access
When I go to the select your role page
Then I cannot see the your selected role subheader
And I can see the no access message
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4655
Scenario: User without access can see the summary container, but not the table contents by default
Given I am logged in without access
When I go to the select your role page
Then I can see the summary container
And I cannot see the summary table body
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4655
Scenario: User without access can expand the summary table to see the contents. Clicking again hides it
Given I am logged in without access
When I go to the select your role page
When I click on the summary expander
Then I can see the summary table body
And I can see the table body has a header row
And I can see the no access table body has data
When I click on the summary expander
Then I can see the summary container
And I cannot see the summary table body
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4645
Scenario: User with a pre selected role sees their pre selected role
Given I am logged in as a user with a pre selected role
Then I can see the role that has been pre selected