mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Ensure we actually wait for the login form to appear in loading-test (#25287)
This commit is contained in:
parent
f00c742ebc
commit
1fb03c82fe
@ -626,7 +626,7 @@ describe("loading:", function () {
|
||||
});
|
||||
|
||||
// Give the component some time to finish processing the login flows before continuing.
|
||||
await waitFor(() => matrixChat?.container.querySelector("#mx_LoginForm_username"));
|
||||
await waitFor(() => expect(matrixChat?.container.querySelector("#mx_LoginForm_username")).toBeTruthy());
|
||||
|
||||
// Enter login details
|
||||
fireEvent.change(matrixChat.container.querySelector("#mx_LoginForm_username")!, { target: { value: "user" } });
|
||||
|
Loading…
Reference in New Issue
Block a user