Skip to content

Commit

Permalink
fix: demo whiteboard
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Dec 19, 2023
1 parent 22da191 commit 9a92ec1
Show file tree
Hide file tree
Showing 3 changed files with 357 additions and 354 deletions.
4 changes: 4 additions & 0 deletions e2e-tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
3 changes: 1 addition & 2 deletions e2e-tests/headings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>')
})
Expand Down
Loading

0 comments on commit 9a92ec1

Please sign in to comment.