浏览代码

fix: headings e2e tests

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

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

@@ -68,7 +68,9 @@ test('set heading of nested block to auto', async ({ page }) => {
 
   await page.locator('#custom-context-menu .to-heading-button[title="Auto heading"]').click()
 
-  expect(await page.locator('.ls-block .block-content >> nth=1').innerHTML()).toContain('<h3>bar</h3>')
+  await page.waitForTimeout(500)
+
+  expect(await page.locator('.ls-block .block-content >> nth=1').innerHTML()).toContain('<h2>bar</h2>')
 })
 
 test('view nested block on a dedicated page', async ({ page }) => {