fix(test): add delay to e2e testing (#5804)

pull/5765/head^2
Andelf 2022-06-23 22:38:57 +08:00 committed by GitHub
parent abcfd9cf74
commit 6afdfedb51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -120,7 +120,8 @@ test('template', async ({ page, block }) => {
await createRandomPage(page)
await block.mustFill('template test\ntemplate:: ' + randomTemplate)
await block.mustFill('template test\ntemplate:: ')
await page.keyboard.type(randomTemplate, {delay: 100})
await page.keyboard.press('Enter')
await block.clickNext()
@ -195,7 +196,7 @@ test('auto completion and auto pair', async ({ page, block }) => {
// {{
await block.mustType('type {{', { toBe: 'type {{}}' })
await page.waitForTimeout(100);
// ((
await block.clickNext()