From 2e839d545adb848e5578e6ae53b16a5ebc595710 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 15 Nov 2018 20:23:15 -0700 Subject: [PATCH] Click the 'Accept' button as part of the signup process Part of https://github.com/vector-im/riot-web/issues/7700 --- src/usecases/signup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/usecases/signup.js b/src/usecases/signup.js index bf2a512a91..825a2c27fa 100644 --- a/src/usecases/signup.js +++ b/src/usecases/signup.js @@ -60,10 +60,13 @@ module.exports = async function signup(session, username, password, homeserver) await continueButton.click(); //find the privacy policy checkbox and check it - //this should automatically move ahead with registration const policyCheckbox = await session.waitAndQuery('.mx_Login_box input[type="checkbox"]'); await policyCheckbox.click(); + //now click the 'Accept' button to agree to the privacy policy + const acceptButton = await session.waitAndQuery('.mx_InteractiveAuthEntryComponents_termsSubmit'); + await acceptButton.click(); + //wait for registration to finish so the hash gets set //onhashchange better? await session.delay(2000);