fix(editor): collapsed page block visibility (#10097)

This PR fixed that doc title is not hidden when page block is collapsed
This commit is contained in:
L-Sun
2025-02-11 14:29:24 +00:00
parent 42bdae16fb
commit 0b3c7a578e
3 changed files with 17 additions and 18 deletions

View File

@@ -150,11 +150,9 @@ test.describe('edgeless page block', () => {
await expect(infoButton).toBeHidden();
});
test('page title should show in note when page block is not collapsed', async ({
page,
}) => {
test('page title should be editable', async ({ page }) => {
const note = page.locator('affine-edgeless-note');
const docTitle = note.locator('doc-title');
const docTitle = note.locator('edgeless-page-block-title');
await expect(docTitle).toBeVisible();
await expect(docTitle).toHaveText(title);