Repository navigation
test(BottomSheet): the keyboard proofs hold the scene at the report - #10279
Conversation
Under load, five Chrome-on-Android proofs of the keyboard inset failed. Each read the content's ride or fade after the report, on a later frame or through a hold the test sent. The ride ends less than 200 ms after the report. A loaded runner's next frame or command can come after that: "no ride among []", a pan put back with ride 0, or no frame below opacity 1. A slow enough runner even ends the slide while the page still handles the report. The proofs now freeze the scene before the page hears the report, as the settle proofs freeze it before the sheet hears the lift. The ride or fade then starts held, on the scene's own clock. The test reads it, or pans the viewport on real frames, and thaws. What the proofs assert is unchanged.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| BottomSheet | 59.4 kB (0) · 7.5 kB CSS (0) | — | ✓ · ✓ · — |
| BottomSheetSwitcher | 17.5 kB (0) · 3.4 kB CSS (0) | — | ✓ · ✓ · — |
Package size: no published package changed; no new dependencies.
API changes: none in this pull request
Committed API report behind this build: cli 19 rows, core 24 rows; run pnpm api:report.
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
|
/approve-spec 40b033f |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. This is a draft from a fork, so once it is ready for review a maintainer adds the ci:run label so CI runs.
The change is test-only, and the five Chrome-on-Android proofs still verify what they did (AST-099 FR8 and the reduced-motion cross-fade). The rewritten proofs pass under heavy CPU throttling, and they still fail when the ride, the cross-fade or the pan put-back is removed.
Non-blocking:
- The comment at line 319, and the description, say the show ride ends under 200 ms after the report, but it ends about 242 ms after it (Gboard's 267 ms slide minus the 25 ms report lag); "the rest of Gboard's 267 ms slide, about 240 ms after the report" would be accurate.
[Automated review]
| await field.focus(); | ||
| const before = await readBody(field); | ||
| const reported = await reportAt(page, COVER); | ||
| // The ride lasts the rest of Gboard's slide, under 200 ms. A hold sent |
There was a problem hiding this comment.
Non-blocking: the show ride ends about 242 ms after the report, not under 200 ms. It starts at Gboard's start, 25 ms before the report, and runs the 267 ms slide, so the held ride is at 25 ms with its curve ending at 267 ms. Only the hide ride (167 − 33 = 134 ms) is under 200 ms. Suggested: "The ride lasts the rest of Gboard's 267 ms slide, about 240 ms after the report."
|
/approve-spec e84ffb4 |
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet.
The change is test-only, and the five Chrome-on-Android proofs still verify what they did (AST-099 FR8 and the reduced-motion cross-fade). The rewritten proofs pass under heavy CPU throttling, and they still fail when the ride, the cross-fade or the pan put-back is removed.
Non-blocking:
- The comment at line 319, and the description, say the show ride ends under 200 ms after the report, but it ends about 242 ms after it (Gboard's 267 ms slide minus the 25 ms report lag); "the rest of Gboard's 267 ms slide, about 240 ms after the report" would be accurate.
[Automated review]
Maintainer impact
Five Chrome-on-Android proofs in the BottomSheet keyboard-inset spec fail on a loaded runner. The show and hide rides find "no ride among []", and the pan put-back sees ride 0. The Reduce Motion cross-fade has no frame below opacity 1.
Intended invariant
The proofs judge the sheet's ride, fade and pan put-back on the scene's own time, however slowly the runner runs. What they assert is unchanged.
Change
Each proof read the content's ride or fade after the keyboard report, on a later frame or through a hold the test sent. The ride ends less than 200 ms after the report. On a loaded runner, the next frame or command can come after that. A slow enough runner even ends the slide while the page still handles the report, so no ride starts.
The proofs now freeze the scene before the page hears the report, with the harness's page freeze. The settle proofs freeze the same way before the sheet hears the lift. The ride or fade then starts held, on the scene's own clock.
Evidence
Chromium, the worker and its load on two cores, the arms interleaved on one machine:
Scope
Testing
Each arm pins the worker and any busy loops to the same two cores. As commits not for landing, with CPU throttling set by an environment variable:
Story-load timeouts at 60 s, tracked separately:
page.gotoonce in the two-loop arm before the change; once each under CPU ×8, two loops and CPU ×20 after it. Under CPU ×40 after the change:page.gototwice, the Storybook root once, a locator wait once.Prettier, ESLint,
pnpm lint, the core type check andreview:preare clean.