Merge pull request #59 from matrix-org/bwindels/fix-roomdirectory-join

find new join button in room directory
This commit is contained in:
Bruno Windels 2019-09-11 15:00:12 +00:00 committed by GitHub
commit 7be47b2775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,12 +23,8 @@ module.exports = async function join(session, roomName) {
const roomInput = await session.query('.mx_DirectorySearchBox input');
await session.replaceInputText(roomInput, roomName);
const firstRoomLabel = await session.query('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child');
await firstRoomLabel.click();
const joinLink = await session.query('.mx_RoomPreviewBar_ViewingRoom .mx_AccessibleButton_kind_primary');
await joinLink.click();
const joinFirstLink = await session.query('.mx_RoomDirectory_table .mx_RoomDirectory_join .mx_AccessibleButton');
await joinFirstLink.click();
await session.query('.mx_MessageComposer');
session.log.done();
}