add timeout

pull/10438/head
Tienson Qin 2023-10-18 11:01:55 +08:00
parent aa2e81eea9
commit 1041ebfb65
1 changed files with 3 additions and 2 deletions

View File

@ -599,7 +599,7 @@ test('should keep correct undo and redo seq after indenting or outdenting the bl
// should redo "bar" input
await expect(page.locator('textarea >> nth=0')).toHaveText("bar")
await page.keyboard.press("Shift+Tab", { delay: 10 })
await page.waitForTimeout(100)
await page.keyboard.press("Enter")
await page.waitForTimeout(100)
await expect(page.locator('textarea >> nth=0')).toHaveText("")
@ -611,8 +611,9 @@ test('should keep correct undo and redo seq after indenting or outdenting the bl
// should undo indention
await expect(page.locator('textarea >> nth=0')).toHaveText("baz")
await page.keyboard.press("Shift+Tab")
await page.waitForTimeout(100)
await page.keyboard.press("Enter")
await page.waitForTimeout(100)
await expect(page.locator('textarea >> nth=0')).toHaveText("")
// #7615
await page.keyboard.type("aaa")