Skip to content

Commit

Permalink
add e2e test for hashtag search
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Apr 4, 2023
1 parent 07a0f78 commit 045ae0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e-tests/editor.spec.ts
Expand Up @@ -48,6 +48,16 @@ test('hashtag search page auto-complete', async ({ page, block }) => {
await block.mustFill("done")
})

test('hashtag search #[[ page auto-complete', async ({ page, block }) => {
await createRandomPage(page)

await block.activeEditing(0)

await page.type('textarea >> nth=0', '#[[', { delay: 100 })
await page.waitForSelector('text="Search for a page"', { state: 'visible' })
await page.keyboard.press('Escape', { delay: 50 })
})

test('disappeared children #4814', async ({ page, block }) => {
await createRandomPage(page)

Expand Down

0 comments on commit 045ae0e

Please sign in to comment.