fix: modify experimental features to app-level (#6823)

This commit is contained in:
Akumatus
2024-05-08 12:21:02 +08:00
committed by GitHub
parent e85548b393
commit 4a032eb260
15 changed files with 94 additions and 49 deletions

View File

@@ -2,8 +2,10 @@ import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import { waitForEditorLoad } from '@affine-test/kit/utils/page-logic';
import {
confirmExperimentalPrompt,
openAboutPanel,
openAppearancePanel,
openExperimentalFeaturesPanel,
openSettingModal,
openShortcutsPanel,
} from '@affine-test/kit/utils/setting';
@@ -87,6 +89,18 @@ test('Open about panel', async ({ page }) => {
await expect(title).toBeVisible();
});
test('Open experimental features panel', async ({ page }) => {
await openHomePage(page);
await waitForEditorLoad(page);
await openSettingModal(page);
await openExperimentalFeaturesPanel(page);
const prompt = page.getByTestId('experimental-prompt');
await expect(prompt).toBeVisible();
await confirmExperimentalPrompt(page);
const settings = page.getByTestId('experimental-settings');
await expect(settings).toBeVisible();
});
test('Different workspace should have different name in the setting panel', async ({
page,
}) => {