make end-to-end test failure more verbose

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-11-14 14:04:50 +00:00
parent 54dcaf1302
commit 41f4f3ef82

View file

@ -61,7 +61,7 @@ module.exports = async function signup(session, username, password, homeserver)
await session.query(".mx_Field_valid #mx_RegistrationForm_password"); await session.query(".mx_Field_valid #mx_RegistrationForm_password");
//check no errors //check no errors
const errorText = await session.tryGetInnertext('.mx_Login_error'); const errorText = await session.tryGetInnertext('.mx_Login_error');
assert.strictEqual(!!errorText, false); assert.strictEqual(errorText, null);
//submit form //submit form
//await page.screenshot({path: "beforesubmit.png", fullPage: true}); //await page.screenshot({path: "beforesubmit.png", fullPage: true});
await registerButton.click(); await registerButton.click();