feat: move plugins config to setting (#3259)

This commit is contained in:
JimmFly
2023-07-17 17:25:00 +08:00
committed by GitHub
parent d4cd0e763d
commit f21eb5f272
8 changed files with 100 additions and 63 deletions
+10
View File
@@ -4,6 +4,7 @@ import { waitEditorLoad } from '@affine-test/kit/utils/page-logic';
import {
openAboutPanel,
openAppearancePanel,
openPluginsPanel,
openSettingModal,
openShortcutsPanel,
} from '@affine-test/kit/utils/setting';
@@ -61,6 +62,15 @@ test('Open shortcuts panel', async ({ page }) => {
await expect(title).toBeVisible();
});
test('Open plugins panel', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
await openSettingModal(page);
await openPluginsPanel(page);
const title = await page.getByTestId('plugins-title');
await expect(title).toBeVisible();
});
test('Open about panel', async ({ page }) => {
await openHomePage(page);
await waitEditorLoad(page);
+3
View File
@@ -19,6 +19,9 @@ export async function openAppearancePanel(page: Page) {
export async function openShortcutsPanel(page: Page) {
await page.getByTestId('shortcuts-panel-trigger').click();
}
export async function openPluginsPanel(page: Page) {
await page.getByTestId('plugins-panel-trigger').click();
}
export async function openAboutPanel(page: Page) {
await page.getByTestId('about-panel-trigger').click();