mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
feat: add preloading template
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import type { Page } from '@playwright/test';
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
export async function waitMarkdownImported(page: Page) {
|
||||
await page.waitForSelector('v-line');
|
||||
export async function waitEditorLoad(page: Page) {
|
||||
await page.waitForSelector('v-line', {
|
||||
timeout: 10000,
|
||||
});
|
||||
}
|
||||
|
||||
export async function newPage(page: Page) {
|
||||
@@ -10,7 +12,7 @@ export async function newPage(page: Page) {
|
||||
await page.getByTestId('new-page-button').click({
|
||||
delay: 100,
|
||||
});
|
||||
await page.waitForSelector('v-line');
|
||||
await waitEditorLoad(page);
|
||||
}
|
||||
|
||||
export function getBlockSuiteEditorTitle(page: Page) {
|
||||
|
||||
Reference in New Issue
Block a user