Skip to content

test(game): measure the phone sign-in sheet once it stops sliding - #310

Merged
arrzdev merged 1 commit into
mainfrom
fix/signin-sheet-close-wait-for-rest
Nov 10, 2026
Merged

arrzdev merged 1 commit into
mainfrom
fix/signin-sheet-close-wait-for-rest

Conversation

@arrzdev

@arrzdev arrzdev commented Nov 10, 2026

Copy link
Copy Markdown
Owner

The phone sign-in sheet spec checked for clipped text right after the Close button became visible. The sheet was often still sliding up at that point, so the Password label and Sign in button sat below the 667px viewport (reported at y 678 to 813) and counted as cut off. The spec failed about 2 runs in 3 in isolation.

It now waits for the sheet to come to rest (waitForRest, the same helper the layout-shift and rhythm checks use) before it measures text and the Close box. No product change.

Verify: pnpm test:e2e e2e/signin-sheet-close.spec.ts --project=chromium --repeat-each=10 gives 30 passed locally.

The Close check ran expectNoClippedText while the sheet was still sliding
up, so its lower half sat under the screen's edge and read as cut-off
text. Wait for the sheet to rest first.
@arrzdev
arrzdev merged commit fd0cc28 into main Nov 10, 2026
5 checks passed
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