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

Form existence test

parent 3e5972bc
No related branches found
No related tags found
2 merge requests!11Basic implementation of login page,!8Test setup
...@@ -3,7 +3,7 @@ import { render, fireEvent } from '@testing-library/react'; ...@@ -3,7 +3,7 @@ import { render, fireEvent } from '@testing-library/react';
import { LoginForm } from './LoginForm'; import { LoginForm } from './LoginForm';
describe('<LoginForm />', () => { describe('<LoginForm />', () => {
it('renders form', () => { it('it should render form', () => {
const wrapper = render(<LoginForm />); const wrapper = render(<LoginForm />);
expect(wrapper.queryByTestId('LoginForm')).toBeTruthy(); expect(wrapper.queryByTestId('LoginForm')).toBeTruthy();
}); });
......
...@@ -87,7 +87,7 @@ export const LoginForm: React.FC = () => { ...@@ -87,7 +87,7 @@ export const LoginForm: React.FC = () => {
fullWidth fullWidth
variant="contained" variant="contained"
color="primary" color="primary"
data-testid="LoginButton" data-testid="Submit"
className={classes.submit} className={classes.submit}
> >
Sign In Sign In
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment