mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-29 22:10:57 +08:00
prepare for more tests
This commit is contained in:
parent
c5f064e389
commit
73c88fe603
@ -34,6 +34,12 @@ module.exports = async function scenario(createSession) {
|
|||||||
|
|
||||||
const alice = await createUser("alice");
|
const alice = await createUser("alice");
|
||||||
const bob = await createUser("bob");
|
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';
|
const room = 'test';
|
||||||
await createRoom(alice, room);
|
await createRoom(alice, room);
|
||||||
await changeRoomSettings(alice, {directory: true, visibility: "public_no_guests"});
|
await changeRoomSettings(alice, {directory: true, visibility: "public_no_guests"});
|
||||||
@ -41,3 +47,4 @@ module.exports = async function scenario(createSession) {
|
|||||||
await sendMessage(bob, "hi Alice!");
|
await sendMessage(bob, "hi Alice!");
|
||||||
await receiveMessage(alice, {sender: "bob", body: "hi Alice!"});
|
await receiveMessage(alice, {sender: "bob", body: "hi Alice!"});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user