keycloak/js/apps/admin-ui/test
André Rocha 95cfffc4c4
Fix duplicated resource on current and next page in Auth Resources (#47446)
The Authorization Resources table was incorrectly duplicating the last
element of the current page as the first element of the next page.

This occurred because the fetching logic requests 'max + 1' items to
detect if a subsequent page exists. However, the UI was rendering the
entire array instead of limiting the display to the 'max' value.

Fixed by applying a .slice(0, max) before mapping the resources to
table rows. Added a Playwright E2E regression test to ensure unique
resource distribution across pages and prevent future regressions.

Closes #46088

---------

Signed-off-by: André Rocha <andre.queiroz.rocha@tecnico.ulisboa.pt>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-04-17 18:59:59 +02: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] Fix OID4VCI token typ defaults by credential format (#47779) 2026-04-08 16:49:44 +02:00
clients Fix duplicated resource on current and next page in Auth Resources (#47446) 2026-04-17 18:59:59 +02: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 Rename 'Pre-Authorized Code Lifespan' to 'Credential Offer Lifespan' (#47563) 2026-04-10 17:10:14 +02: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 Remove console.log from admin UI workflow test 2026-04-13 08:18:18 +00:00
tsconfig.json Align TypeScript code with Node.js requirements (#41731) 2025-08-07 14:09:28 -04:00