mirror of https://github.com/logseq/logseq
fix(test): additional await for search box
parent
9a92ec1900
commit
b8c213d36b
|
@ -28,6 +28,7 @@ export async function createPage(page: Page, page_name: string) {// Click #searc
|
|||
await page.click('#search-button')
|
||||
// Fill [placeholder="What are you looking for?"]
|
||||
await page.fill('[placeholder="What are you looking for?"]', page_name)
|
||||
await page.locator('text="Create page"').waitFor({ state: 'visible' })
|
||||
await page.keyboard.press('Enter', { delay: 100 })
|
||||
// wait for textarea of first block
|
||||
await page.waitForSelector('textarea >> nth=0', { state: 'visible' })
|
||||
|
|
Loading…
Reference in New Issue