From de5ca92e4e03913b1c19d51c47dc36b502a867cd Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Mon, 19 Apr 2021 18:01:19 +0100 Subject: [PATCH] add e2e session.delay explainer --- test/end-to-end-tests/src/usecases/signup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/end-to-end-tests/src/usecases/signup.js b/test/end-to-end-tests/src/usecases/signup.js index c0ab82be33e..a3391e99f3e 100644 --- a/test/end-to-end-tests/src/usecases/signup.js +++ b/test/end-to-end-tests/src/usecases/signup.js @@ -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");