We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae70a0 commit 2e21bb8Copy full SHA for 2e21bb8
site/src/pages/CreateUserPage/CreateUserPage.test.tsx
@@ -34,7 +34,9 @@ const fillForm = async ({
34
await userEvent.type(emailField, email);
35
await userEvent.type(loginTypeField, "password");
36
await userEvent.type(passwordField as HTMLElement, password);
37
- const submitButton = await screen.findByText("Create user");
+ const submitButton = screen.getByRole("button", {
38
+ name: "Create user",
39
+ });
40
fireEvent.click(submitButton);
41
};
42
0 commit comments