Skip to content
Snippets Groups Projects
Verified Commit f5518d2a authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Fix broken test from refactor

parent 73d8f9f2
No related branches found
No related tags found
1 merge request!12Install react-router and rename LoginForm into SignInForm
Pipeline #11503 passed
......@@ -6,7 +6,9 @@ export const App: FC = () => (
<Router>
<Switch>
<Route path="/">
<AuthUser />
<div data-testid="App">
<AuthUser />
</div>
</Route>
</Switch>
</Router>
......
......@@ -3,8 +3,8 @@ import { render, fireEvent } from '@testing-library/react';
import { SignInForm } from './SignInForm';
describe('<SignInForm />', () => {
it('it should render form', () => {
it('should render form', () => {
const wrapper = render(<SignInForm />);
expect(wrapper.queryByTestId('SignInForm')).toBeTruthy();
expect(wrapper.queryByTestId('Form')).toBeTruthy();
});
});
......@@ -44,11 +44,7 @@ export const SignInForm: React.FC = () => {
const classes = useStyles();
return (
<form
className={classes.form}
onSubmit={handleSubmit}
data-testid="LoginForm"
>
<form className={classes.form} onSubmit={handleSubmit} data-testid="Form">
<TextField
variant="outlined"
margin="normal"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment