Repository navigation
fix(test): repair three browse test files stranded by the v1.63–v1.64.1 refactors - #2590
Closed
sneakygriff wants to merge 2 commits into
Closed
sneakygriff wants to merge 2 commits into
sneakygriff wants to merge 2 commits into
Conversation
…efactors All three failed deterministically on PRISTINE v1.64.1.0 (c118e24) on any machine that actually runs them; upstream CI never sees the first because it skips without Playwright chromium installed. - compare-board.test.ts: the v1.64 signature-bridge wrapper for handleReadCommand dropped its 4th argument (the BrowserManager), so the now-unconditional JS-origin assertion TypeError'd on bm.hasCookieImports() — all 16 tests. The sibling write bridge two lines down had it right. - extension-sender-auth.test.ts: the behavioral 'gate answers' loops iterated 'sidebar-command', which background.js no longer routes (dropped from ALLOWED_TYPES with the chat rip) — the listener goes silent on unknown types BEFORE the sender gate. Routed types keep the answers assertion; 'sidebar-command' keeps a nothing-usable-leaks check. - security-sidepanel-dom.test.ts: five tests drove the shield/banner off the ripped chat path; the first waited 15s for a data-status that never arrives, and bun's timeout handler SIGTERM'd the SHARED beforeAll browser (exit 143), cascading 'browser has been closed' into the rest. Replaced with pins of the current contract (shield exists, stays hidden, stays undriven) plus a tombstone for resurrecting the old cases if the shield is ever re-driven. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
…handleReadCommand bridge (same class as compare-board) Upstream v1.64.1.0 changed handleReadCommand's signature to (command, args, session, bm), but this file's local bridge still called it with the old 3-arg shape, leaving bm undefined. read-commands.ts:186's now-unconditional JS-origin assertion then TypeErrors on bm.hasCookieImports(), which is exactly the bug already fixed in compare-board.test.ts (8a37d90). Co-Authored-By: Claude Fable 5 <[email protected]>
4 of 9 tasks
Owner
|
Closing as superseded: all three target files were repaired or deleted on main before this PR (v1.67.0.0 close-only reclassification; survivors run green at HEAD). Thank you for the report/patch — the class is covered on main. |
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.
Problem
Three browse test files fail deterministically on pristine
c118e240on any machine that actually runs them (24 failures total):handleReadCommanddrops its 4th argument, so the now-unconditional JS-origin assertion TypeErrors onbm.hasCookieImports(). The sibling write bridge two lines down passes it correctly.sidebar-command, whichbackground.jsno longer routes (dropped fromALLOWED_TYPESwith the chat rip) — the listener goes silent on unknown types before the sender gate ever runs.sidepanel.jsnow deliberately leaves the shield "hidden by default, not driven". The first test waits 15s for adata-statusthat never arrives, and bun's timeout handler SIGTERMs the sharedbeforeAllbrowser (exit 143), cascading "browser has been closed" into every later test.CI never sees #3 because the file self-skips wherever Playwright chromium isn't installed.
Fix
bthrough the read bridge (one argument).sidebar-commandkeeps a nothing-usable-leaks check and stays in the sender-auth policy as defense-in-depth.Verification
bun test browse/test/security-sidepanel-dom.test.ts browse/test/extension-sender-auth.test.ts browse/test/compare-board.test.ts --timeout 30000: 38/38 pass (Playwright chromium-backed, macOS arm64).🤖 Generated with Claude Code