add e2e session.delay explainer

This commit is contained in:
Germain Souquet 2021-04-19 18:01:19 +01:00
parent db646d5987
commit de5ca92e4e

View file

@ -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");