mirror of https://github.com/logseq/logseq
fix(test): refine check state
parent
b15652fdd9
commit
22da19126f
|
@ -7,7 +7,7 @@ test('open search dialog', async ({ page }) => {
|
||||||
await closeSearchBox(page)
|
await closeSearchBox(page)
|
||||||
await page.keyboard.press(modKey + '+k')
|
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.keyboard.press('Escape')
|
||||||
await page.waitForSelector('[placeholder="What are you looking for?"]', { state: 'hidden' })
|
await page.waitForSelector('[placeholder="What are you looking for?"]', { state: 'hidden' })
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue