remove obsolete code
This commit is contained in:
parent
eb10296c74
commit
978081b3c0
1 changed files with 2 additions and 14 deletions
|
@ -15,9 +15,10 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const helpers = require('../helpers');
|
const helpers = require('../helpers');
|
||||||
|
const acceptTerms = require('./consent');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
|
||||||
module.exports = async function signup(page, username, password, homeserver) {
|
module.exports = async function signup(page, username, password, homeserver, options) {
|
||||||
const consoleLogs = helpers.logConsole(page);
|
const consoleLogs = helpers.logConsole(page);
|
||||||
const xhrLogs = helpers.logXHRRequests(page);
|
const xhrLogs = helpers.logXHRRequests(page);
|
||||||
await page.goto(helpers.riotUrl('/#/register'));
|
await page.goto(helpers.riotUrl('/#/register'));
|
||||||
|
@ -57,21 +58,8 @@ module.exports = async function signup(page, username, password, homeserver) {
|
||||||
await continueButton.click();
|
await continueButton.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 page.screenshot({path: "afterlogin.png", fullPage: true});
|
|
||||||
console.log('browser console logs:');
|
|
||||||
console.log(consoleLogs.logs());
|
|
||||||
console.log('xhr logs:');
|
|
||||||
console.log(xhrLogs.logs());
|
|
||||||
*/
|
|
||||||
|
|
||||||
//await acceptTerms(page);
|
|
||||||
|
|
||||||
await helpers.delay(2000);
|
await helpers.delay(2000);
|
||||||
//printElements('page', await page.$('#matrixchat'));
|
|
||||||
// await navigation_promise;
|
|
||||||
|
|
||||||
//await page.waitForSelector('.mx_MatrixChat', {visible: true, timeout: 3000});
|
|
||||||
const url = page.url();
|
const url = page.url();
|
||||||
assert.strictEqual(url, helpers.riotUrl('/#/home'));
|
assert.strictEqual(url, helpers.riotUrl('/#/home'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue