From 16591719e33d7e8addc8310943bca769b1ff6777 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 10 Sep 2019 15:40:17 +0000 Subject: [PATCH] Revert "Fix signup: set custom hs through advanced section, and accept IS step" --- src/usecases/signup.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/usecases/signup.js b/src/usecases/signup.js index a4f50b3e32d..e43b47b5cd0 100644 --- a/src/usecases/signup.js +++ b/src/usecases/signup.js @@ -21,15 +21,11 @@ module.exports = async function signup(session, username, password, homeserver) await session.goto(session.url('/#/register')); // change the homeserver by clicking the "Change" link. if (homeserver) { - const advancedButton = await session.query('.mx_ServerTypeSelector_type_Advanced'); - await advancedButton.click(); + const changeServerDetailsLink = await session.query('.mx_AuthBody_editServerDetails'); + await changeServerDetailsLink.click(); const hsInputField = await session.query('#mx_ServerConfig_hsUrl'); await session.replaceInputText(hsInputField, homeserver); const nextButton = await session.query('.mx_Login_submit'); - // accept homeserver - await nextButton.click(); - await session.delay(200); - // accept discovered identity server await nextButton.click(); await session.query('.mx_ServerConfig_identityServer_shown'); await nextButton.click();