fix(editor): should update icon status when formatting the entire block text (#10508)
Closes: [BS-2718](https://linear.app/affine-design/issue/BS-2718/当处于-block-selection-状态且对整段进行-formatting-时,应该更新对应图标状态)
This commit is contained in:
@@ -27,7 +27,6 @@ import {
|
||||
selectAllBlocksByKeyboard,
|
||||
selectAllByKeyboard,
|
||||
setInlineRangeInInlineEditor,
|
||||
setSelection,
|
||||
switchReadonly,
|
||||
type,
|
||||
undoByKeyboard,
|
||||
@@ -338,7 +337,6 @@ test('should format quick bar be able to link text', async ({
|
||||
`${testInfo.title}_init.json`
|
||||
);
|
||||
|
||||
await setSelection(page, 3, 0, 3, 3);
|
||||
// The link button should be active after click
|
||||
await expect(linkBtn).toHaveAttribute('active', '');
|
||||
await linkBtn.click();
|
||||
|
||||
Reference in New Issue
Block a user