test(web): right panel tab swipe test runs as macOS on any CI host #34191
main fromrefs/pull/34191/head·merged by juliusmarminge View on GitHubMain CI is red on Test Web: RightPanelTabs.browser.test.tsx expects a swipe from the tab strip's edge to navigate back, but gets no call.
#32963 made trackpad swipe navigation macOS-only (isMacPlatform(navigator.platform)), and #33396's test relied on the host platform. Each passed its own CI, but together the test fails on Linux CI runners and passes on a Mac. The test now stubs navigator.platform as MacIntel, the same stub HistorySwipeNavigation.browser.test.tsx uses.
Verified locally: stubbing Linux x86_64 reproduces the CI failure exactly (0 calls to navigateHistory("back")); MacIntel passes. vp run check:changed passes.
🤖 Generated with Claude Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
e251941Macroscope's review found this PR approvable — This test-only change makes the tab-swipe scenario simulate macOS on any CI host. It changes neither product defaults nor production behavior and introduces no diagnostic suppression.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
No actionable comments were generated in the recent review.
Walkthrough
-
The
RightPanelTabsbrowser test now setsnavigator.platformtoMacIntel.Changes: Right panel tab test
Layer / File(s) Summary Set the test platform
apps/web/src/components/RightPanelTabs.browser.test.tsxThe browser test overrides navigator.platformto returnMacIntel.Estimated code review effort: 1 (Trivial) | ~2 minutes
Change: Other
Possibly related issues
- Issue 33378 — The test covers the right-sidebar tab-strip boundary behavior described in this issue.
- Issue 33888 — The test sets the macOS platform value for the related history-swipe navigation behavior.
- Issue 32955 — The explicit macOS platform value is relevant to the platform restriction described in this issue.
Possibly related PRs
- pingdotgg/t3code#33396 — This PR adds the browser test and the swipe-navigation behavior that makes its platform assumption relevant.
Suggested reviewers:
t3dotgg,macroscopeapp
Merge Risk:
Minimal · up toe2519-
The test no longer depends on the host platform. No merge-blocking risk is identified.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly and concisely identifies the test change and its purpose: making the right-panel tab swipe test run as macOS on any CI host. Description check The description explains the CI failure, identifies the platform-dependent behavior, describes the navigator.platformstub change, and provides focused verification results. It does not explicitly d…Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description explains the CI failure, identifies the platform-dependent behavior, describes the
navigator.platformstub change, and provides focused verification results. It does not explicitly document scope approval or provide the model and harness used, but the description is otherwise complete for this small fix.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt#
- Mode: Continue automatically
- Reviewed files: 1
- Charged: $0.25
- View usage details
Note
This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: t3code/fix-right-panel-tabs-flick-test
- File: .coderabbit.config.ts
- Commit: e251941
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
facdb298-39c6-4519-8330-81fbcf481e53
Commits-
Reviewing files that changed from the base of the PR and between c82e1ba515c88922306a92a42c5ff1b0f686205f and e251941d037384bd2a76db1cc913895fe9f3d7b2.
Files selected for processing: 1-
apps/web/src/components/RightPanelTabs.browser.test.tsx
Limit details: You’ve used all 10 included reviews currently available.
-
-
juliusmarminge merged this42185a6
juliusmarminge closed this
Thanks for this. Main already has the change, as of 42185a6206245c1cde5368e8ce368b384e7a400a.
Main now contains this exact change in 42185a6: the tab-swipe test explicitly simulates macOS on every host.
Your fix has already landed, so no further review is needed for this submission.
Closing as superseded.
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes