fix(dashboard): align planning tests with clarification default-off#2299
Conversation
Full Suite 29643371961: API backfill failed when createSession defaulted clarificationEnabled=false and mocked agents only returned questions; re-emit tests hung on the suppressed-summary follow-up. Confirm Other also needed findByTestId settle under CI load.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughPlanning tests now wait for asynchronously rendered inputs, model first and follow-up agent responses, and explicitly enable clarification in the answered-question test helper. ChangesPlanning test stability
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryThis PR aligns planning tests with clarification being disabled by default. The main changes are:
Confidence Score: 5/5The changed behavior looks mergeable after the flaky-test policy cleanup.
packages/dashboard/app/components/tests/PlanningModeModal.planning-flow.test.tsx Important Files Changed
Reviews (1): Last reviewed commit: "fix(dashboard): align planning tests wit..." | Re-trigger Greptile |
| const continueButton = screen.getByRole("button", { name: "Continue" }); | ||
| fireEvent.click(screen.getByTestId("planning-option-other")); | ||
| expect(screen.getByTestId("planning-other-input")).toBeInTheDocument(); | ||
| const otherInput = await screen.findByTestId("planning-other-input"); |
There was a problem hiding this comment.
Observed Flake Is Only Delayed
The changed wait makes the reported CI flake pass without fixing its cause or quarantining the test. The repository requires observed flaky tests to be quarantined rather than stabilized with waits, and the same synchronous Other-input transition remains in sibling cases, so the underlying race can continue producing intermittent suite failures.
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
complete(product defaults clarification off).clarificationEnabled: trueso multi-question interview invariants still run.findByTestId("planning-other-input")after click.Test plan
Summary by CodeRabbit