From c37676cb59361204a8861e8e48f513bd9cf698a5 Mon Sep 17 00:00:00 2001 From: adrien guernier Date: Wed, 27 Mar 2024 17:55:48 +0100 Subject: [PATCH] fix: remove useless test --- src/stories/auth/Auth.test.tsx | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/stories/auth/Auth.test.tsx diff --git a/src/stories/auth/Auth.test.tsx b/src/stories/auth/Auth.test.tsx deleted file mode 100644 index c821eb36..00000000 --- a/src/stories/auth/Auth.test.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react'; -import { composeStories } from '@storybook/react'; -import userEvent from '@testing-library/user-event'; -import { render, screen } from '@testing-library/react'; -import * as story from './Auth.stories'; // Change the path to the correct file - -const { Basic } = composeStories(story); - -describe('stories/auth/Admin', () => { - it('should render the basic story', async () => { - render(); - const submit = await screen.findByText('Sign in'); - const username = await screen.findByLabelText('Username *'); - await userEvent.type(username, 'john'); - const password = await screen.findByLabelText('Password *'); - await userEvent.type(password, '123'); - await userEvent.click(submit); - }); -});