Low priority menu item should be a toggle (#30071)
* Use toggle on low priority menu item * Fix broken tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user