Repository navigation
Conversation
susnux
marked this pull request as ready for review
December 6, 2026 00:41
susnux
requested review from
kristian-zendato,
payal8797 and
skjnldsv
and removed request for
a team
December 6, 2026 00:41
@nextcloud/dialogs 8 also writes every toast message into a hidden aria-live region for screen readers, shortly after the toast appears and only for a few seconds. A plain getByText() then randomly hits both elements and fails in strict mode, so match the toast itself. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
susnux
force-pushed
the
fix/playwright-ai-settings-toast
branch
from
December 6, 2026 14:29
3ed0a3e to
333c09e
Compare
Contributor
|
Possible performance regression detected Show Output |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three settings e2e tests check error toasts with
page.getByText(...). Since@nextcloud/dialogs8, the toast container also copies each message into a hiddenaria-liveregion for screen readers. The copy is written 50 ms after the toast appears and cleared after 7 s, sogetByTextsometimes matches both elements and fails with a strict-mode violation, e.g. on #65150:These tests now use the existing
getToast()helper. It matches only the toast itself (role="alert"/"status"), like the other specs already do.Checklist
3. to review, feature component)stable32)AI (if applicable)