Skip to content

Commit

Permalink
remove keyboard delay
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Mar 8, 2023
1 parent f6b9a55 commit e52bda8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions e2e-tests/whiteboards.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ test('copy/paste url to create an iFrame shape', async ({ page }) => {
await page.waitForTimeout(100)

await page.keyboard.type('https://logseq.com')
await page.keyboard.press(modKey + '+a', { delay: 10 })
await page.keyboard.press(modKey + '+c', { delay: 10 })
await page.keyboard.press(modKey + '+a')
await page.keyboard.press(modKey + '+c')
await page.keyboard.press('Escape')

await page.keyboard.press(modKey + '+v', { delay: 10 })
await page.keyboard.press(modKey + '+v')

await expect( page.locator('.logseq-tldraw .tl-iframe-container')).toHaveCount(1)
})
Expand All @@ -117,11 +117,11 @@ test('copy/paste twitter status url to create a Tweet shape', async ({ page }) =
await page.waitForTimeout(100)

await page.keyboard.type('https://twitter.com/logseq/status/1605224589046386689')
await page.keyboard.press(modKey + '+a', { delay: 10 })
await page.keyboard.press(modKey + '+c', { delay: 10 })
await page.keyboard.press(modKey + '+a')
await page.keyboard.press(modKey + '+c')
await page.keyboard.press('Escape')

await page.keyboard.press(modKey + '+v', { delay: 10 })
await page.keyboard.press(modKey + '+v')

await expect( page.locator('.logseq-tldraw .tl-tweet-container')).toHaveCount(1)
})
Expand All @@ -136,11 +136,11 @@ test('copy/paste youtube video url to create a Youtube shape', async ({ page })
await page.waitForTimeout(100)

await page.keyboard.type('https://www.youtube.com/watch?v=hz2BacySDXE')
await page.keyboard.press(modKey + '+a', { delay: 10 })
await page.keyboard.press(modKey + '+c', { delay: 10 })
await page.keyboard.press(modKey + '+a')
await page.keyboard.press(modKey + '+c')
await page.keyboard.press('Escape')

await page.keyboard.press(modKey + '+v', { delay: 10 })
await page.keyboard.press(modKey + '+v')

await expect( page.locator('.logseq-tldraw .tl-youtube-container')).toHaveCount(1)
})
Expand Down

0 comments on commit e52bda8

Please sign in to comment.