A PR fixing Identity Provider Links tab access had no tests validating who can see the tab — the exact behavior the PR was fixing.
Every requirement extracted from the PR, mapped to existing tests and verified against the codebase. Click any row to see the search evidence.
Coverage Distribution
Requirement Coverage
| # | Requirement | Code Symbol | Existing Test | Status | |
|---|---|---|---|---|---|
R1 Admin with 'view-users' role should see the IDP Links tab UserIdentityProviderLinks.tsx None GAP | |||||
R2 Admin with 'manage-users' role should see the IDP Links tab UserIdentityProviderLinks.tsx None GAP | |||||
R3 Admin without required roles should NOT see the IDP Links tab UserIdentityProviderLinks.tsx None GAP | |||||
R4 IDP Links tab lists all linked identity providers UserIdentityProviderLinks.tsx Partial PARTIAL | |||||
R5 Admin can link a new identity provider to a user UserIdentityProviderLinks.tsx None GAP | |||||
R6 Admin can unlink an identity provider from a user UserIdentityProviderLinks.tsx None GAP | |||||
R7 UI displays message when no IDPs are linked UserIdentityProviderLinks.tsx Partial PARTIAL | |||||
R8 Change should not grant access to IDP configurations UserIdentityProviderLinks.tsx Partial PARTIAL | |||||
Admin with 'view-users' role should see the IDP Links tab
Admin with 'manage-users' role should see the IDP Links tab
Admin without required roles should NOT see the IDP Links tab
IDP Links tab lists all linked identity providers
Admin can link a new identity provider to a user
Admin can unlink an identity provider from a user
UI displays message when no IDPs are linked
Change should not grant access to IDP configurations
These gaps were verified by searching the repository's test directories. Each finding includes the exact search query and result so you can reproduce it yourself.
Searched for tests validating tab visibility based on 'view-users' and 'manage-users' roles in testsuite/ and js/apps/admin-ui/test/ — found none.
No tests found in the repository that cover the workflow of an admin adding or removing identity provider links from a user's profile.
No tests found that assert the tab is hidden for users who lack the required permissions — the exact bug this PR was fixing.
| Requirement | Before | After |
|---|---|---|
| Admin with 'view-users' sees IDP Links tab | ✗ None | ✓ Unit + E2E |
| Admin with 'manage-users' sees IDP Links tab | ✗ None | ✓ Unit + E2E |
| Admin without roles does NOT see tab | ✗ None | ✓ Unit + E2E |
| IDP Links tab lists linked providers | ~ Partial | ✓ Unit + E2E |
| Admin can link new IDP to user | ✗ None | ✓ E2E |
| Admin can unlink IDP from user | ✗ None | ✓ E2E |
| Empty state message displayed | ~ Partial | ✓ Unit |
| No access to IDP configurations | ~ Partial | ✓ Unit + E2E |
Every finding in this analysis is based on a public GitHub repository. Clone the repo, run the searches we documented, and see the same results. No black boxes.