-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: [AEA-4974] - Change role page shows 'No Access' if the 1 role with access is 'selected' #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a996baa
Trigger build
kris-szlapa 5e7b05b
Add the test user 555043303526 and test user descriptions
kris-szlapa 1256c4a
Merge branch 'main' of https://github.com/NHSDigital/electronic-presc…
kris-szlapa 21f75fb
Add scenarios for for a user with one role with access and multiple r…
kris-szlapa 65be573
Add the step to confirm the user cannot see the no access message
kris-szlapa 41d6e00
Fix the typo
kris-szlapa 5c75bba
Correct the syntax of the test
kris-szlapa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
features/cpts_ui/change_role_one_with_access_multiple_witthout.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @cpts_ui @change_role @single_access_multiple_without @regression @blocker @smoke @ui | ||
| @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4974 | ||
| Feature: Users are able to change their roles, if they have one role with access and multiple roles without access. | ||
|
|
||
| Background: | ||
| Given I am logged in with a single access role and multiple without access | ||
|
|
||
| ############################################################################ | ||
| # Successfully changing role scenarios | ||
| ############################################################################ | ||
| Scenario: User can change their role and see the correct message on the change role page | ||
| And I click a change role role card | ||
| When I click the change link next to the role text | ||
| Then I am on the change role page | ||
| And I can see the role that has been pre selected | ||
| And I cannot see the no access message | ||
| And I cannot see any change role roles with access cards | ||
|
|
||
| Scenario: User can see roles with access cards | ||
| Then I see the change role roles with access cards | ||
| And I can see one change role roles with access card | ||
|
|
||
| ############################################################################ | ||
| # Expanding/collapsing the summary | ||
| ############################################################################ | ||
| Scenario: Change role roles without access table body is not visible by default | ||
| Then the change role roles without access table body is not visible | ||
|
|
||
| Scenario: User can expand the change role 'Roles without access' to see table contents | ||
| When I click on the change role summary expander | ||
| Then I see the change role roles without access table | ||
|
|
||
| Scenario: User can collapse the change role 'Roles without access' to hide table contents | ||
| Given the summary table body is displayed | ||
| When I click on the change role summary expander | ||
| Then The change role roles without access table body is not visible | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.