Skip to content

Commit

Permalink
Ensure we actually wait for the login form to appear in loading-test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed May 5, 2023
1 parent f00c742 commit 1fb03c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/app-tests/loading-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" } });
Expand Down

0 comments on commit 1fb03c8

Please sign in to comment.