Skip to content

browser example: Start enabled only once the module has run; the page test waits for it - #4

Merged
pinhopro merged 1 commit into
mainfrom
fix/pages-wait-for-module
Dec 5, 2026
Merged

pinhopro merged 1 commit into
mainfrom
fix/pages-wait-for-module

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

browser_portable timed out on CI with the page reporting {"status":"ready","run":0}: the driver clicked Start before workbench.mjs had attached its submit listener, so the click submitted the form natively and nothing ran. Reproduced by delaying the module 3 s.

  • index.html: Start is disabled until workbench.mjs has attached its listener and enables it.
  • pages.mjs: the server delays workbench.mjs by 1 s on every drive; the driver waits for window.cobaltReport, asserts Start was disabled before the module ran, and only then clicks. The old wait fails under that delay; the new one passes all 8 drives.

🤖 Generated with Claude Code

…its handler; the pages driver waits for the module

CI run 47200420929 failed browser_portable's Asyncify pages with state ready, run 0: on a loaded
runner the driver filled and clicked before workbench.mjs ran, so the click submitted the form
natively and reloaded the page. index.html now disables Start and workbench.mjs enables it once the
handler is attached; pages.mjs waits for the module after every navigation, checks Start disabled
before it, and its server serves the module a second late, so that every run crosses that window.
With that delay the former wait fails with the CI's exact state; the fixed driver passes JSPI and
Asyncify, with and without exceptions, for the portable and SPSC pages.
@pinhopro
pinhopro merged commit 182ed0e into main Dec 5, 2026
162 of 164 checks passed
@pinhopro
pinhopro deleted the fix/pages-wait-for-module branch December 5, 2026 19:21
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