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:
@@ -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 }));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user