mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
avoid typos
This commit is contained in:
parent
73c88fe603
commit
dc87e2bfe0
1 changed files with 9 additions and 2 deletions
|
@ -41,10 +41,17 @@ module.exports = async function scenario(createSession) {
|
||||||
async function createDirectoryRoomAndTalk(alice, bob) {
|
async function createDirectoryRoomAndTalk(alice, bob) {
|
||||||
console.log(" creating a public room and join through directory:");
|
console.log(" creating a public room and join through directory:");
|
||||||
const room = 'test';
|
const room = 'test';
|
||||||
|
const message = "hi Alice!";
|
||||||
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"});
|
||||||
await join(bob, room);
|
await join(bob, room);
|
||||||
await sendMessage(bob, "hi Alice!");
|
await sendMessage(bob, message);
|
||||||
await receiveMessage(alice, {sender: "bob", body: "hi Alice!"});
|
await receiveMessage(alice, {sender: "bob", body: message});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function createE2ERoomAndTalk(alice, bob) {
|
||||||
|
await createRoom(bob, "secrets");
|
||||||
|
await changeRoomSettings(bob, {encryption: true});
|
||||||
|
await invite(bob, "@alice:localhost");
|
||||||
|
await acceptInvite(alice, "secrets");
|
||||||
|
}
|
Loading…
Reference in a new issue