mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 15:26:59 +08:00
fix: test issue (#1629)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { expect } from '@playwright/test';
|
import { expect } from '@playwright/test';
|
||||||
import { nanoid } from 'nanoid';
|
|
||||||
|
|
||||||
import userA from '../fixtures/userA.json';
|
import userA from '../fixtures/userA.json';
|
||||||
import { test } from '../libs/playwright';
|
import { test } from '../libs/playwright';
|
||||||
@@ -28,7 +27,7 @@ test.describe('affine workspace', () => {
|
|||||||
await openHomePage(page);
|
await openHomePage(page);
|
||||||
const [a] = await createFakeUser();
|
const [a] = await createFakeUser();
|
||||||
await loginUser(page, a);
|
await loginUser(page, a);
|
||||||
const name = `test-${nanoid()}`;
|
const name = `test-${Date.now()}`;
|
||||||
await createWorkspace({ name }, page);
|
await createWorkspace({ name }, page);
|
||||||
await page.waitForTimeout(50);
|
await page.waitForTimeout(50);
|
||||||
await clickSideBarSettingButton(page);
|
await clickSideBarSettingButton(page);
|
||||||
|
|||||||
Reference in New Issue
Block a user