浏览代码

fix: editor e2e tests

Tienson Qin 2 年之前
父节点
当前提交
172cd305d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      e2e-tests/editor.spec.ts

+ 1 - 1
e2e-tests/editor.spec.ts

@@ -596,7 +596,7 @@ test('should keep correct undo and redo seq after indenting or outdenting the bl
   await page.keyboard.press(modKey + '+Shift+z')
   // should redo "bar" input
   await expect(page.locator('textarea >> nth=0')).toHaveText("bar")
-  await page.keyboard.press("Shift+Tab")
+  await page.keyboard.press("Shift+Tab", { delay: 10 })
 
   await page.keyboard.press("Enter")
   await expect(page.locator('textarea >> nth=0')).toHaveText("")