From b3206b168204ec9238efb195abe07414cb18dca6 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Mon, 20 Mar 2023 15:34:48 -0500 Subject: [PATCH] test: enable affine workspace test (#1625) --- tests/parallels/affine-workspace.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/parallels/affine-workspace.spec.ts b/tests/parallels/affine-workspace.spec.ts index aa66bb8672..873ce25e9d 100644 --- a/tests/parallels/affine-workspace.spec.ts +++ b/tests/parallels/affine-workspace.spec.ts @@ -1,3 +1,4 @@ +import { uuidv4 } from '@blocksuite/store'; import { expect } from '@playwright/test'; import userA from '../fixtures/userA.json'; @@ -23,12 +24,12 @@ test.describe('affine workspace', () => { expect(await footer.getByText(userA.email).isVisible()).toBe(true); }); - // fixme: skip this because of duplicated creation of workspace may cause error - test.skip('should enable affine workspace successfully', async ({ page }) => { + test('should enable affine workspace successfully', async ({ page }) => { await openHomePage(page); const [a] = await createFakeUser(); await loginUser(page, a); - await createWorkspace({ name: 'test1' }, page); + const name = `test-${uuidv4()}`; + await createWorkspace({ name }, page); await page.waitForTimeout(50); await clickSideBarSettingButton(page); await page.waitForTimeout(50);