test(app): cover root empty state#540
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe root-route Playwright test is refactored to mock backend API responses and seed localStorage state, then validate that the home component displays the no-project empty state with correct messaging, verifies the sidebar behavior, and confirms the "Open project" dialog interaction works as expected. ChangesHome Empty State Test
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Code Review
This pull request updates the E2E tests for the root route to verify the 'no-project' empty state, replacing the previous seeded home entrypoints. The changes include new assertions for empty state text and the 'Open project' button. Feedback suggests scoping the 'Open project' button locator to the sidebar to improve test robustness and avoid reliance on DOM order.
e9ac3f6 to
9238474
Compare
|
Addressed Gemini review: the test no longer uses |
9238474 to
5cb049c
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
Update the root route smoke test to cover the real no-project empty state instead of expecting seeded home entrypoints.
Why
#529 cleanup found that
/without an opened project was not explicitly covered. The previous root smoke test expected the seededsession-new-homesurface, so it did not lock the empty-state path users see before opening a project.Related Issue
Refs #529.
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
Please verify the test now matches the intended root-route behavior: no session composer is rendered without a project, the main empty state is visible, the sidebar empty state is visible, and the Open project action opens the directory dialog.
Risk Notes
Test-only change. No product code, schema, dependency, platform, packaging, or permission changes.
How To Verify
Screenshots or Recordings
Not required. This is a test-only PR with no visible product change.
Checklist
dev, and my PR title and commit messages use Conventional Commits in EnglishSummary by CodeRabbit