fix enabling e2e encryption in room settings

pull/21833/head
Bruno Windels 2019-04-02 14:29:23 +02:00
parent a1505971fc
commit 2bf51da73e
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ module.exports = async function changeRoomSettings(session, settings) {
} }
securityTabButton.click(); securityTabButton.click();
const securitySwitches = await session.waitAndQueryAll(".mx_RoomSettingsDialog .mx_ToggleSwitch"); await session.delay(500);
const securitySwitches = await session.queryAll(".mx_RoomSettingsDialog .mx_ToggleSwitch");
const e2eEncryptionToggle = securitySwitches[0]; const e2eEncryptionToggle = securitySwitches[0];
if (typeof settings.encryption === "boolean") { if (typeof settings.encryption === "boolean") {