浏览代码

fix: e2e tests

Konstantinos Kaloutas 2 年之前
父节点
当前提交
5d646b67c1
共有 1 个文件被更改,包括 3 次插入0 次删除
  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.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 })