mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(storybook): fix test (#5325)
<img width="440" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/329f9c12-cc0b-4aae-9352-3811ab0a27a6">
This commit is contained in:
@@ -21,7 +21,7 @@ export function AddPageButton({
|
||||
|
||||
return (
|
||||
<button
|
||||
data-testid="new-page-button"
|
||||
data-testid="sidebar-new-page-button"
|
||||
style={style}
|
||||
className={clsx([styles.root, className])}
|
||||
onClick={onClick}
|
||||
|
||||
@@ -95,7 +95,6 @@ export const NewPageButton = ({
|
||||
>
|
||||
<DropdownButton
|
||||
size={size}
|
||||
data-testid="new-page-button"
|
||||
onClick={useCallback(() => {
|
||||
createNewPage();
|
||||
setOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user