test(query-devtools/Explorer): add test for deleting fields via inline delete buttons#10742
Conversation
|
View your CI Pipeline Execution ↗ for commit a959443
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
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)
📝 WalkthroughWalkthroughThis PR extends the Explorer devtools test suite by adding support for scoped DOM queries and a new ChangesInline Delete Test Coverage
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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)
Comment |
size-limit report 📦
|
🎯 Changes
Extend
Explorer.test.tsxwith a test that locks the inlineDeleteItemButtonflow on object fields — clicking the trash icon on a field removes only that key from the active query's cache, and remaining rows stay interactive so subsequent fields can be deleted one by one.Added cases (
inline edit, 1):should delete fields from the active query when their inline delete buttons are clicked— mounts the parentExplorerover{ name: 'Anna', age: 30 }withdefaultExpandedso the production prop propagation (itemsDeletable, accumulateddataPath) is exercised, then clicks each row's delete button in turn and asserts the cache becomes{ name: 'Anna' }and finally{}.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit