소스 검색

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 }) => {