fix(core): image preview flaky (#6292)

This commit is contained in:
pengx17 committed 2024-03-25 02:46:31 +00:00
1 parent 64c011c72f
commit 578d4c9775
2 files changed
+12

No files matched your search

@@ -5,12 +5,14 @@ import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import {
clickNewPageButton,
focusInlineEditor,
getBlockSuiteEditorTitle,
waitForEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import { expect, type Page } from '@playwright/test';
async function importImage(page: Page, url: string) {
await focusInlineEditor(page);
await page.evaluate(
([url]) => {
const clipData = {