Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

test(core): update outline viewer test in shared page (#8445)

L-Sun869604375750
diff --git a/tests/affine-cloud/e2e/share-page.spec.ts b/tests/affine-cloud/e2e/share-page.spec.ts
index ab6e581b58..452500d5dd 100644
--- a/tests/affine-cloud/e2e/share-page.spec.ts
+++ b/tests/affine-cloud/e2e/share-page.spec.ts
@@ -118,6 +118,11 @@ test('share page should have toc', async ({ page, browser }) => {
const viewer = page2.locator('affine-outline-viewer');
await tocIndicators.first().hover({ force: true });
await expect(viewer).toBeVisible();
+
+ const toggleButton = viewer.locator(
+ '[data-testid="toggle-outline-panel-button"]'
+ );
+ await expect(toggleButton).toHaveCount(0);
}
});