mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
support setting the room alias
This commit is contained in:
parent
4a4b1f65aa
commit
be4c1cb899
1 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,13 @@ module.exports = async function changeRoomSettings(session, settings) {
|
||||||
session.log.done();
|
session.log.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (settings.alias) {
|
||||||
|
session.log.step(`sets alias to ${settings.alias}`);
|
||||||
|
const aliasField = await session.waitAndQuery(".mx_RoomSettings .mx_EditableItemList .mx_EditableItem_editable");
|
||||||
|
await session.replaceInputText(aliasField, settings.alias);
|
||||||
|
session.log.done();
|
||||||
|
}
|
||||||
|
|
||||||
const saveButton = await session.query(".mx_RoomHeader_wrapper .mx_RoomHeader_textButton");
|
const saveButton = await session.query(".mx_RoomHeader_wrapper .mx_RoomHeader_textButton");
|
||||||
await saveButton.click();
|
await saveButton.click();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue