mirror of https://github.com/vector-im/riot-web
Fix End-to-End tests for RoomSettings interactivity
parent
ebf7eb698d
commit
06230e01e3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue