fix: whiteboards e2e tests

This commit is contained in:
Tienson Qin
2023-11-14 13:49:58 +08:00
parent eee0410181
commit bb1f0a29bc
2 changed files with 6 additions and 3 deletions

View File

@@ -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')
})
})

View File

@@ -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