From bcd04701c2d01b4c5ee956dbbdb37735281742ee Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 21 Nov 2024 20:03:19 +0000 Subject: [PATCH] fix --- .../inspector/playerInspectorLogic.test.ts | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.test.ts b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.test.ts index 2413d610a8330..e2ac2aa0e96e0 100644 --- a/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.test.ts +++ b/frontend/src/scenes/session-recordings/player/inspector/playerInspectorLogic.test.ts @@ -65,26 +65,27 @@ describe('playerInspectorLogic', () => { }) }) - describe('setWindowIdFilter', () => { - it('happy case', async () => { - await expectLogic(logic).toMatchValues({ - windowIdFilter: null, - }) + describe('setTrackedWindow', () => { + it('starts with no tracked window', async () => { await expectLogic(logic, () => { - logic.actions.setTrackedWindow('nightly') + logic.actions.setTrackedWindow(null as unknown as string) }) .toDispatchActions(['setTrackedWindow']) .toMatchValues({ - windowIdFilter: 'nightly', + trackedWindow: null, }) }) - it('default all', async () => { + + it('can set tracked window', async () => { + await expectLogic(logic).toMatchValues({ + trackedWindow: null, + }) await expectLogic(logic, () => { - logic.actions.setTrackedWindow(null as unknown as string) + logic.actions.setTrackedWindow('nightly') }) .toDispatchActions(['setTrackedWindow']) .toMatchValues({ - windowIdFilter: null, + trackedWindow: 'nightly', }) }) })