more consistent naming on session methods

This commit is contained in:
Bruno Windels 2018-08-07 18:21:53 +02:00
parent 4e7df2126b
commit aaa5ee1a25
7 changed files with 52 additions and 28 deletions

View file

@ -30,10 +30,10 @@ module.exports = async function acceptServerNoticesInviteAndConsent(session, not
await inviteHandle.click();
const acceptInvitationLink = await session.waitAndQuerySelector(".mx_RoomPreviewBar_join_text a:first-child");
const acceptInvitationLink = await session.waitAndQuery(".mx_RoomPreviewBar_join_text a:first-child");
await acceptInvitationLink.click();
const consentLink = await session.waitAndQuerySelector(".mx_EventTile_body a", 1000);
const consentLink = await session.waitAndQuery(".mx_EventTile_body a", 1000);
const termsPagePromise = session.waitForNewPage();
await consentLink.click();