mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: whiteboards e2e tests
This commit is contained in:
@@ -21,7 +21,7 @@ test('should display onboarding tour', async ({ page }) => {
|
||||
await page.click('.nav-header .whiteboard')
|
||||
|
||||
await expect(page.locator('.cp__whiteboard-welcome')).toBeVisible()
|
||||
await page.click('.cp__whiteboard-welcome button.bg-gray-600')
|
||||
await page.click('.cp__whiteboard-welcome button.skip-welcome')
|
||||
await expect(page.locator('.cp__whiteboard-welcome')).toBeHidden()
|
||||
})
|
||||
|
||||
@@ -500,4 +500,4 @@ test('Renaming a page to an existing whiteboard name should be prohibited', asyn
|
||||
await renamePage(page, "My embedded whiteboard")
|
||||
|
||||
await expect(page.locator('.page-title input')).toHaveValue('My page')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -306,7 +306,10 @@
|
||||
[:p (t :on-boarding/welcome-whiteboard-modal-description)]
|
||||
|
||||
[:div.pt-6.flex.justify-center.space-x-2.sm:justify-end
|
||||
(ui/button (t :on-boarding/welcome-whiteboard-modal-skip) :on-click close-fn :background "gray" :class "opacity-60")
|
||||
(ui/button (t :on-boarding/welcome-whiteboard-modal-skip)
|
||||
:on-click close-fn
|
||||
:background "gray"
|
||||
:class "opacity-60 skip-welcome")
|
||||
(ui/button (t :on-boarding/welcome-whiteboard-modal-start)
|
||||
:on-click (fn []
|
||||
(quick-tour/ready
|
||||
|
||||
Reference in New Issue
Block a user