Browse Source

fix: whiteboards e2e tests

Tienson Qin 1 year ago
parent
commit
bb1f0a29bc
2 changed files with 6 additions and 3 deletions
  1. 2 2
      e2e-tests/whiteboards.spec.ts
  2. 4 1
      src/main/frontend/components/whiteboard.cljs

+ 2 - 2
e2e-tests/whiteboards.spec.ts

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

+ 4 - 1
src/main/frontend/components/whiteboard.cljs

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