mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
refactor(editor): add helper function for undo notification (#11903)
### What Changes - Refactors the `notify` function call with undo button. It is called `notifyWithUndo`, which can associate the visibility of the `NotificationCard` with the top undo item in history stack, such as undo by shortcut `Cmd+Z`. - change icon of the "Insert into page" button. Close [BS-3267](https://linear.app/affine-design/issue/BS-3267/frame和group的insert-into-page图标也更换一下)
This commit is contained in:
@@ -252,7 +252,7 @@ test.describe('edgeless note element toolbar', () => {
|
||||
await waitForEditorLoad(page);
|
||||
await expect(notes).toHaveCount(1);
|
||||
|
||||
const undoButton = page.getByTestId('undo-display-in-page');
|
||||
const undoButton = page.getByTestId('notification-card-undo');
|
||||
const viewTocButton = page.getByTestId('view-in-toc');
|
||||
|
||||
await clickEdgelessModeButton(page);
|
||||
|
||||
Reference in New Issue
Block a user