1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

DRY usernames

This commit is contained in:
Bruno Windels
2018-09-14 14:46:25 +02:00
parent 36708cc5db
commit 992a0be4d0

View File

@@ -76,11 +76,11 @@ async function checkPaginatedDisplayNames(alice, charlies) {
}); });
}, messages); }, messages);
}, []); }, []);
await checkTimelineContains(alice, expectedMessages, "Charly #1-5"); await checkTimelineContains(alice, expectedMessages, charlies.log.username);
} }
async function checkMemberList(alice, charlies) { async function checkMemberList(alice, charlies) {
alice.log.step("checks the memberlist contains herself, bob and all charlies"); alice.log.step(`checks the memberlist contains herself, bob and ${charlies.log.username}`);
const displayNames = (await getMembersInMemberlist(alice)).map((m) => m.displayName); const displayNames = (await getMembersInMemberlist(alice)).map((m) => m.displayName);
assert(displayNames.includes("alice")); assert(displayNames.includes("alice"));
assert(displayNames.includes("bob")); assert(displayNames.includes("bob"));