mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: standardize tsconfig (#9568)
This commit is contained in:
24
tests/kit/src/mobile.ts
Normal file
24
tests/kit/src/mobile.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user