mirror of https://github.com/vector-im/riot-web
add e2e session.delay explainer
parent
db646d5987
commit
de5ca92e4e
|
@ -31,8 +31,10 @@ module.exports = async function signup(session, username, password, homeserver)
|
||||||
// accept homeserver
|
// accept homeserver
|
||||||
await nextButton.click();
|
await nextButton.click();
|
||||||
}
|
}
|
||||||
//fill out form
|
// Delay required because of local race condition on macOs
|
||||||
|
// Where the form is not query-able despite being present in the DOM
|
||||||
await session.delay(100);
|
await session.delay(100);
|
||||||
|
//fill out form
|
||||||
const usernameField = await session.query("#mx_RegistrationForm_username");
|
const usernameField = await session.query("#mx_RegistrationForm_username");
|
||||||
const passwordField = await session.query("#mx_RegistrationForm_password");
|
const passwordField = await session.query("#mx_RegistrationForm_password");
|
||||||
const passwordRepeatField = await session.query("#mx_RegistrationForm_passwordConfirm");
|
const passwordRepeatField = await session.query("#mx_RegistrationForm_passwordConfirm");
|
||||||
|
|
Loading…
Reference in New Issue