Browse Source

Fix: Update auto-heading test

Looks like a bug is fixed on this branch
Gabriel Horner 2 năm trước cách đây
mục cha
commit
0967514aa0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      e2e-tests/headings.spec.ts

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

@@ -51,7 +51,7 @@ test('switch to auto heading', async ({ page }) => {
 
   await page.keyboard.press('Escape', { delay: 50 })
 
-  expect(await page.locator('.ls-block .block-content >> nth=0').innerHTML()).toContain('<h2>foo</h2>')
+  expect(await page.locator('.ls-block .block-content >> nth=0').innerHTML()).toContain('<h1>foo</h1>')
 })
 
 test('set heading of nested block to auto', async ({ page }) => {