Konstantinos Kaloutas 2 anos atrás
pai
commit
42d3551216
2 arquivos alterados com 4 adições e 4 exclusões
  1. 4 0
      e2e-tests/fixtures.ts
  2. 0 4
      e2e-tests/whiteboards.spec.ts

+ 4 - 0
e2e-tests/fixtures.ts

@@ -131,6 +131,10 @@ 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 () => {

+ 0 - 4
e2e-tests/whiteboards.spec.ts

@@ -3,10 +3,6 @@ import { test } from './fixtures'
 import { IsMac } from './utils'
 
 test('enable whiteboards', async ({ page }) => {
-  await page.addInitScript(()=>{
-    window.localStorage.setItem('ls-onboarding-whiteboard?', "true")
-  });
-
   await expect(page.locator('.nav-header .whiteboard')).toBeHidden()
   await page.click('#head .toolbar-dots-btn')
   await page.click('#head .dropdown-wrapper >> text=Settings')