Skip to content

Commit

Permalink
test(core): update outline viewer test in shared page (#8445)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Sun committed Oct 10, 2024
1 parent 17fec89 commit 8696043
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/affine-cloud/e2e/share-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 8696043

Please sign in to comment.