mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 02:21:49 +03:00
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:
parent
17fec8928f
commit
8696043757
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user