Skip to content

Commit

Permalink
Add step to E2E test to verify Backspace doesn't dismiss command pa…
Browse files Browse the repository at this point in the history
…lette (#5557)
  • Loading branch information
franknoirot authored Feb 27, 2025
1 parent 936549d commit b31786c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/playwright/command-bar-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b31786c

Please sign in to comment.