feat: add preloading template (#2655)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
1 parent
c4c4ec6a67
commit
35fb10c95b
67 files changed
+6761
-287
No files matched your search
@@ -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;
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user