Skip to content

Commit 938233b

Browse files
committed
fix: fix tests
1 parent f79f307 commit 938233b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/login-form.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const onSubmitMock: jest.Mock<LoginFormProps['onSubmit']> = jest.fn();
1212
describe('LoginForm Form ', () => {
1313
it('renders correctly', async () => {
1414
setup(<LoginForm />);
15-
expect(await screen.findByText(/Sign in/i)).toBeOnTheScreen();
15+
expect(await screen.findByTestId('form-title')).toBeOnTheScreen();
1616
});
1717

1818
it('should display required error when values are empty', async () => {

0 commit comments

Comments
 (0)