Repository navigation
#2870: browser regression for running-card reachability - #254
Open
jparker2006 wants to merge 1 commit into
Open
jparker2006 wants to merge 1 commit into
jparker2006 wants to merge 1 commit into
Conversation
The jsdom cases never move the pointer, read a computed focus ring, or scroll. The pinned playwright-core runner does those three checks for 50 threads in a short viewport. Co-authored-by: Jake Parker <jparker2006@users.noreply.github.com>
Member
Author
Review #254 at c225a84Independent Codex review of openwizdev/OpenWiz#2870. Builder family inferred as Grok (xAI) from the November 26 Cursor attribution.
Disproved: 2 candidate findings dropped. Checked Standards, ticket #2870 and the full diff. The test is within the owned paths and uses lockfile-pinned Playwright Core 1.65.1 (Apache-2.0). With Chromium, the new test passed and failed independently when the old pointer gap was restored, the focus ring was removed, and the viewport height bound was removed. Typecheck passed. The full local suite passed with 1,674 tests, and all nine tests in the separate browser suite passed. CI passed at this head. VERDICT: CHANGES at c225a84 |
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.
No launch-fleet start record on the ticket yet; a record author (jparker2006 / openwiz[bot]) must post it before merge.
Fixes openwizdev/OpenWiz#2870
Fixes #150
What changed
wizbar/src/footer-card.test.tsxnow runs one synthetic browser regression for the running card. It opens 50 synthetic threads in a 350×480 viewport, moves the pointer across the old 6px gap, sends Tab and reads the computed focus indicator, and scrolls the thread list so the first and last rows are fully inside the list and the viewport.The jsdom cases in the same file still only read inline styles, walk a subset of focusable markup, and move focus by calling
focus(). Those can pass when a real pointer misses the card, the next Tab leaves it, the focus ring is invisible, or the list never scrolls.browser/running-card.test.tsis left as it is. This regression lives in the owned test file and runs withnpm test.Runner (J187)
playwright-corewizbar/package.jsonhasplaywright-core^1.65.1, andwizbar/package-lock.jsonresolves that to 1.65.1 withlicense: Apache-2.0(the installed package.json says the same). It is the runner the existing browser regressions use. It is small enough: no browser binary is added to the install. The test launches the Chrome already on the machine, found the same way aswizbar/browser/running-card.test.ts.The full
playwrightpackage, which downloads browsers on install, was not added. No workflow change was needed.wizbar/package.jsonandwizbar/package-lock.jsonare unchanged, so the licence field stays as it is onmain. Pull request #252, still open, is the change that sets that field toApache-2.0 AND MIT; this branch does not touch the line.Pull request #253 still edits the README licence text and the root
LICENSE. This ticket does not own those files. This branch is based onmainat8c0aa627and does not take them.What the test catches
One test,
moves the pointer across the old gap, tabs to a computed focus ring, and scrolls the first and last of 50 threads:Red, then green
The reachability fix is already on
main(WB4-10,#1585). The owned paths do not include the component files, so the red runs reintroduced each old failure locally and were not committed. The component files were restored after each run.Red, gap only (
bottom: calc(100% + 6px),paddingBottom: 0),npx vitest run --config vitest.config.ts src/footer-card.test.tsx -t "moves the pointer across the old gap" --maxWorkers=2: 1 failed, 60 skipped.pointer can cross the gap: expected false to be true.Red, focus only (row
outlineandboxShadowset tonone,focus-visiblering class removed): 1 failed, 60 skipped. Computed focus was{ inCard: true, visible: false }.Red, scroll only (
maxHeightremoved): 1 failed, 60 skipped. At the top of the list,cardInsidewas false,inViewportwas false,overflowwas false, and the last row was still inside the list.Green, with those edits restored: that test passed (1 passed, 60 skipped).
Bench & Eval
Head:
c225a84b52767d860799fea2d9170b645c7dc278. Local Node v22.23.4, npm 10.9.9, fromwizbar/. CI uses Node 24.22.1. Chrome used locally: 157.0.8103.50.npx tsc --noEmit: passnpm test -- --maxWorkers=2: 57 files passed, 1 skipped; 1674 tests passed, 2 skippedpython3 -I tools/comment-check/check.py diff --base origin/main(OpenWiz's checker; this repo has no copy):comment-check: okWIZBAR_REQUIRE_BROWSER=1 npm run test:browser: 2 failed, 7 passed. Both failures are the existingshows all 100 threadscases inbrowser/running-card.test.ts, which this pull request does not change: after the pointer crosses the gap,mouse.move(1, height - 40)left the card open (expected false to be trueat line 137). Re-ran after clearingnode_modules/.vitewith the same result. The product files are unchanged frommain.