mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Room list: display the menu option on the room list item when clicked/opened (#31380)
* fix: display the menu option on the room list item when clicked/opened Fix #31366 `onBlur` was called when the room is opened, the focus is moved to the composr. The hover state was removed. The hover state is diplayed when `ìsFocused=true` so the keyboard navigation is not impacted * test: update room list e2e tests * test: update marked as unread state
This commit is contained in:
@@ -47,12 +47,11 @@ test.describe("Mark as Unread", () => {
|
||||
await page.goto("/#/room/" + dummyRoomId);
|
||||
|
||||
const roomTile = page.getByLabel(TEST_ROOM_NAME);
|
||||
await roomTile.focus();
|
||||
await roomTile.getByRole("button", { name: "More Options" }).click();
|
||||
await roomTile.click({ button: "right" });
|
||||
await page.getByRole("menuitem", { name: "Mark as unread" }).click();
|
||||
|
||||
// focus the user menu to avoid to have hover decoration
|
||||
await page.getByRole("button", { name: "User menu" }).focus();
|
||||
// focus another room to make the notification decoration appear (room options are display on hover)
|
||||
await page.getByRole("option", { name: "Open room Room of no consequence" }).click();
|
||||
|
||||
await expect(roomTile.getByTestId("notification-decoration")).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user