Skip to content

[codex] Fix settings browser test panel mounting#1842

Merged
juliusmarminge merged 2 commits intot3code/remote-auth-pairingfrom
fix/review-settings-panel-tests
Apr 8, 2026
Merged

[codex] Fix settings browser test panel mounting#1842
juliusmarminge merged 2 commits intot3code/remote-auth-pairingfrom
fix/review-settings-panel-tests

Conversation

@juliusmarminge
Copy link
Copy Markdown
Member

@juliusmarminge juliusmarminge commented Apr 8, 2026

What changed

  • mount ConnectionsSettings in the three browser tests that assert on connection-management UI

Why

Those tests were rendering GeneralSettingsPanel while asserting on labels and controls that only exist in ConnectionsSettings, so they were testing the wrong component tree.

Validation

  • bun fmt
  • bun lint
  • bun typecheck

Notes

  • cd apps/web && bun run test:browser src/components/settings/SettingsPanels.browser.tsx could not run here because the local Playwright Chromium binary is not installed.

Note

Fix blank line formatting in settings browser test panel mounting

Corrects whitespace-only formatting in the settings browser test panel mounting code. No functional changes.

Macroscope summarized f852b11.


Note

Low Risk
Low risk: changes are limited to browser tests and only affect which settings panel is mounted for UI assertions.

Overview
Fixes SettingsPanels.browser.tsx browser tests that assert on connection-management UI by mounting ConnectionsSettings instead of GeneralSettingsPanel, so the tests exercise the correct component tree and labels/controls.

Reviewed by Cursor Bugbot for commit f852b11. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 8, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ea974ccc-b2ab-4cca-b2cb-2d4788de4fd5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/review-settings-panel-tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 8, 2026
Comment thread apps/web/src/components/settings/SettingsPanels.browser.tsx Outdated
@juliusmarminge juliusmarminge force-pushed the fix/review-settings-panel-tests branch from cd720fa to 78d970a Compare April 8, 2026 21:13
@juliusmarminge juliusmarminge force-pushed the fix/review-settings-panel-tests branch from 78d970a to aea70e1 Compare April 8, 2026 21:46
@juliusmarminge juliusmarminge marked this pull request as ready for review April 8, 2026 21:47
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Diagnostics test now renders wrong component, will fail
    • Restored the test to render GeneralSettingsPanel instead of ConnectionsSettings, since all asserted elements (About, Diagnostics, Open logs folder) only exist in GeneralSettingsPanel.

Create PR

Or push these changes by commenting:

@cursor push 973fc5f3c7
Preview (973fc5f3c7)
diff --git a/apps/web/src/components/settings/SettingsPanels.browser.tsx b/apps/web/src/components/settings/SettingsPanels.browser.tsx
--- a/apps/web/src/components/settings/SettingsPanels.browser.tsx
+++ b/apps/web/src/components/settings/SettingsPanels.browser.tsx
@@ -357,7 +357,7 @@
 
     await render(
       <AppAtomRegistryProvider>
-        <ConnectionsSettings />
+        <GeneralSettingsPanel />
       </AppAtomRegistryProvider>,
     );

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit aea70e1. Configure here.

Comment thread apps/web/src/components/settings/SettingsPanels.browser.tsx Outdated
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Apr 8, 2026

Approvability

Verdict: Approved

Single-line fix to a browser test file that was rendering the wrong component. The test asserted on UI elements only present in GeneralSettingsPanel but was rendering ConnectionsSettings. No production code is affected.

You can customize Macroscope's approvability policy. Learn more.

@juliusmarminge
Copy link
Copy Markdown
Member Author

@cursor push 973fc5f

The 'shows diagnostics inside About' test was incorrectly changed to render
ConnectionsSettings, but it asserts on elements (About, Diagnostics, Open logs
folder) that only exist in GeneralSettingsPanel. Revert to the correct component.

Applied via @cursor push command
@juliusmarminge juliusmarminge merged commit c16c34a into t3code/remote-auth-pairing Apr 8, 2026
11 of 12 checks passed
@juliusmarminge juliusmarminge deleted the fix/review-settings-panel-tests branch April 8, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants