fix: headings e2e tests

This commit is contained in:
Tienson Qin
2023-11-06 22:11:48 +08:00
parent b0b24f795a
commit e5837a319e

View File

@@ -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>')