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);
}, []);
await checkTimelineContains(alice, expectedMessages, "Charly #1-5");
await checkTimelineContains(alice, expectedMessages, charlies.log.username);
}
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);
assert(displayNames.includes("alice"));
assert(displayNames.includes("bob"));