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

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
This commit is contained in:
L-Sun 2024-10-10 04:29:55 +00:00
parent 17fec8928f
commit 8696043757
No known key found for this signature in database
GPG Key ID: D5C252102D2B576F

View File

@ -118,6 +118,11 @@ test('share page should have toc', async ({ page, browser }) => {
const viewer = page2.locator('affine-outline-viewer'); const viewer = page2.locator('affine-outline-viewer');
await tocIndicators.first().hover({ force: true }); await tocIndicators.first().hover({ force: true });
await expect(viewer).toBeVisible(); await expect(viewer).toBeVisible();
const toggleButton = viewer.locator(
'[data-testid="toggle-outline-panel-button"]'
);
await expect(toggleButton).toHaveCount(0);
} }
}); });