mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
test: add timeout for page list
This commit is contained in:
@@ -10,9 +10,9 @@ import { createWorkspace } from '../../libs/workspace';
|
|||||||
test.describe('affine public workspace', () => {
|
test.describe('affine public workspace', () => {
|
||||||
test('enable public workspace', async ({ page, context }) => {
|
test('enable public workspace', async ({ page, context }) => {
|
||||||
await openHomePage(page);
|
await openHomePage(page);
|
||||||
await waitMarkdownImported(page);
|
|
||||||
const [a] = await createFakeUser();
|
const [a] = await createFakeUser();
|
||||||
await loginUser(page, a);
|
await loginUser(page, a);
|
||||||
|
await waitMarkdownImported(page);
|
||||||
const name = `test-${Date.now()}`;
|
const name = `test-${Date.now()}`;
|
||||||
await createWorkspace({ name }, page);
|
await createWorkspace({ name }, page);
|
||||||
await waitMarkdownImported(page);
|
await waitMarkdownImported(page);
|
||||||
@@ -34,7 +34,9 @@ test.describe('affine public workspace', () => {
|
|||||||
);
|
);
|
||||||
const page2 = await context.newPage();
|
const page2 = await context.newPage();
|
||||||
await page2.goto(url);
|
await page2.goto(url);
|
||||||
await page2.waitForSelector('thead');
|
await page2.waitForSelector('thead', {
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
await page2.getByText('Welcome to AFFiNE').click();
|
await page2.getByText('Welcome to AFFiNE').click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user