diff --git a/packages/client/ui-shortcuts/tests/commands.client.spec.ts b/packages/client/ui-shortcuts/tests/commands.client.spec.ts index 5b1401a75a..63f4f2be1d 100644 --- a/packages/client/ui-shortcuts/tests/commands.client.spec.ts +++ b/packages/client/ui-shortcuts/tests/commands.client.spec.ts @@ -130,12 +130,14 @@ describe('assembled shortcut command owners', () => { expect(settings.getSnapshot().open).toBe(false) const sidebar = layout.getSnapshot().layoutInfo.sidebar press('KeyB') - expect(layout.getSnapshot().layoutInfo.sidebar).not.toBe(sidebar) + expect(layout.getSnapshot().layoutInfo.sidebar).toBe(sidebar) press('Slash') expect(reference.getSnapshot().open).toBe(false) press('KeyB') - expect(layout.getSnapshot().layoutInfo.sidebar).toBe(sidebar) + expect(layout.getSnapshot().layoutInfo.sidebar).not.toBe(sidebar) press('KeyB', true) + expect(layout.getSnapshot().layoutInfo.sidebar).not.toBe(sidebar) + press('KeyB') expect(layout.getSnapshot().layoutInfo.sidebar).toBe(sidebar) const menu = (commandId: ShortcutCommandId): void => { act(() => { @@ -144,6 +146,8 @@ describe('assembled shortcut command owners', () => { } menu('settings.open' as ShortcutCommandId) expect(settings.getSnapshot().open).toBe(true) + press('KeyB') + expect(layout.getSnapshot().layoutInfo.sidebar).toBe(sidebar) menu('settings.open' as ShortcutCommandId) expect(settings.getSnapshot().open).toBe(false) menu('shortcuts.open' as ShortcutCommandId) diff --git a/packages/client/ui-sidebar/tests/__snapshots__/sidebar-snapshot.client.spec.tsx.snap b/packages/client/ui-sidebar/tests/__snapshots__/sidebar-snapshot.client.spec.tsx.snap index 433bcba048..7f6e1ba454 100644 --- a/packages/client/ui-sidebar/tests/__snapshots__/sidebar-snapshot.client.spec.tsx.snap +++ b/packages/client/ui-sidebar/tests/__snapshots__/sidebar-snapshot.client.spec.tsx.snap @@ -16,6 +16,7 @@ exports[`sidebar shell snapshots > renders Windows caption controls in expanded