test(dashnote): wait for note title to render before asserting#88
Conversation
The mobile auto-select test waited only for mockListMyNotes to be called, not for the resolved promise's state update to flush, so CI occasionally hit getByText while the loading spinner was still visible. Wait on the rendered title instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR updates a single test assertion in the mobile notes workspace test. The "phone note" title expectation is moved inside the ChangesMobile test assertion timing
Poem
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 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)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
example-apps/dashnote/test/NotesWorkspace.test.tsxESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. 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 |
|
Actionable comments posted: 0 |
The mobile auto-select test waited only for mockListMyNotes to be called, not for the resolved promise's state update to flush, so CI occasionally hit getByText while the loading spinner was still visible. Wait on the rendered title instead.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Summary by CodeRabbit
Note: This is an internal test improvement with no end-user facing changes.