Skip to content

fix: broaden verifyAlertErrorMessage locator - #178

Merged
subhashkhileri merged 3 commits into
redhat-developer:mainfrom
JessicaJHee:alert-dialog
Oct 6, 2026
Merged

subhashkhileri merged 3 commits into
redhat-developer:mainfrom
JessicaJHee:alert-dialog

Conversation

@JessicaJHee

@JessicaJHee JessicaJHee commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Match sign-in error toasts that are not exposed as role="alert" (alertdialog / alert / text fallback)

Made with Cursor

JessicaJHee and others added 2 commits October 5, 2026 12:13
Sign-in error toasts are not always exposed as role="alert".

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@JessicaJHee

Copy link
Copy Markdown
Member Author

Successful test run with this fix

Comment thread src/playwright/helpers/ui-helper.ts Outdated
.filter({ hasText: message })
.or(this.page.getByRole("alert").filter({ hasText: message }))
.or(this.page.getByText(message));
await expect(alert.first()).toBeVisible({ timeout: 30_000 });

@subhashkhileri subhashkhileri Oct 6, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Filter visible matches before .first()

Co-authored-by: Cursor <cursoragent@cursor.com>
@subhashkhileri
subhashkhileri merged commit 45bef6e into redhat-developer:main Oct 6, 2026
3 checks passed
JessicaJHee added a commit to JessicaJHee/rhdh-e2e-test-utils that referenced this pull request Oct 6, 2026
redhat-developer#178

Cherry-pick to release-2.1 (2.1.22).

Co-authored-by: Cursor <cursoragent@cursor.com>
subhashkhileri pushed a commit that referenced this pull request Oct 7, 2026
#178

Cherry-pick to release-2.1 (2.1.22).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants