fix: e2e tests

pull/8772/head
Konstantinos Kaloutas 2023-03-07 19:32:48 +02:00 committed by Tienson Qin
parent b1249c09d8
commit 5d646b67c1
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,7 @@ test('copy/paste url to create an iFrame shape', async ({ page }) => {
await page.keyboard.press('t')
await page.mouse.move(bounds.x + 5, bounds.y + 5)
await page.mouse.down()
await page.waitForTimeout(100)
await page.keyboard.type('https://logseq.com')
await page.keyboard.press(modKey + '+a', { delay: 10 })
@ -118,6 +119,7 @@ test('copy/paste twitter status url to create a Tweet shape', async ({ page }) =
await page.keyboard.press('t')
await page.mouse.move(bounds.x + 5, bounds.y + 5)
await page.mouse.down()
await page.waitForTimeout(100)
await page.keyboard.type('https://twitter.com/logseq/status/1605224589046386689')
await page.keyboard.press(modKey + '+a', { delay: 10 })
@ -136,6 +138,7 @@ test('copy/paste youtube video url to create a Youtube shape', async ({ page })
await page.keyboard.press('t')
await page.mouse.move(bounds.x + 5, bounds.y + 5)
await page.mouse.down()
await page.waitForTimeout(100)
await page.keyboard.type('https://www.youtube.com/watch?v=hz2BacySDXE')
await page.keyboard.press(modKey + '+a', { delay: 10 })