Repository navigation
test(e2e): align GitHub project board spec with click-wake and localized error toasts - #39193
Merged
Merged
Conversation
6 of 11 tasks
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
ghlives, so the renderer sendswakeWslDistro: truewithupdateProjectItemField/clearProjectItemField. The spec's exact-equality check on the recorded calls now includes that flag.network_errorresult 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.feature.github-projectsroute so changes undercomponents/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
wakeWslDistroupdate. 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=2passes 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 tcpasses, andpnpm run check:code-quality:changedpasses.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
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)