Skip to content

test(login): wait for the email autofocus before filling the form - #192

Merged
BatLeDev merged 1 commit into
masterfrom
fix-nightly-createuser-focus
Nov 3, 2026
Merged

BatLeDev merged 1 commit into
masterfrom
fix-nightly-createuser-focus

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Nov 3, 2026

Copy link
Copy Markdown
Member

Fix the "create new user account" e2e test that turned the nightly of 2026-11-03 red: it waits for the email field to be focused before filling the form, like the other login tests do.

Why: Vuetify focuses an autofocus field 50 ms after it intersects (setTimeout in useAutofocus). The test typed right after the field showed, so the delayed focus could come back to the email field while the password was typed: the password landed in the email field (newuser@test.comTestPasswd01 in the failure snapshot), the form stayed invalid and no mail was sent.

Heads-up: the focus steal itself remains a UX issue (a fast typist or a password manager hits it as well); it is not addressed here.

…ser form

Vuetify focuses an autofocus field 50 ms after it intersects (setTimeout in
useAutofocus). The create user test filled the email right after the field
showed, so the delayed focus could come back to the email field while the
password was typed: the password landed in the email field, the form stayed
invalid and no confirmation mail was sent (nightly of 2026-11-03, waitForMail
timeout). Wait for the field to be focused, like the other login tests do.
@BatLeDev
BatLeDev merged commit 34e35fa into master Nov 3, 2026
7 checks passed
@BatLeDev
BatLeDev deleted the fix-nightly-createuser-focus branch November 3, 2026 09:58
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.

1 participant