diff --git a/webapp/src/components/MainPage.test.js b/webapp/src/components/MainPage.test.js index 89613e9e..e971f071 100644 --- a/webapp/src/components/MainPage.test.js +++ b/webapp/src/components/MainPage.test.js @@ -3,6 +3,7 @@ import { render, fireEvent, screen } from '@testing-library/react'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import MainPage from './MainPage'; +import { BrowserRouter as Router } from 'react-router-dom'; const mockAxios = new MockAdapter(axios); @@ -13,11 +14,9 @@ describe('MainPage component', () => { it('muestra la página principal correctamente', async () => { - render( - + render( - - ); + ); const element1 = screen.getByText(/¡Bienvenido a/); const element2 = screen.getByText(/WIQ 2024!/);