Merge pull request #42 from matrix-org/travis/fix-consent-signup

Click the 'Accept' button as part of the signup process
pull/21833/head
Travis Ralston 2018-11-16 12:36:25 -07:00 committed by GitHub
commit 259d4d62aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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);