feat: add preloading template (#2655)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Flrande
2023-06-07 17:31:54 +08:00
committed by GitHub
parent c4c4ec6a67
commit 35fb10c95b
67 changed files with 6761 additions and 287 deletions
+5 -3
View File
@@ -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) {