Browse Source

fix: editor e2e tests

Tienson Qin 2 years ago
parent
commit
172cd305d5
1 changed files with 1 additions and 1 deletions
  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("")