test(query-devtools/Devtools): remove PiP auto-open and popup-blocker cases now covered by 'PiPContext.test.tsx'#10805
Conversation
… cases now covered by 'PiPContext.test.tsx'
|
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)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughTwo picture-in-picture test cases are removed from the Devtools test suite. The removed tests validated PiP auto-open behavior when ChangesPiP Test Removal
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
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 |
|
View your CI Pipeline Execution ↗ for commit b760aad
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 23 bumped as dependents. 🟩 Patch bumps
|
size-limit report 📦
|
🎯 Changes
The recent
PiPContext.test.tsxseries (#10797–#10804) re-covered two cases that previously lived inDevtools.test.tsx'spicture-in-picturedescribe at the wrong layer (they were exercisingPiPContext'screateEffect, not anythingDevtoolsitself does):should automatically open a PiP window when "pip_open" is "true" in "localStorage"— duplicated byPiPContext.test.tsx→"pip_open" auto-open createEffect→should auto-open a PiP window when "pip_open" is "true" on mount.should log and reset "pip_open" when the browser blocks the popup— duplicated byPiPContext.test.tsx→"pip_open" auto-open createEffect→should reset "pip_open"/"open" and log when "window.open" returns null on auto-open.Drop both from
Devtools.test.tsxso the auto-opencreateEffectis only asserted in thePiPContextunit file. Coverage forPiPContext.tsxstays at 100% / 95.23% (stmts / branch) andDevtools.tsxis unchanged, since the removed cases weren't exercising anyDevtools.tsxline the surviving PiP cases don't already hit.The remaining
picture-in-picturedescribe keeps the cases that are genuinely aboutDevtoolsUI — opening the PiP via the button, hiding/restoring the in-page panel, and the narrow PiP layout.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit