Skip to content

test: count once what a navigation made again to confirm a notice raises twice - #6022

Merged
max-sixty merged 1 commit into
mainfrom
fix-mac-only-tests
Nov 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix-mac-only-tests

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

When navigate sees a ResizeObserver notice during a page load, it loads the page a second time to tell a one-off notice under load from a loop that recurs (confirming_resize_notices). Both loads wrote every other browser problem into the page's record, so a problem raised on every load, such as a widget's refusal, was counted twice. On Nov 9 the chart-refusal test read each chart's refusal twice next to the recurring notice.

The confirming load's record now starts empty. A problem only the first load raised is kept beside it, so a flaky one still fails. The new test, test_a_navigation_made_again_to_confirm_a_notice_counts_its_problems_once, raises one problem on both loads and one on the first load only. Main's helper counts the both-loads problem twice; this change counts each once.

What the page writes to its server's log is not the helper's to undo. The log only grows (served_state/tail.py), so a test reading it after such a navigation still sees what both loads wrote; the helper's docstring now says so. That double count is what failed the chart test on Nov 11. Since #6015 the charts raise no notice at load, so it no longer reaches that test.

pnpm run check and pnpm run test:runtime (978) pass, as do the existing navigation-notice tests.

This was written by Claude Code on behalf of max-sixty

…ses twice

A navigation that raises a ResizeObserver notice is made again to tell a
notice under load from a loop that recurs (`confirming_resize_notices`).
Both loads reported every other problem into the page's record, so one a
load raises each time, as a widget's refusal, stood twice: on Nov 9 the
chart-refusal test read each chart's refusal twice beside the recurring
notice. The confirming load's record now starts empty, and a problem only
the first load raised is kept beside it, so a flaky one still fails.

What the page writes to its server's log is not the helper's to undo: the
log only grows (served_state/tail.py), and a test reading it after such a
navigation sees both loads' writes. The helper's docstring says so.

test_a_navigation_made_again_to_confirm_a_notice_counts_its_problems_once
raises a problem on both loads and one on the first: main's helper counts
the first twice, and this change counts each once.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 260867f into main Nov 15, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix-mac-only-tests branch November 15, 2026 07:51
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.

2 participants