Skip to content

Commit 419367b

Browse files
committed
testing hook
1 parent fe60690 commit 419367b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

final/components/FavoriteNote.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const FavoriteNote = props => {
3434
setFavorited(false);
3535
setCount(count - 1);
3636
}}
37+
data-cy="favorite"
3738
>
3839
Remove Favorite
3940
</ButtonAsLink>
@@ -44,6 +45,7 @@ const FavoriteNote = props => {
4445
setFavorited(true);
4546
setCount(count + 1);
4647
}}
48+
data-cy="favorite"
4749
>
4850
Add Favorite
4951
</ButtonAsLink>

0 commit comments

Comments
 (0)