From b31786c9ab5469ee89360d5aa1738188a0a5e0a0 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Thu, 27 Feb 2025 13:58:17 -0500 Subject: [PATCH] Add step to E2E test to verify `Backspace` doesn't dismiss command palette (#5557) --- e2e/playwright/command-bar-tests.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e2e/playwright/command-bar-tests.spec.ts b/e2e/playwright/command-bar-tests.spec.ts index a0f900b94..a0b33a8ac 100644 --- a/e2e/playwright/command-bar-tests.spec.ts +++ b/e2e/playwright/command-bar-tests.spec.ts @@ -125,6 +125,12 @@ test.describe('Command bar tests', { tag: ['@skipWin'] }, () => { await expect(cmdSearchBar).toBeVisible() await expect(cmdSearchBar).toBeFocused() + await test.step(`Pressing backspace in the command selection step does not dismiss`, async () => { + await page.keyboard.press('Backspace') + await expect(cmdSearchBar).toBeVisible() + await expect(cmdSearchBar).toBeFocused() + }) + // Try typing in the command bar await cmdSearchBar.fill(commandName) await expect(commandOption).toBeVisible()