From 869604375750e34c85004896120c5ccd5b6fb59d Mon Sep 17 00:00:00 2001 From: L-Sun Date: Thu, 10 Oct 2024 04:29:55 +0000 Subject: [PATCH] test(core): update outline viewer test in shared page (#8445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close [BS-1573](https://linear.app/affine-design/issue/BS-1537/share-page-中-toc-不应该有-[open-in-sidebar]-选项), Related PR: https://github.com/toeverything/blocksuite/pull/8493 --- tests/affine-cloud/e2e/share-page.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) 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); } });