Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: test issue (#1629)

Himself650e52d8ca2bad
diff --git a/tests/parallels/affine-workspace.spec.ts b/tests/parallels/affine-workspace.spec.ts
index da84cd5aec..f270e00aa7 100644
--- a/tests/parallels/affine-workspace.spec.ts
+++ b/tests/parallels/affine-workspace.spec.ts
@@ -1,5 +1,4 @@
import { expect } from '@playwright/test';
-import { nanoid } from 'nanoid';
import userA from '../fixtures/userA.json';
import { test } from '../libs/playwright';
@@ -28,7 +27,7 @@ test.describe('affine workspace', () => {
await openHomePage(page);
const [a] = await createFakeUser();
await loginUser(page, a);
- const name = `test-${nanoid()}`;
+ const name = `test-${Date.now()}`;
await createWorkspace({ name }, page);
await page.waitForTimeout(50);
await clickSideBarSettingButton(page);