Browse Source

fix: e2e tests

Konstantinos Kaloutas 2 years ago
parent
commit
5d646b67c1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      e2e-tests/whiteboards.spec.ts

+ 3 - 0
e2e-tests/whiteboards.spec.ts

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