mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 09:09:54 +08:00
feat: move plugins config to setting (#3259)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user