8000 Wait for the row in the Admin UI E2E clickTableRowItem helper by ahus1 · Pull Request #55085 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Wait for the row in the Admin UI E2E clickTableRowItem helper - #55085

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
ahus1:is-55084-flaky-click-table-row-item
Nov 12, 2026
Merged

ahus1 merged 1 commit into
keycloak:mainfrom
ahus1:is-55084-flaky-click-table-row-item

Conversation

@ahus1
@ahus1 ahus1 commented Nov 12, 2026
Copy link
Copy Markdown
Member

Closes #55084

Decisions and assumptions:

  • The loop is replaced by a single web-first wait with the existing 15s TABLE_LOAD_TIMEOUT_MS, rather than adding sleeps between attempts.
  • The previous preference order is kept: an exact case-insensitive match wins, otherwise the first partial match is clicked.
  • A missing row now fails with Playwright's locator timeout instead of the custom "not found" error.
  • Backport to 26.8 only, as the earlier loop doesn't exist on 26.6 and 26.4.
  • Not verified by a full Playwright run; the helper is used by many tests, so the CI Admin UI E2E job is the check.

Closes keycloak#55084

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the row-click helper update.

No open issues 🎉

What changed in this PR

Updates the shared Admin UI E2E row-click helper to wait for asynchronously rendered rows, addressing the flaky realm-navigation failure in #55084.

Changes:

  • Replaces the rapid retry loop with a Playwright visibility wait using the existing 15-second timeout.
  • Prefers an exact case-insensitive match, falling back to the first partial match.
  • Uses Playwright’s timeout error when no matching row appears.
File Description
js/​apps/​admin-ui/​test/​utils/​table.ts Removes the retry helper and waits for a matching link before selecting and clicking it.

Review effort: Balanced

@ahus1
ahus1 marked this pull request as ready for review November 12, 2026 10:15
@ahus1
ahus1 requested review from a team as code owners November 12, 2026 10:15
@ahus1
ahus1 enabled auto-merge (squash) November 12, 2026 10:15
@ahus1
ahus1 requested a review from edewit November 12, 2026 10:17
@ahus1
ahus1 disabled auto-merge November 12, 2026 10:24
@ahus1
ahus1 merged commit affecd9 into keycloak:main Nov 12, 2026
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: Admin UI E2E advanced.spec.ts 'Clustering' fails with 'Table row item not found'

3 participants

0