Repository navigation
fix(web): e2e regressions after #66 and #81, a WebKit focus trap and SDK loading under Node - #89
Merged
Merged
Conversation
…SDK loading under Node Stale specs: Settings' Members section is Collaborators since #66 (v2-7, the a11y settings-repo page, v2-private-members); a writer gets no merge panel on a protected base since #66 (v2-pulls c5); the issue label picker and the Open/Closed state tabs changed in #81 (v2-writes w4, v2-home b-3b); the fixture has four issues (v2-1); new-release r1's Releases heading also matched 'No releases yet'. Product: the dialog focus trap now moves Tab itself, so Safari and WebKit (which tab only between fields by default) no longer leave the sign-in modal; it leaves a Tab a widget already handled and skips an element that will not take focus. The SDK wasm loader reads a file: URL from disk, so every *.live.test.ts that connects the SDK runs under vitest again (it failed with Node fetch's 'not implemented'). Harness: the write specs take their identities from E2E_IDENTITY_DIR and the fixture from E2E_V2_OWNER / E2E_V2_EMPTY_OWNER, and skip rather than write to the shared fixture; axe waits for finite animations (the login modal's fade-in flaked contrast 4 in 10); the skip-link test uses Option+Tab in WebKit and nr-1 (CDP) runs in Chromium only. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 50 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Fixes the web e2e regressions the full Playwright sweep found. The first was the reported
v2-7(repo settings: members) failure on master.v2-7: root cause
It was a deliberate UI change, so this is a stale test. #66 (the repo settings rework) renamed Settings' Members section to Collaborators. It is now a
<section aria-labelledby>region with an h2. The data was correct throughout: the page listedMAINTAINER (owner),MAINTAINER,WRITERfrom the membership documents. Only thegetByRole('heading', { name: 'Members' })locator went stale. The same locator was stale in the a11ysettings-repopage (both themes) and inv2-private-members. The private-member gating inlib/repo/writes.ts(#51/#67) is not involved.Other stale specs (UI changed on purpose)
canMarkMergedgating (#66)role="tab"nowProduct fixes
lib/focus.ts). Safari tabs only between form fields by default, andtrapTabonly acted at the ends of the list, so Tab left the sign-in modal for the page behind it ("Tab 1 left the dialog for BODY").trapTabnow moves every Tab itself. It leaves alone a Tab that a widget already handled (defaultPrevented), and it skips an element that won't take focus. New unit tests inlib/focus.test.ts: 4 of the 5 fail on master.lib/sdk/wasm-fetch.ts). Under vitest,new URL(…, import.meta.url)is afile:URL and Node's fetch throws "not implemented", so every*.live.test.tsthat connects the SDK failed.private.live.test.tsandmerge-seed.live.test.tsfeedv2-private-membersandv2-pullsc7. An explicitfile:URL is now read from disk. The browser never sees one, and a relative URL is still fetched. The new test fails on master.Harness
E2E_IDENTITY_DIR, and the fixture fromE2E_V2_OWNER/E2E_V2_EMPTY_OWNER. If they would write to the shared fixture, they skip and say why instead. This is documented ine2e/README.md. It makes it possible to run the fullE2E_WRITE=1suite under freshly minted identities without touchingforge-v2-demo/forge-v2-empty.runAxewaits up to 5 s for finite animations to finish.a11y: login (light)flaked on contrast 4 times in 10 because axe measured mid-way through the modal's 150 ms fade-in.nr-1uses CDP, so it runs only in Chromium.Verification
E2E_WRITE=1, chromium, fresh minted identities: 141 passed, 7 failed, 10 not run. The failures were r1, x2, b-3b, c5, w4, a2 (harness), and zero-backend (moutai reset).pnpm typecheck,pnpm lintandpnpm test(1749 passed) all pass.🤖 Generated with Claude Code