add support for changing the room settings

This commit is contained in:
Bruno Windels
2018-08-08 11:39:17 +02:00
parent 643af2d344
commit a78c095cf6
6 changed files with 83 additions and 21 deletions

View File

@@ -25,12 +25,12 @@ module.exports = async function join(session, roomName) {
const roomInput = await session.waitAndQuery('.mx_DirectorySearchBox_input');
await session.replaceInputText(roomInput, roomName);
const firstRoomLabel = await session.waitAndQuery('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child');
const firstRoomLabel = await session.waitAndQuery('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child', 1000);
await firstRoomLabel.click();
const joinLink = await session.waitAndQuery('.mx_RoomPreviewBar_join_text a');
await joinLink.click();
await session.waitForSelector('.mx_MessageComposer');
await session.waitAndQuery('.mx_MessageComposer');
session.log.done();
}