Skip to content

Commit

Permalink
add e2e session.delay explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg committed Apr 19, 2021
1 parent db646d5 commit de5ca92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/end-to-end-tests/src/usecases/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit de5ca92

Please sign in to comment.