Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from matrix-org/bwindels/fix-signup
Browse files Browse the repository at this point in the history
Fix signup: set custom hs through advanced section, and accept IS step
  • Loading branch information
bwindels authored Sep 10, 2019
2 parents a3abde5 + 67b03b5 commit b8b2ef2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/usecases/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ 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 changeServerDetailsLink = await session.query('.mx_AuthBody_editServerDetails');
await changeServerDetailsLink.click();
const advancedButton = await session.query('.mx_ServerTypeSelector_type_Advanced');
await advancedButton.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();
Expand Down

0 comments on commit b8b2ef2

Please sign in to comment.