Skip to content

Commit

Permalink
fix(test): e2e fail due to page search
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and tiensonqin committed Mar 7, 2023
1 parent ae82e91 commit b21edf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e-tests/page-search.spec.ts
Expand Up @@ -62,7 +62,9 @@ test('Search CJK', async ({ page, block }) => {
await createRandomPage(page)

await block.mustType('[[今日daytime进度条' + rand + ']] diacritic-block-1', { delay: 10 })
await page.keyboard.press(hotkeyOpenLink)
await page.waitForTimeout(500)
await page.keyboard.press(hotkeyOpenLink, { delay: 10 })
await page.waitForTimeout(500)

const pageTitle = page.locator('.page-title').first()
expect(await pageTitle.innerText()).toEqual('今日daytime进度条' + rand)
Expand Down

0 comments on commit b21edf9

Please sign in to comment.