Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(web): right panel tab swipe test runs as macOS on any CI host #34191

Mergedjuliusmarmingemerged 0 commits intomain fromrefs/pull/34191/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Main 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

    2. Approvability

      Verdict: Approved at e251941

      Macroscope'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.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. Explain Change →

      No actionable comments were generated in the recent review.

      Walkthrough

      The RightPanelTabs browser test now sets navigator.platform to MacIntel.

      Changes: Right panel tab test

      Layer / File(s)Summary
      Set the test platform
      apps/web/src/components/RightPanelTabs.browser.test.tsx
      The browser test overrides navigator.platform to return MacIntel.

      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 to e2519

      The test no longer depends on the host platform. No merge-blocking risk is identified.

      Pre-merge checks: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe 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 checkPassedThe description explains the CI failure, identifies the platform-dependent behavior, describes the navigator.platform stub change, and provides focused verification results. It does not explicitly d…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck 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.platform stub 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

      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

      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.

    4. juliusmarminge merged this42185a6

    5. juliusmarminge closed this

    6. 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.