Skip to content

test(browser): draw the page before holding a dialog in the pane test - #965

Merged
omartelo merged 1 commit into
mainfrom
fix/macos-held-dialog-frame
Oct 28, 2026
Merged

omartelo merged 1 commit into
mainfrom
fix/macos-held-dialog-frame

Conversation

@omartelo

@omartelo omartelo commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes the macos-latest failure of TestChromeAPaneOpenedOnADialogShowsThePage on main since #958.

Headless Chrome on macOS has not painted the page when Navigate returns; a dialog held open before that first paint leaves the screencast nothing to send. Measured on the runner (Chrome 155): page drawn first (screenshot, earlier screencast, or 2 s idle) casts within 25 ms; not drawn, no frame in 15 s. The test asserted a frame of a page never drawn, which the contract never promised, so it now draws the page first, as an agent's click would have. The gap for a dialog opened before first paint goes into docs/ceilings.md.

Test plan

  • go test -count=5 -run 'TestChromeAPaneOpenedOnADialog|TestChromeADialog' ./internal/browser/ on Linux
  • macos-latest os-tests green

TestChromeAPaneOpenedOnADialogShowsThePage failed on every macos-latest
run since #958: headless Chrome on macOS has not painted the page when
Navigate returns, and a dialog held open before the first paint leaves
the screencast no frame to send. The test asserted a frame of a page
that was never drawn, which the contract never promised; a dialog opened
by an agent's click comes after the page has been drawn. Measured on the
runner: with the page drawn first (a screenshot, a prior screencast or
two idle seconds) the held page casts within 25 ms; without, no frame in
15 s.

The gap for a dialog opened before the first paint is written down in
docs/ceilings.md.
@omartelo
omartelo force-pushed the fix/macos-held-dialog-frame branch from 3dcbe3b to 9d79dd1 Compare October 28, 2026 16:43
@omartelo omartelo changed the title WIP: diagnose macOS held-dialog screencast (do not merge) test(browser): draw the page before holding a dialog in the pane test Oct 28, 2026
@omartelo
omartelo marked this pull request as ready for review October 28, 2026 16:43
@omartelo
omartelo merged commit ff2c0d8 into main Oct 28, 2026
7 checks passed
@omartelo
omartelo deleted the fix/macos-held-dialog-frame branch October 28, 2026 16:57
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