You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
prepare for more tests
This commit is contained in:
@@ -34,10 +34,17 @@ module.exports = async function scenario(createSession) {
|
||||
|
||||
const alice = await createUser("alice");
|
||||
const bob = await createUser("bob");
|
||||
|
||||
await createDirectoryRoomAndTalk(alice, bob);
|
||||
}
|
||||
|
||||
async function createDirectoryRoomAndTalk(alice, bob) {
|
||||
console.log(" creating a public room and join through directory:");
|
||||
const room = 'test';
|
||||
await createRoom(alice, room);
|
||||
await changeRoomSettings(alice, {directory: true, visibility: "public_no_guests"});
|
||||
await join(bob, room);
|
||||
await sendMessage(bob, "hi Alice!");
|
||||
await receiveMessage(alice, {sender: "bob", body: "hi Alice!"});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user