fix(test): refine check state

This commit is contained in:
Andelf
2023-12-19 11:44:26 +08:00
parent b15652fdd9
commit 22da19126f

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' })
})