fix(test): additional await for search box

pull/10724/head
Andelf 2023-12-19 17:04:37 +08:00
parent 9a92ec1900
commit b8c213d36b
1 changed files with 3 additions and 2 deletions

View File

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