Skip to content

test(e2e): align GitHub project board spec with click-wake and localized error toasts - #39193

Merged
nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-github-project-board
Nov 6, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-github-project-board

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The nightly test for dragging cards on a GitHub Project board has failed on 5 of the last 6 nights. The board itself works. The test still expected two things the app deliberately changed, and pull requests never ran this test, so nothing caught the drift.

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

What Changed

  • Drop request shape. Since fix(wsl): user clicks on cwd-less gh may start the stopped default distro #36230 (Oct 29), a board drop is a user action that may start a stopped WSL distro where gh lives, so the renderer sends wakeWslDistro: true with updateProjectItemField/clearProjectItemField. The spec's exact-equality check on the recorded calls now includes that flag.
  • Failure toast text. Since fix(i18n): localize GitHub project view errors and states #34621 (Oct 27), a network_error result shows the localized "Network error — check your connection." rather than the host's English message. The nightly never reached this assertion because it failed one step earlier. It fails locally once the first fix is in. The spec now asserts the localized copy.
  • PR routing. Added a feature.github-projects route so changes under components/github-project/, store/github/project-*, src/main/github/project-view/, and the project-view IPC handlers run this spec on PRs. Added a routing contract test.

Users see no change. This only touches tests and CI routing.

Why

Both changes were intended product behavior, so the spec should check the new contract at the same strength: still exact equality on the IPC payloads, and still an exact-text check on the toast. The alternative was making the payload match partial (for example, toMatchObject), which would stop catching a missing or extra wake flag. The flag is exactly what keeps background reads from waking WSL. Without the route, a renderer or main-process change to project boards would only surface the next night.

This overlaps #38365, which makes the same wakeWslDistro update. That PR doesn't include the toast assertion, so the spec still fails locally with it, and it doesn't add routing.

Linked Issue

N/A (maintainer; nightly E2E failure)

Visual Proof

N/A: test and CI routing only, no UI change.

Testing

  • ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/github-project-board.spec.ts --repeat-each=2 passes on macOS. Before the change it failed at the payload check (CI) and then at the toast check (local).

  • pnpm test config/scripts/workflow/source-routing/ passes (99 tests), pnpm tc passes, and pnpm run check:code-quality:changed passes.

  • The test still mocks every gh:* IPC handler, so it makes no GitHub API calls.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Level: Low. The change only touches tests and routing. The new route adds one roughly 25s spec to PRs that change GitHub Projects code. Revert with a plain revert.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…zed error toasts

Board drops send wakeWslDistro (#36230) and network failures toast localized
copy (#34621). Route GitHub Projects sources to the board spec so PRs run it.
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: d2c5fe6e-689c-4473-b575-754de1923082
Commits

Reviewing files that changed from the base of the PR and between be3b87f and 59a42ce.

Files selected for processing: 3

  • config/scripts/workflow/source-routing/pr-e2e-gate-contract.test.mjs
  • config/scripts/workflow/source-routing/pr-feature-area-e2e-source-routes.mjs
  • tests/e2e/github-project-board.spec.ts
  • 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

@nwparker
nwparker merged commit 880d7ca into main Nov 6, 2026
47 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