mirror of https://github.com/vector-im/riot-web
adjust selectors for join and accept button in room preview bar
parent
ee1e585301
commit
20d80e695c
|
@ -31,7 +31,7 @@ module.exports = async function acceptInvite(session, name) {
|
||||||
|
|
||||||
await inviteHandle.click();
|
await inviteHandle.click();
|
||||||
|
|
||||||
const acceptInvitationLink = await session.query(".mx_RoomPreviewBar_join_text a:first-child");
|
const acceptInvitationLink = await session.query(".mx_RoomPreviewBar_Invite .mx_AccessibleButton_kind_primary");
|
||||||
await acceptInvitationLink.click();
|
await acceptInvitationLink.click();
|
||||||
|
|
||||||
session.log.done();
|
session.log.done();
|
||||||
|
|
|
@ -26,7 +26,7 @@ module.exports = async function join(session, roomName) {
|
||||||
const firstRoomLabel = await session.query('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child');
|
const firstRoomLabel = await session.query('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child');
|
||||||
await firstRoomLabel.click();
|
await firstRoomLabel.click();
|
||||||
|
|
||||||
const joinLink = await session.query('.mx_RoomPreviewBar_join_text a');
|
const joinLink = await session.query('.mx_RoomPreviewBar_ViewingRoom .mx_AccessibleButton_kind_primary');
|
||||||
await joinLink.click();
|
await joinLink.click();
|
||||||
|
|
||||||
await session.query('.mx_MessageComposer');
|
await session.query('.mx_MessageComposer');
|
||||||
|
|
Loading…
Reference in New Issue