fix(editor): reactive heading icon (#9729)

Close [BS-2407](https://linear.app/affine-design/issue/BS-2407/[bug]-edgeless-里选中-title-后更改,hint-没有改变)
This commit is contained in:
L-Sun
2025-01-16 08:32:15 +00:00
parent 509cdfd7bf
commit 969ac30874
5 changed files with 66 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
import type { AffineEditorContainer } from '@blocksuite/affine/presets';
import {
AFFINE_FORMAT_BAR_WIDGET,
EDGELESS_ELEMENT_TOOLBAR_WIDGET,
EDGELESS_TOOLBAR_WIDGET,
} from '@blocksuite/blocks';
@@ -52,6 +53,13 @@ export function locateEditorContainer(page: Page, editorIndex = 0) {
return page.locator('[data-affine-editor-container]').nth(editorIndex);
}
// ================== Page ==================
export function locateFormatBar(page: Page, editorIndex = 0) {
return locateEditorContainer(page, editorIndex).locator(
AFFINE_FORMAT_BAR_WIDGET
);
}
// ================== Edgeless ==================
export async function getEdgelessSelectedIds(page: Page, editorIndex = 0) {