Add step to E2E test to verify Backspace doesn't dismiss command palette (#5557)
This commit is contained in:
@ -125,6 +125,12 @@ test.describe('Command bar tests', { tag: ['@skipWin'] }, () => {
|
|||||||
await expect(cmdSearchBar).toBeVisible()
|
await expect(cmdSearchBar).toBeVisible()
|
||||||
await expect(cmdSearchBar).toBeFocused()
|
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
|
// Try typing in the command bar
|
||||||
await cmdSearchBar.fill(commandName)
|
await cmdSearchBar.fill(commandName)
|
||||||
await expect(commandOption).toBeVisible()
|
await expect(commandOption).toBeVisible()
|
||||||
|
|||||||
Reference in New Issue
Block a user