feat: add preloading template

This commit is contained in:
Flrande
2023-06-07 17:31:54 +08:00
committed by himself65
parent ead106b940
commit e6cd2ace7d
67 changed files with 6732 additions and 385 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import { openHomePage } from '../libs/load-page';
import {
getBlockSuiteEditorTitle,
newPage,
waitMarkdownImported,
waitEditorLoad,
} from '../libs/page-logic';
async function importImage(page: Page, url: string) {
@@ -42,7 +42,7 @@ async function closeImagePreviewModal(page: Page) {
test('image preview should be shown', async ({ page }) => {
await openHomePage(page);
await waitMarkdownImported(page);
await waitEditorLoad(page);
await newPage(page);
const title = await getBlockSuiteEditorTitle(page);
await title.click();
@@ -57,7 +57,7 @@ test('image preview should be shown', async ({ page }) => {
test('image go left and right', async ({ page }) => {
await openHomePage(page);
await waitMarkdownImported(page);
await waitEditorLoad(page);
await newPage(page);
let blobId: string;
{