Merge pull request #59 from matrix-org/bwindels/fix-roomdirectory-join
find new join button in room directory
This commit is contained in:
commit
7be47b2775
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue