소스 검색

fix(test): refine check state

Andelf 1 년 전
부모
커밋
22da19126f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      e2e-tests/hotkey.spec.ts

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