Browse Source

fix: e2e tests

Tienson Qin 2 years ago
parent
commit
7ea80938d3
2 changed files with 3 additions and 1 deletions
  1. 2 0
      e2e-tests/editor.spec.ts
  2. 1 1
      e2e-tests/headings.spec.ts

+ 2 - 0
e2e-tests/editor.spec.ts

@@ -240,6 +240,8 @@ test('copy and paste block after editing new block #5962', async ({ page, block
   await page.keyboard.press('Enter')
   await block.waitForBlocks(2)
 
+  await page.waitForTimeout(100)
+
   await block.mustType('Typed block')
 
   await page.keyboard.press(modKey + '+v')

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

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