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 0f5f3b7 commit 9544c14Copy full SHA for 9544c14
1 file changed
client/modules/User/components/LoginForm.unit.test.jsx
@@ -47,7 +47,7 @@ describe('<LoginForm/>', () => {
47
const passwordTextElement = screen.getByText(/password/i);
48
expect(passwordTextElement).toBeInTheDocument();
49
50
- const passwordInputElement = screen.getByLabelText(/password/i);
+ const passwordInputElement = screen.getByLabelText(/^password$/i);
51
expect(passwordInputElement).toBeInTheDocument();
52
53
const loginButtonElement = screen.getByRole('button', {
@@ -67,7 +67,7 @@ describe('<LoginForm/>', () => {
67
}
68
});
69
70
- const passwordElement = screen.getByLabelText(/password/i);
+ const passwordElement = screen.getByLabelText(/^password$/i);
71
72
fireEvent.change(passwordElement, {
73
target: {
0 commit comments