Merge pull request #58 from matrix-org/revert-56-bwindels/fix-signup
Revert "Fix signup: set custom hs through advanced section, and accept IS step"
This commit is contained in:
commit
ad10148ef9
1 changed files with 2 additions and 6 deletions
|
@ -21,15 +21,11 @@ module.exports = async function signup(session, username, password, homeserver)
|
||||||
await session.goto(session.url('/#/register'));
|
await session.goto(session.url('/#/register'));
|
||||||
// change the homeserver by clicking the "Change" link.
|
// change the homeserver by clicking the "Change" link.
|
||||||
if (homeserver) {
|
if (homeserver) {
|
||||||
const advancedButton = await session.query('.mx_ServerTypeSelector_type_Advanced');
|
const changeServerDetailsLink = await session.query('.mx_AuthBody_editServerDetails');
|
||||||
await advancedButton.click();
|
await changeServerDetailsLink.click();
|
||||||
const hsInputField = await session.query('#mx_ServerConfig_hsUrl');
|
const hsInputField = await session.query('#mx_ServerConfig_hsUrl');
|
||||||
await session.replaceInputText(hsInputField, homeserver);
|
await session.replaceInputText(hsInputField, homeserver);
|
||||||
const nextButton = await session.query('.mx_Login_submit');
|
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 nextButton.click();
|
||||||
await session.query('.mx_ServerConfig_identityServer_shown');
|
await session.query('.mx_ServerConfig_identityServer_shown');
|
||||||
await nextButton.click();
|
await nextButton.click();
|
||||||
|
|
Loading…
Reference in a new issue