Assert single editable control on Board groupBy/swimlaneBy primary field collision (closes #272) - #277
Conversation
…ary field collision (closes #272)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughBoard component tests now cover primary-field collisions with grouping and swimlane controls. The tests verify that the displayed primary value occurs once and that the title control remains the only editable control. ChangesBoard collision regression coverage
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to The change adds targeted coverage without modifying production behavior, and no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt |
PR Summary by QodoAssert one Board control for primary-field grouping collisions
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Summary
Addresses #272 by hardening test assertions in
BoardCollectionView.svelte.test.tsfor thetitleEditableViaCellderivation when a Collection's primary field matchesconfig.groupByorconfig.swimlaneBy:<span>) when the primary field collides withgroupByorswimlaneBy, and added tests verifying that only the expected number of comboboxes (1 for groupBy, 2 for swimlaneBy) rendered on the card.getAllByDisplayValueassertions and direct references totitleEditableViaCell.groupByandswimlaneBycollision tests inBoardCollectionView.svelte.test.tsto explicitly assertexpect(within(card).getAllByDisplayValue(...)).toHaveLength(1), matching the pattern inCalendarCollectionView.svelte.test.tsand confirming that no duplicatePropertyValueCellis rendered.titleEditableViaCellinBoardCollectionView.svelteimmediately causes both regression tests to fail.Closes #272
Test plan
npx vitest run src/lib/components/BoardCollectionView.svelte.test.ts(23 tests pass)npm run test(1296 tests pass across 85 test files)npm run lintnpm run checkSummary by CodeRabbit