Repository navigation
test(native-chat): split structured question fixtures - #19924
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change adds shared fixtures for grouped and legacy structured question prompts. The structured session tests import these fixtures instead of defining inline prompt arrays. Test assertions and behavior remain unchanged. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This refactor preserves grouped and legacy structured-question test coverage while moving data into a dedicated fixture module. No merge-blocking product or runtime risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkResolution Complete the required sections. Add the linked issue after “Fixes #”, explain the change and rationale, state “N/A” with a reason for Visual Proof because this is a test-only change, and complete the testing, review, boundary, notes, and checklist sections.
✨ Finishing Touches📝 Generate docstrings
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.
✅ No new issues found.
Reviewed changes
- Extracted the two inline question fixtures into a focused module —
claudeGroupedQuestionPromptItemsandlegacySingleQuestionPromptItemsnow live innative-chat-structured-question-test-fixtures.tsand are imported back into the test, with no assertion or type changes. - Brought the test file back under the
max-linescap — effective non-blank/non-comment line count drops from ~815 to 752 without aneslint/oxlintdisable or a config bump.
Verified the extraction is byte-faithful, oxlint reports 0 warnings/errors on both changed files, and the targeted test suite passes 21/21.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Summary
NativeChatStructuredSession.test.tsxback below the 800-line static-analysis capTesting
pnpm test src/renderer/src/components/native-chat/NativeChatStructuredSession.test.tsxpnpm run check:code-quality:changedpnpm tc:web