Skip to content

Commit 1ccc028

Browse files
authored
test(query-devtools/Devtools): drop the 'pip_open' localStorage assertion from the PiP restore case now covered by 'PiPContext.test.tsx' (#10806)
1 parent e42d85c commit 1ccc028

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/query-devtools/src/__tests__/Devtools.test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ describe('Devtools', () => {
478478
).toBeNull()
479479
})
480480

481-
it('should restore the in-page panel and reset "pip_open" when the PiP window is closed', () => {
481+
it('should restore the in-page panel when the PiP window is closed', () => {
482482
const { fire } = stubPipWindow()
483483
const rendered = renderDevtools({ initialIsOpen: true })
484484

@@ -487,9 +487,6 @@ describe('Devtools', () => {
487487
)
488488
fire('pagehide')
489489

490-
expect(localStorage.getItem('TanstackQueryDevtools.pip_open')).toBe(
491-
'false',
492-
)
493490
expect(
494491
rendered.getByLabelText('Open in picture-in-picture mode'),
495492
).toBeInTheDocument()

0 commit comments

Comments
 (0)