mirror of https://github.com/logseq/logseq
e2e test
parent
bee2293741
commit
4191fb78f2
|
@ -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 () => {
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue