From ca4c0d5d1baad659827f4b947a2219b7756361d3 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Mon, 23 Dec 2024 01:37:36 +0530 Subject: [PATCH] Fix label --- .../views/rooms/memberlist/MemberListHeaderView-test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/components/views/rooms/memberlist/MemberListHeaderView-test.tsx b/test/unit-tests/components/views/rooms/memberlist/MemberListHeaderView-test.tsx index 33afb05bb46..ff906c644e1 100644 --- a/test/unit-tests/components/views/rooms/memberlist/MemberListHeaderView-test.tsx +++ b/test/unit-tests/components/views/rooms/memberlist/MemberListHeaderView-test.tsx @@ -33,12 +33,12 @@ jest.spyOn(HTMLElement.prototype, "offsetHeight", "get").mockReturnValue(1500); jest.spyOn(HTMLElement.prototype, "offsetWidth", "get").mockReturnValue(1500); describe("Does not render invite button in memberlist header", () => { - it("Does not render invite button when user is not a member", async () => { + it("when user is not a member", async () => { await renderMemberList(true, (room) => room.updateMyMembership(KnownMembership.Leave)); expect(screen.queryByRole("button", { name: "Invite" })).toBeNull(); }); - it("does not render invite button UI customisation hides invites", async () => { + it("when UI customisation hides invites", async () => { mocked(shouldShowComponent).mockReturnValue(false); const { client, memberListRoom } = await renderMemberList(true); // Needs this specific event...