Fix broken jest test

This commit is contained in:
R Midhun Suresh
2024-12-28 16:42:59 +05:30
parent 2f351193da
commit 677f0694c7

View File

@@ -63,7 +63,7 @@ describe("MemberListHeaderView", () => {
});
it("Does not show search box when there's less than 20 members", async () => {
expect(screen.queryByPlaceholderText("Filter People...")).toBeNull();
expect(screen.queryByPlaceholderText("Search members...")).toBeNull();
});
it("Shows search box when there's more than 20 members", async () => {
@@ -81,7 +81,7 @@ describe("MemberListHeaderView", () => {
memberListRoom.currentState.members[newMember.userId] = newMember;
}
await reRender();
expect(screen.queryByPlaceholderText("Filter People...")).toBeVisible();
expect(screen.queryByPlaceholderText("Search members...")).toBeVisible();
});
describe("Invite button functionality", () => {