Low priority menu item should be a toggle (#30071)

* Use toggle on low priority menu item

* Fix broken tests
This commit is contained in:
R Midhun Suresh
2025-06-04 23:21:58 +05:30
committed by GitHub
parent 231ab20dcf
commit 2b1a4e007c
4 changed files with 10 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ describe("<RoomListItemMenuView />", () => {
showMoreOptionsMenu: true,
showNotificationMenu: true,
isFavourite: true,
isLowPriority: true,
canInvite: true,
canMarkAsUnread: true,
canMarkAsRead: true,
@@ -114,7 +115,7 @@ describe("<RoomListItemMenuView />", () => {
expect(defaultValue.toggleFavorite).toHaveBeenCalled();
await user.click(openMenu);
await user.click(screen.getByRole("menuitem", { name: "Low priority" }));
await user.click(screen.getByRole("menuitemcheckbox", { name: "Low priority" }));
expect(defaultValue.toggleLowPriority).toHaveBeenCalled();
await user.click(openMenu);