Fix for message action bar visibility getting out of sync with the real UI state (#33445)

* Make sure action bar is not visible when using up/down arrows during editing

* Add a temporary mouse move listener to handle tooltips stealing onMouseLeave events

* Better naming, add comments and test

* Fix test that performs its own hover/pointer movement before clicking.

* Fix playwright test that actually displayed a message time stamp when hover state was stale

* Fixes after merge
This commit is contained in:
rbondesson
2026-05-13 07:52:47 +00:00
committed by GitHub
parent 1e7c9f672a
commit 97da3be67a
4 changed files with 133 additions and 12 deletions
@@ -955,7 +955,7 @@ describe("RoomView", () => {
expect(searchResultTile).not.toBeNull();
await userEvent.hover(searchResultTile!);
await userEvent.click(await findByLabelText("Edit"));
await userEvent.click(await findByLabelText("Edit"), { skipHover: true });
await waitFor(() => {
expect(container.querySelector(".mx_RoomView_searchResultsPanel")).not.toBeInTheDocument();
@@ -1024,7 +1024,7 @@ describe("RoomView", () => {
expect(searchResultTile).not.toBeNull();
await userEvent.hover(searchResultTile!);
await userEvent.click(await findByLabelText("Edit"));
await userEvent.click(await findByLabelText("Edit"), { skipHover: true });
await expect(prom).resolves.toEqual(expect.objectContaining({ room_id: room2.roomId }));
});