pull/8279/head
Konstantinos Kaloutas 2023-01-16 19:03:27 +02:00
parent bee2293741
commit 4191fb78f2
2 changed files with 4 additions and 5 deletions

View File

@ -131,10 +131,6 @@ base.beforeEach(async () => {
await page.click('button.toggle-right-sidebar', {delay: 100})
}
}
await page.addInitScript(()=>{
window.localStorage.setItem('ls-onboarding-whiteboard?', "true")
});
})
base.afterAll(async () => {

View File

@ -14,9 +14,12 @@ test('enable whiteboards', async ({ page }) => {
})
test('create new whiteboard', async ({ page }) => {
await page.evaluate(() => {
window.localStorage.setItem('ls-onboarding-whiteboard?', "true")
})
await page.click('.nav-header .whiteboard')
await page.click('#tl-create-whiteboard')
await page.waitForTimeout(1500)
await expect(page.locator('.logseq-tldraw')).toBeVisible()
})