wait to receive message from other user

This commit is contained in:
Bruno Windels
2018-08-08 12:17:36 +02:00
parent a78c095cf6
commit 1fd379b3d2
4 changed files with 72 additions and 1 deletions
+4
View File
@@ -17,6 +17,8 @@ limitations under the License.
const signup = require('./tests/signup');
const join = require('./tests/join');
const sendMessage = require('./tests/send-message');
const receiveMessage = require('./tests/receive-message');
const createRoom = require('./tests/create-room');
const changeRoomSettings = require('./tests/room-settings');
const acceptServerNoticesInviteAndConsent = require('./tests/server-notices-consent');
@@ -36,4 +38,6 @@ module.exports = async function scenario(createSession) {
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!"});
}