chore(core): remove outline viewer feature flag (#7770)

This commit is contained in:
L-Sun
2024-08-07 03:46:14 +00:00
parent aee24ffb31
commit f6279ee47f
5 changed files with 11 additions and 65 deletions
@@ -11,36 +11,13 @@ import {
waitForEditorLoad,
waitForEmptyEditor,
} from '@affine-test/kit/utils/page-logic';
import {
confirmExperimentalPrompt,
openExperimentalFeaturesPanel,
openSettingModal,
} from '@affine-test/kit/utils/setting';
import { expect, type Page } from '@playwright/test';
async function enableOutlineViewer(page: 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');
const enableOutlineViewerSetting = settings.getByTestId(
'outline-viewer-switch'
);
await expect(enableOutlineViewerSetting).toBeVisible();
await enableOutlineViewerSetting.click();
await page.waitForTimeout(500);
await page.getByTestId('modal-close-button').click();
await page.waitForTimeout(500);
}
import { expect } from '@playwright/test';
test('outline viewer is useable', async ({ page }) => {
await openHomePage(page);
await waitForEditorLoad(page);
await clickNewPageButton(page);
await waitForEditorLoad(page);
await enableOutlineViewer(page);
const title = getBlockSuiteEditorTitle(page);
await title.click();
@@ -69,7 +46,6 @@ test('outline viewer should hide in edgeless mode', async ({ page }) => {
await waitForEditorLoad(page);
await clickNewPageButton(page);
await waitForEditorLoad(page);
await enableOutlineViewer(page);
const title = getBlockSuiteEditorTitle(page);
await title.click();
@@ -94,7 +70,6 @@ test('outline viewer should be useable in doc peek preview', async ({
}) => {
await openHomePage(page);
await waitForEditorLoad(page);
await enableOutlineViewer(page);
await clickNewPageButton(page);
await waitForEmptyEditor(page);