From 938233b4c068f8e03c07440d89f0d1b477b4382a Mon Sep 17 00:00:00 2001 From: Youssouf EL Azizi Date: Tue, 19 Nov 2024 12:32:55 +0100 Subject: [PATCH] fix: fix tests --- src/components/login-form.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/login-form.test.tsx b/src/components/login-form.test.tsx index c60d72a7..03545c5a 100644 --- a/src/components/login-form.test.tsx +++ b/src/components/login-form.test.tsx @@ -12,7 +12,7 @@ const onSubmitMock: jest.Mock = jest.fn(); describe('LoginForm Form ', () => { it('renders correctly', async () => { setup(); - expect(await screen.findByText(/Sign in/i)).toBeOnTheScreen(); + expect(await screen.findByTestId('form-title')).toBeOnTheScreen(); }); it('should display required error when values are empty', async () => {