mirror of https://github.com/vector-im/riot-web
Wait for password validation
parent
f82f9ecdb2
commit
3e6719e8ab
|
@ -43,6 +43,8 @@ module.exports = async function signup(session, username, password, homeserver)
|
||||||
/// has happened before checking the form is good to go
|
/// has happened before checking the form is good to go
|
||||||
const registerButton = await session.query('.mx_Login_submit');
|
const registerButton = await session.query('.mx_Login_submit');
|
||||||
await registerButton.focus();
|
await registerButton.focus();
|
||||||
|
// Password validation is async, wait for it to complete before submit
|
||||||
|
await session.query(".mx_Field_valid #mx_RegistrationForm_password");
|
||||||
//check no errors
|
//check no errors
|
||||||
const error_text = await session.tryGetInnertext('.mx_Login_error');
|
const error_text = await session.tryGetInnertext('.mx_Login_error');
|
||||||
assert.strictEqual(!!error_text, false);
|
assert.strictEqual(!!error_text, false);
|
||||||
|
|
Loading…
Reference in New Issue