Skip to content

test(playwright): answer password confirmation via a locator handler - #64404

Open
susnux wants to merge 1 commit into
masterfrom
worktree-fix+playwright-password-confirmation
Open

susnux wants to merge 1 commit into
masterfrom
worktree-fix+playwright-password-confirmation

Conversation

@susnux

@susnux susnux commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

The dialog only appears once a session's confirmation window has expired, so the old helper probed for it for 500 ms and silently skipped it on a slow shard, leaving the guarded request unsent; its wait for the dialog to close was unbounded.

Install a locator handler per logged-in page instead, and use awaitPasswordGuardedRequest() where a response promise is awaited, since handlers never run during a bare waitForResponse.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The dialog only appears once a session's confirmation window has expired, so
the old helper probed for it for 500 ms and silently skipped it on a slow
shard, leaving the guarded request unsent; its wait for the dialog to close
was unbounded.

Install a locator handler per logged-in page instead, and use
awaitPasswordGuardedRequest() where a response promise is awaited, since
handlers never run during a bare waitForResponse.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added this to the Nextcloud 36 milestone Sep 15, 2026
@susnux susnux added 3. to review Waiting for reviews tests Related to tests labels Sep 15, 2026
@susnux

susnux commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable35

@susnux

susnux commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@susnux
susnux marked this pull request as ready for review September 15, 2026 23:51
@susnux
susnux requested a review from a team as a code owner September 15, 2026 23:51
@susnux
susnux requested review from kristian-zendato, skjnldsv and sorbaugh and removed request for a team September 15, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants