mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
find new join button in room directory
This commit is contained in:
parent
e3f7246c37
commit
f2a3a13678
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