test: add test for New a page ,then open it and show favorite

This commit is contained in:
tzhangchi
2022-12-23 23:36:49 +08:00
parent 789a30b7aa
commit 30a685ad9a
2 changed files with 33 additions and 0 deletions
@@ -32,6 +32,7 @@ const PopoverContent = () => {
return (
<>
<MenuItem
data-testid="editor-option-menu-favorite"
onClick={() => {
toggleFavoritePage(id);
toast(!favorite ? 'Removed to Favourites' : 'Added to Favourites');