Add step to E2E test to verify Backspace doesn't dismiss command palette (#5557)

This commit is contained in:
Frank Noirot
2025-02-27 13:58:17 -05:00
committed by GitHub
parent 936549d60f
commit b31786c9ab

View File

@ -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()