Browse Source

fix: demo whiteboard

Andelf 1 year ago
parent
commit
9a92ec1900
3 changed files with 211 additions and 208 deletions
  1. 4 0
      e2e-tests/fixtures.ts
  2. 1 2
      e2e-tests/headings.spec.ts
  3. 206 206
      resources/whiteboard/onboarding.edn

+ 4 - 0
e2e-tests/fixtures.ts

@@ -126,6 +126,10 @@ base.beforeEach(async () => {
 
     await expect(page.locator('.notification-close-button')).not.toBeVisible()
 
+    if (await page.locator('.notification-clear button').isVisible()) {
+      await page.locator('.notification-clear button').click()
+    }
+
     const rightSidebar = page.locator('.cp__right-sidebar-inner')
     if (await rightSidebar.isVisible()) {
       await page.click('button.toggle-right-sidebar', {delay: 100})

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

@@ -33,8 +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()
+  await page.locator('#custom-context-menu .to-heading-button[title="Heading 2"]').click({ delay: 400})
 
   expect(await page.locator('.ls-block .block-content >> nth=0').innerHTML()).toContain('<h2>foo</h2>')
 })

File diff suppressed because it is too large
+ 206 - 206
resources/whiteboard/onboarding.edn


Some files were not shown because too many files changed in this diff