From 5c4b91457e131740fcca6a6d89893e843aa71226 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 30 Jan 2020 22:28:56 +0000 Subject: [PATCH] Fix tests --- test/components/views/groups/GroupMemberList-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/components/views/groups/GroupMemberList-test.js b/test/components/views/groups/GroupMemberList-test.js index 867190f6f4..39720177cc 100644 --- a/test/components/views/groups/GroupMemberList-test.js +++ b/test/components/views/groups/GroupMemberList-test.js @@ -112,7 +112,9 @@ describe("GroupMemberList", function() { const memberList = ReactTestUtils.findRenderedDOMComponentWithClass(root, "mx_MemberList_joined"); const memberListElement = ReactDOM.findDOMNode(memberList); expect(memberListElement).toBeTruthy(); - expect(memberListElement.textContent).toBe("Test"); + const userNameElement = memberListElement.querySelector(".mx_EntityTile_name"); + expect(userNameElement).toBeTruthy(); + expect(userNameElement.textContent).toBe("Test"); }); httpBackend.when("GET", "/groups/" + groupIdEncoded + "/summary").respond(200, summaryResponse);