diff --git a/frontend/src/tests/Home.test.jsx b/frontend/src/tests/Home.test.jsx index f9da661..02515b8 100644 --- a/frontend/src/tests/Home.test.jsx +++ b/frontend/src/tests/Home.test.jsx @@ -1,4 +1,22 @@ import axios from 'axios'; +import { render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; + +import About from '../components/About'; + +const renderApp = () => { + render(); + + return { user: userEvent.setup() }; +}; + +describe('Dashboard page', () => { + it('should render the Dashboard page header', async () => { + renderApp(); + + expect(await screen.findByText(/About/i)).toBeVisible(); + }); +}); describe('Home page', () => { beforeAll(() => {