Skip to content

Fix two racing conditions related to JavaScript

What does this MR do and why?

Fix two racing conditions related to JavaScript

When JavaScript is enabled, the password field is replaced by a Vue component (has a eye icon button to toggle the visibility). Sometimes test don't pass because the password is added to the password field and then replaced by the Vue component.

Fixed another issue for WebAuthn, where clicking Sign in via 2FA code doesn't enables to enter the verification code because the JQuery functionality has not yet been initialized.

Fixed both issue by waiting to find elements or selectors that only happens when the JavaScript is ready.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

N/A

Merge request reports