Skip to content

fix: leave browser page cleanup to its fixture - #4986

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4926
Nov 1, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4926

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Four browser tests closed borrowed pages before fixture teardown could read their health. Remove those closes and the cleanup-only try/finally blocks, leaving the browser fixture to read health, cancel routes and close contexts. All behavioral assertions remain.

The ownership audit fails on the original four closes and passes after this change. The focused selection reports five passes (ownership, first replay, observation windows and both delayed-shift cases). Ruff and Python compilation pass. The native-layout case still fails because its exhibit shrinks from 189.25px to 187.96875px; the same failure reproduces on current main at 769a84cf1, and is owned by #4985.

This preserves the native layout and rendering lifecycle introduced in #4724 and the observation-window coverage in #4852; only teardown ownership changes.

Closes #4926 — automated triage

Remove premature page closes so fixture teardown can read page health before closing contexts. Preserve all readiness, native layout and layout-shift assertions.

Closes #4926
@leaf-agent
leaf-agent merged commit 935bbdd into main Nov 1, 2026
5 of 6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4926 branch November 1, 2026 19:48
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.

Browser tests close pages before their owning fixture reads health

1 participant