Repository navigation
test: count once what a navigation made again to confirm a notice raises twice - #6022
Merged
Merged
Conversation
…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_
leaf-agent
approved these changes
Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
navigatesees 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 checkandpnpm run test:runtime(978) pass, as do the existing navigation-notice tests.