mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
update e2e tests to expand local aliases when adding one
This commit is contained in:
parent
9961f810f1
commit
5eaf03c3da
1 changed files with 4 additions and 2 deletions
|
@ -52,9 +52,11 @@ 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]");
|
||||
const summary = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings summary");
|
||||
await summary.click();
|
||||
const aliasField = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings details input[type=text]");
|
||||
await session.replaceInputText(aliasField, settings.alias.substring(1, settings.alias.lastIndexOf(":")));
|
||||
const addButton = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings .mx_AccessibleButton");
|
||||
const addButton = await session.query(".mx_RoomSettingsDialog .mx_AliasSettings details .mx_AccessibleButton");
|
||||
await addButton.click();
|
||||
await session.delay(10); // delay to give time for the validator to run and check the alias
|
||||
session.log.done();
|
||||
|
|
Loading…
Reference in a new issue