Try and fix e2e tests for new invite dialog

pull/21833/head
Travis Ralston 2020-01-22 22:40:02 -07:00
parent 3541ef2889
commit 65450e893c
1 changed files with 4 additions and 3 deletions

View File

@ -31,10 +31,11 @@ module.exports = async function invite(session, userId) {
} }
const inviteButton = await session.query(".mx_MemberList_invite"); const inviteButton = await session.query(".mx_MemberList_invite");
await inviteButton.click(); await inviteButton.click();
const inviteTextArea = await session.query(".mx_AddressPickerDialog textarea"); const inviteTextArea = await session.query(".mx_InviteDialog_editor textarea");
await inviteTextArea.type(userId); await inviteTextArea.type(userId);
await inviteTextArea.press("Enter"); const selectUserItem = await session.query(".mx_InviteDialog_roomTile");
const confirmButton = await session.query(".mx_Dialog_primary"); await selectUserItem.click();
const confirmButton = await session.query(".mx_InviteDialog_goButton");
await confirmButton.click(); await confirmButton.click();
session.log.done(); session.log.done();
}; };