Browse Source

fix: headings e2e tests

Tienson Qin 2 years ago
parent
commit
a78f5a0819
1 changed files with 3 additions and 1 deletions
  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 }) => {