add e2e session.delay explainer

pull/21833/head
Germain Souquet 2021-04-19 18:01:19 +01:00
parent db646d5987
commit de5ca92e4e
1 changed files with 3 additions and 1 deletions

View File

@ -31,8 +31,10 @@ module.exports = async function signup(session, username, password, homeserver)
// accept homeserver
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);
//fill out form
const usernameField = await session.query("#mx_RegistrationForm_username");
const passwordField = await session.query("#mx_RegistrationForm_password");
const passwordRepeatField = await session.query("#mx_RegistrationForm_passwordConfirm");