test(query-devtools/Devtools): drop the 'pip_open' localStorage assertion from the PiP restore case now covered by 'PiPContext.test.tsx'#10806
Conversation
…tion from the PiP restore case 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)
📝 WalkthroughWalkthroughThe test case for closing the picture-in-picture (PiP) window is simplified by removing the assertion that ChangesPicture-in-picture close test update
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 54a080f
☁️ 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
should restore the in-page panel and reset "pip_open" when the PiP window is closedcase asserted on two things that belonged to different layers:localStorage["TanstackQueryDevtools.pip_open"] === "false"— thePiPContextpagehidehandler's side effect, now covered directly inPiPContext.test.tsx→"pagehide" lifecycle(test(query-devtools/contexts/PiPContext): add test for the 'pagehide' listener resetting the 'pipWindow' signal and 'pip_open' #10801).<button aria-label="Open in picture-in-picture mode">is back in the document — theDevtoolsUI's reaction topip().pipWindowflipping tonull, which is the responsibility this file should be checking.Drop the
localStorageassertion (now redundant withPiPContext.test.tsx) and rename the case to match the single remaining responsibility (should restore the in-page panel when the PiP window is closed).Devtools.tsxcoverage is unchanged andPiPContext.tsxstays at 100% / 95.23%.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit