浏览代码

fix: headings e2e tests

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

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

@@ -33,7 +33,7 @@ test('remove heading', async ({ page }) => {
 
 test('set heading to 2', async ({ page }) => {
   await page.locator('span.bullet-container >> nth=0').click({button: "right"})
-
+  await page.waitForTimeout(500)
   await page.locator('#custom-context-menu .to-heading-button[title="Heading 2"]').click()
 
   expect(await page.locator('.ls-block .block-content >> nth=0').innerHTML()).toContain('<h2>foo</h2>')