test(web): fix release browser test failures #22508
main fromrefs/pull/22508/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubRelease tests failed because hover hid the notice button before its click completed, and tests that start real diff workers could exceed their 15-second deadline. A worker-test timeout also broke the following tests through leftover state.
Move the pointer outside the stack before checking its collapsed state, test keyboard activation and hover separately, and allow 30 seconds for the affected worker and PR action tests. Product code is unchanged.
Validation: all 49 affected tests pass on one CPU; targeted lint, formatting, and web typecheck pass. Delaying worker startup replies to 8 seconds reproduced the failure chain before the fix and passed afterward. The temporary delay was removed. A retained-pointer reproduction also failed before pointer reset and passed afterward.
Created with GPT-6.1 Sol in Codex.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Team
- Run ID:
cb9f78c7-7002-4d46-b78d-8596a8071122
📥 Commits
-
Reviewing files that changed from the base of the PR and between ca140c435f38612656dd655fc42e2f78efbfb4c9 and 5337205bc8e44e175d2fa01e15bdbbc492b3010b.
📒 Files selected for processing: 3
-
apps/web/src/components/chat/ComposerBannerStack.browser.test.tsxapps/web/src/components/diffs/StyledDiffCodeView.browser.test.tsxapps/web/src/components/pullRequest/PullRequestDetailPanel.browser.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
📝 Walkthrough
-
Browser tests now cover keyboard and hover interactions with the composer notice stack. Two tests also document diff-worker startup and set a 30-second timeout.
Changes: Notice Stack Interaction Tests
Layer / File(s) Summary Keyboard and hover interactions
apps/web/src/components/chat/ComposerBannerStack.browser.test.tsxThe test focuses the “Show other notices” button and presses Enter. It also checks that hovering the peek control reopens both banners. Diff Worker Test Timing
Layer / File(s) Summary Worker startup test timing
apps/web/src/components/diffs/StyledDiffCodeView.browser.test.tsx,apps/web/src/components/pullRequest/PullRequestDetailPanel.browser.test.tsxThe worker lifecycle test description now covers on-demand startup and idle-pool expiration. Both tests use a 30-second timeout, and the composer-action test includes a comment about diff-worker startup. Priority: ⚪ Pending latest changes
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Suggested reviewers:
juliusmarminge
Merge Risk: ⚪ Minimal · up to
53372-
The PR only updates browser-test interactions and test-scoped timing; no product regression or test-isolation issue was identified.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly identifies a web test fix for release failures and uses a concise conventional-commit format. Description check The description clearly explains the test failures, the test-only changes, and focused validation results. It does not use the template headings or provide explicit scope approval or a small-fix exemp… 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 clearly explains the test failures, the test-only changes, and focused validation results. It does not use the template headings or provide explicit scope approval or a small-fix exemption, but the required problem, change, and verification details are mostly present.
-
✨ Finishing Touches: 💡 1
-
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
📝 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
-
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Approvability#
Verdict: Approved at
1107b2fMacroscope's review found this PR approvable — This is a small, test-only browser-test maintenance change that adjusts interaction sequencing and timeouts for flaky release tests. It does not modify product code, defaults, or production behavior.
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).