Merge pull request #48 from matrix-org/bwindels/stylepreviewbar

adjust selectors for join and accept button in room preview bar
pull/21833/head
Bruno Windels 2019-04-18 11:36:16 +00:00 committed by GitHub
commit 370741fc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module.exports = async function acceptInvite(session, name) {
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();
session.log.done();

View File

@ -26,7 +26,7 @@ module.exports = async function join(session, roomName) {
const firstRoomLabel = await session.query('.mx_RoomDirectory_table .mx_RoomDirectory_name:first-child');
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 session.query('.mx_MessageComposer');