Ensure we actually wait for the login form to appear in loading-test (#25287)

pull/25254/head
Andy Balaam 2023-05-05 12:53:12 +01:00 committed by GitHub
parent f00c742ebc
commit 1fb03c82fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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