keycloak/js/apps/admin-ui/test
João Viegas 32e304b9c2
Fix stale empty state after deleting last resource on a page (#47373)
When the last item on a paginated table is deleted, the UI
incorrectly displayed 'No resources found' instead of navigating
back to the previous page. This commit resolves the local state
issue and adds a Playwright E2E regression test to ensure the
table correctly refetches and displays the remaining resources.

Refactored E2E test:
- Replaced while(true) loop with a deterministic for loop;
- Implemented exact string matching and test id locators;
- Added resource cleanup to prevent polluting subsequent tests;
- Added deleteResource in AdminClient.ts to assist in the cleanup.

Closes #46089

Signed-off-by: João Viegas <joao.manuel.loja.viegas@tecnico.ulisboa.pt>
2026-03-25 16:24:54 -04:00
..
autentication Do drag&drop in a way that works consistently on both browsers. 2026-03-16 10:03:04 -03:00
client-scope [OID4VCI] Improve signing key selection 2026-03-23 10:26:45 +01:00
clients Fix stale empty state after deleting last resource on a page (#47373) 2026-03-25 16:24:54 -04:00
events AdminEvent.getResourcePath() returns paths with duplicated slashes 2026-01-05 21:18:39 +00:00
groups Hide 'Include sub-group users' for org groups. 2026-03-18 14:12:55 +01:00
identity-providers Allow specifying max allowed expiration of federated client assertion in the Identity Provider settings (#46629) 2026-02-27 07:05:10 +00:00
masthead Iterate realm deletion in realm.spec.ts 2026-02-10 21:20:50 +01:00
organization Hide 'Include sub-group users' for org groups. 2026-03-18 14:12:55 +01:00
permissions Disable test retries for admin console (#42289) 2025-09-02 15:49:33 -04:00
realm-roles Flaky realm role test 2025-09-03 08:00:42 +02:00
realm-settings [OID4VCI] Disable OID4VCI functionality when Verified Credentials switch is off (#44995) 2026-01-19 14:09:42 +01:00
sessions Disable test retries for admin console (#42289) 2025-09-02 15:49:33 -04:00
support Automatically dispose of realms created by createTestBed() (#43299) 2025-10-10 10:22:21 -04:00
user-federation Issue 42360 flaky ldap mapper test 2025-09-05 15:33:45 +02:00
users Fix missing validation error labels when editing a user (#45551) 2026-01-20 12:24:05 -05:00
utils Fix stale empty state after deleting last resource on a page (#47373) 2026-03-25 16:24:54 -04:00
workflows Playwright tests for user workflows tab. (#45771) 2026-01-29 08:17:00 -05:00
tsconfig.json Align TypeScript code with Node.js requirements (#41731) 2025-08-07 14:09:28 -04:00