mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 17:51:38 +03:00
61e37d8873
fix AF-1289 1. tested on 'webkit' 2. a few baseline test cases
25 lines
537 B
TypeScript
25 lines
537 B
TypeScript
import { expect } from '@playwright/test';
|
|
|
|
import { test as baseTest } from './playwright';
|
|
|
|
type CurrentDocCollection = {
|
|
meta: { id: string; flavour: string };
|
|
};
|
|
|
|
export const test = baseTest.extend<{
|
|
workspace: {
|
|
current: () => Promise<CurrentDocCollection>;
|
|
};
|
|
}>({
|
|
page: async ({ page }, use) => {
|
|
await page.goto('/');
|
|
await expect(
|
|
page.locator('.affine-page-viewport[data-mode="edgeless"]')
|
|
).toBeVisible({
|
|
timeout: 30 * 1000,
|
|
});
|
|
await page.goto('/');
|
|
await use(page);
|
|
},
|
|
});
|