Skip to content

Commit a973bac

Browse files
Fix: [AEA-5338] - updated cards roles with access (#473)
## Summary **Remove items from this list if they are not relevant. Remove this line once this has been done** - Routine Change - ❗ Breaking Change - 🤖 Operational or Infrastructure Change - ✨ New Feature - ⚠️ Potential issues that might be caused by this change ### Details Add any summary information of what is in the change. **Remove this line if you have nothing to add.** ## Pull Request Naming Pull requests should be named using the following format: ```text Tag: [AEA-NNNN] - Short description ``` Tag can be one of: - `Fix` - for a bug fix. (Patch release) - `Update` - either for a backwards-compatible enhancement or for a rule change that adds reported problems. (Patch release) - `New` - implemented a new feature. (Minor release) - `Breaking` - for a backwards-incompatible enhancement or feature. (Major release) - `Docs` - changes to documentation only. (Patch release) - `Build` - changes to build process only. (No release) - `Upgrade` - for a dependency upgrade. (Patch release) - `Chore` - for refactoring, adding tests, etc. (anything that isn't user-facing). (Patch release) If the current release is x.y.z then - a patch release increases z by 1 - a minor release increases y by 1 - a major release increases x by 1 Correct tagging is necessary for our automated versioning and release process ([Release](./RELEASE.md)). The description of your pull request will be used as the commit message for the merge, and also be included in the changelog. Please ensure that your title is sufficiently descriptive. ### Rerunning Checks If you need to rename your pull request, you can restart the checks by either: - Closing and reopening the pull request - pushing an empty commit ```bash git commit --allow-empty -m 'trigger build' git push ``` - Amend your last commit and force push to the branch ```bash git commit --amend --no-edit git push --force ``` Rerunning the checks from within the pull request will not use the updated title.
1 parent 488a1d9 commit a973bac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages/change_role.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def __init__(self, page: Page):
2323
self.first_row_role_name = page.get_by_test_id("change-role-role-cell").first
2424

2525
# Role cards - roles with access
26-
self.roles_with_access_cards = page.locator(".nhsuk-card--clickable")
27-
self.first_role_card = self.roles_with_access_cards.first
26+
self.roles_with_access_cards = page.get_by_test_id("eps-card")
27+
self.first_role_card = page.locator(".eps-card__org-focus-area").first
2828
self.role_card_headings = page.locator(".nhsuk-card__heading")
2929
self.role_card_descriptions = page.locator(".eps-card__roleName")
3030

pages/select_your_role.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def __init__(self, page: Page):
2525
self.first_row_role_name = page.get_by_test_id("change-role-role-cell").first
2626

2727
# Role cards - roles with access
28-
self.roles_with_access_cards = page.locator(".nhsuk-card--clickable")
29-
self.first_role_card = self.roles_with_access_cards.first
28+
self.roles_with_access_cards = page.get_by_test_id("eps-card")
29+
self.first_role_card = page.locator(".eps-card__org-focus-area").first
3030
self.role_card_headings = page.locator(".nhsuk-card__heading")
3131
self.role_card_descriptions = page.locator(".eps-card__roleName")
3232

0 commit comments

Comments
 (0)