refactor: image preview plugin (#3457)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-29 00:18:28 -07:00
1 parent be3909370e
commit 52809a2783
18 files changed
+129 -45

No files matched your search

+13 -1
View File
@@ -7,7 +7,7 @@ test('plugin should exist', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
await page.route('**/plugins/**/package.json', route => route.fetch(), {
times: 3,
times: 4,
});
await page.waitForTimeout(50);
const packageJson = await page.evaluate(() => {
@@ -17,14 +17,26 @@ test('plugin should exist', async ({ page }) => {
expect(packageJson).toEqual([
{
name: '@affine/bookmark-plugin',
version: expect.any(String),
description: expect.any(String),
affinePlugin: expect.anything(),
},
{
name: '@affine/copilot-plugin',
version: expect.any(String),
description: expect.any(String),
affinePlugin: expect.anything(),
},
{
name: '@affine/hello-world-plugin',
version: expect.any(String),
description: expect.any(String),
affinePlugin: expect.anything(),
},
{
name: '@affine/image-preview-plugin',
version: expect.any(String),
description: expect.any(String),
affinePlugin: expect.anything(),
},
]);