[daily-playwright] Add tests for Admin Permissions Matrix - #16813
Draft
github-actions[bot] wants to merge 1 commit into
Draft
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
| expect(iconCount).toBeGreaterThan(0); | ||
|
|
||
| // Verify we have both check-circle and x-circle icons | ||
| const checkIcons = page.locator("svg[aria-label], text:has-text('✓')"); |
|
|
||
| // Check for pagination element (usually shows page info or navigation) | ||
| // The pagination is rendered by useFilters hook | ||
| const paginationContainer = page.locator("[role='navigation']"); |
Deploying care-preview with
|
| Latest commit: |
79299ae
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d92d6d44.care-preview-a7w.pages.dev |
| Branch Preview URL: | https://daily-playwright-2026-09-15.care-preview-a7w.pages.dev |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://entire.io/gh/ohcnetwork/care_fe/trails/4
What was tested
This PR adds comprehensive test coverage for the Admin Permissions Matrix page (
/admin/permissions), a previously untested administrative feature that displays all roles and their permissions in a matrix view.Page Overview
The Permissions page shows:
Test Coverage Added
File:
tests/admin/permissions/permissionsMatrix.spec.ts(9 test cases)/api/.../rolesendpointWhy this matters
How to run locally
Test quality checklist
getByRole,getByText).admin-table > div:nth-child(2))(feature).spec.tsin feature directoryCloses #16803(part of ongoing daily test coverage improvements)