From 22da19126f982f5d750e36425de5519d9d63abb4 Mon Sep 17 00:00:00 2001 From: Andelf Date: Tue, 19 Dec 2023 11:44:26 +0800 Subject: [PATCH] fix(test): refine check state --- e2e-tests/hotkey.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e-tests/hotkey.spec.ts b/e2e-tests/hotkey.spec.ts index 4ad68efdffb..b1a2c1783f7 100644 --- a/e2e-tests/hotkey.spec.ts +++ b/e2e-tests/hotkey.spec.ts @@ -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' }) })