You've already forked matrix-react-sdk
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:
@@ -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"));
|
||||||
|
|||||||
Reference in New Issue
Block a user