diff --git a/test/unit-tests/components/structures/RightPanel-test.tsx b/test/unit-tests/components/structures/RightPanel-test.tsx index ad29791ee9f..6222397ad10 100644 --- a/test/unit-tests/components/structures/RightPanel-test.tsx +++ b/test/unit-tests/components/structures/RightPanel-test.tsx @@ -124,7 +124,7 @@ describe("RightPanel", () => { await waitFor(() => expect(screen.queryByTestId("spinner")).not.toBeInTheDocument()); // room one will be in the MemberList phase - confirm this is rendered - expect(container.getElementsByClassName("mx_MemberList")).toHaveLength(1); + expect(container.getElementsByClassName("mx_MemberListView")).toHaveLength(1); // wait for RPS room 2 updates to fire, then rerender const _rpsUpdated = waitForRpsUpdate(); @@ -146,7 +146,7 @@ describe("RightPanel", () => { // the correct right panel state for whichever room we are showing, so we // confirm we do not have the MemberList class on the page and that we have // the expected room title - expect(container.getElementsByClassName("mx_MemberList")).toHaveLength(0); + expect(container.getElementsByClassName("mx_MemberListView")).toHaveLength(0); expect(screen.getByRole("heading", { name: "r2" })).toBeInTheDocument(); }); }); diff --git a/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap b/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap index 1e0ed2248b0..d58212342a8 100644 --- a/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap +++ b/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap @@ -2029,7 +2029,7 @@ exports[`RoomView video rooms should render joined video room view 1`] = `