mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
refactor: image preview plugin (#3457)
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user