fix(test): refine check state

pull/10724/head
Andelf 2023-12-19 11:44:26 +08:00
parent b15652fdd9
commit 22da19126f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ test('open search dialog', async ({ page }) => {
await closeSearchBox(page)
await page.keyboard.press(modKey + '+k')
await page.waitForSelector('[placeholder="What are you looking for?"]')
await page.waitForSelector('[placeholder="What are you looking for?"]', { state: 'visible' })
await page.keyboard.press('Escape')
await page.waitForSelector('[placeholder="What are you looking for?"]', { state: 'hidden' })
})