From 73c88fe603219c0c6a3f76d3eaef267e849f9c53 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 8 Aug 2018 12:35:50 +0200 Subject: [PATCH] prepare for more tests --- src/scenario.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/scenario.js b/src/scenario.js index 14c901ba99..07f9518029 100644 --- a/src/scenario.js +++ b/src/scenario.js @@ -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!"}); -} +} +