test: add test case for plugin bootstrap (#3529)

This commit is contained in:
Alex Yang
2023-08-02 18:48:35 -07:00
committed by GitHub
parent dcd070b3e7
commit d3c719d89a
8 changed files with 110 additions and 44 deletions

View File

@@ -1,8 +1,13 @@
import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import { openHomePage, openPluginPage } from '@affine-test/kit/utils/load-page';
import { waitEditorLoad } from '@affine-test/kit/utils/page-logic';
import { expect } from '@playwright/test';
test('plugin map should valid', async ({ page }) => {
await openPluginPage(page);
await page.waitForSelector('[data-plugins-load-status="success"]');
});
test('plugin should exist', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);