mirror of https://github.com/vector-im/riot-web
Merge pull request #42 from matrix-org/travis/fix-consent-signup
Click the 'Accept' button as part of the signup processpull/21833/head
commit
259d4d62aa
|
@ -60,10 +60,13 @@ module.exports = async function signup(session, username, password, homeserver)
|
||||||
await continueButton.click();
|
await continueButton.click();
|
||||||
|
|
||||||
//find the privacy policy checkbox and check it
|
//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"]');
|
const policyCheckbox = await session.waitAndQuery('.mx_Login_box input[type="checkbox"]');
|
||||||
await policyCheckbox.click();
|
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
|
//wait for registration to finish so the hash gets set
|
||||||
//onhashchange better?
|
//onhashchange better?
|
||||||
await session.delay(2000);
|
await session.delay(2000);
|
||||||
|
|
Loading…
Reference in New Issue