mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
fix: test error (#1628)
This commit is contained in:
@@ -86,6 +86,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: Use Node.js 18
|
- name: Use Node.js 18
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
"happy-dom": "^8.9.0",
|
"happy-dom": "^8.9.0",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.0",
|
"lint-staged": "^13.2.0",
|
||||||
|
"nanoid": "^4.0.1",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"prettier": "^2.8.5",
|
"prettier": "^2.8.5",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { uuidv4 } from '@blocksuite/store';
|
|
||||||
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 +28,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-${uuidv4()}`;
|
const name = `test-${nanoid()}`;
|
||||||
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