Fix End-to-End tests for RoomSettings interactivity

pull/21833/head
Michael Telatynski 2019-12-26 19:36:16 +00:00
parent ebf7eb698d
commit 06230e01e3
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module.exports = async function changeRoomSettings(session, settings) {
if (settings.alias) {
session.log.step(`sets alias to ${settings.alias}`);
const aliasField = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings input[type=text]");
await session.replaceInputText(aliasField, settings.alias);
await session.replaceInputText(aliasField, settings.alias.substring(1, settings.alias.lastIndexOf(":")));
const addButton = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings .mx_AccessibleButton");
await addButton.click();
session.log.done();