keycloak/js/apps/admin-ui/test/utils
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
..
files Improve Public Key Management for JWTAuthorizationGrant identity provider 2025-12-03 11:45:34 +01:00
AdminClient.ts Fix stale empty state after deleting last resource on a page (#47373) 2026-03-25 16:24:54 -04:00
attributes.ts playwright rewrite (#36276) 2025-03-12 07:35:22 -04:00
constants.ts playwright rewrite (#36276) 2025-03-12 07:35:22 -04:00
file-chooser.ts Improve Public Key Management for JWTAuthorizationGrant identity provider 2025-12-03 11:45:34 +01:00
form.ts added eslint to admin-ui (#38226) 2025-03-19 08:16:59 +01:00
login.ts Parallelize authentication tests for the admin console (#43376) 2025-10-14 13:54:18 -04:00
masthead.ts playwright rewrite (#36276) 2025-03-12 07:35:22 -04:00
modal.ts playwright rewrite (#36276) 2025-03-12 07:35:22 -04:00
roles.ts Parallelize client scope tests for the admin console (#43675) 2025-10-24 16:08:33 -04:00
sidebar.ts UI tests for workflows 2025-12-10 19:13:23 -03:00
table.ts Playwright tests for user workflows tab. (#45771) 2026-01-29 08:17:00 -05:00