diff --git a/e2e/tests/features/209-rundown-shortcuts.spec.ts b/e2e/tests/features/209-rundown-shortcuts.spec.ts index e84b6b01f..388e587c1 100644 --- a/e2e/tests/features/209-rundown-shortcuts.spec.ts +++ b/e2e/tests/features/209-rundown-shortcuts.spec.ts @@ -238,7 +238,9 @@ test('Close finder with the search shortcut', async ({ page }) => { await expect(page.getByTestId('panel-rundown')).toBeVisible(); await page.keyboard.press('ControlOrMeta+f'); - await expect(page.getByPlaceholder('Search...')).toBeVisible(); + // waiting for focus rather than visibility, so the dialog has finished opening + // before the next keystroke is sent + await expect(page.getByPlaceholder('Search...')).toBeFocused(); // the shortcut has to close the finder while the caret is in the search field await page.getByPlaceholder('Search...').press('ControlOrMeta+f');