Skip to content

test(browser): reset proxy policy in WebAuthn profile fixture - #40468

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/fix-webauthn-test-proxy-state
Nov 9, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/fix-webauthn-test-proxy-state

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

When the shared-worker scheduler runs the browser proxy suite before WebAuthn profile deletion, its proxy resolver survives into the WebAuthn fixture. Creating the test profile then fails with proxySession.setProxy is not a function before exercising deletion. Initialize the fixture's proxy policy explicitly, matching the browser registry tests.

Reproduced on unmodified main while investigating the unrelated localization PR #40449 (run 42685677696, job 129391970940). This change adds no production behavior or new test cases.

Validation:

  • Explicitly ordered shared-worker run: proxy suite before WebAuthn; failed on main, passes with this change (4 files, 19 tests, including repo generation/routing).
  • Standard scoped repo/WebAuthn run: 2 files, 6 tests pass.
  • pnpm check:changed before push.

The common repo-routing assertion failure in #40442 and #40449 does not reproduce in scoped current-main checks; main already includes the routing fixture reset from #40441. Broad replays of the old CI shard numbers hit other failures on macOS and main's changed inventory moved both target tests to different shards, so those runs are not claimed green.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2
Prod 0 0 0 0

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The WebAuthn profile-deletion test imports setBrowserNetworkProxySettingsResolver and resets the resolver to null in beforeEach.

Merge Risk: Minimal · up to a2255

The WebAuthn fixture resets its proxy resolver before each test. No merge-blocking risk is identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the focused change: resetting proxy policy in the WebAuthn profile fixture.
Description check Passed The description explains the failure, the fixture change, and the reported validation. It omits several template sections, including Risk and Visual Proof; for this test-only change, it should also st…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the failure, the fixture change, and the reported validation. It omits several template sections, including Risk and Visual Proof; for this test-only change, it should also state whether visual proof is not applicable.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9dbfe61e-60d9-4866-bacc-d2f8fa19e0e8
Commits

Reviewing files that changed from the base of the PR and between c4b5419 and a225593.

Files selected for processing: 1

  • src/main/browser/webauthn/browser-webauthn-profile-delete.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@AmethystLiang
AmethystLiang merged commit 29a66d9 into main Nov 9, 2026
41 checks passed
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.

1 participant