diff --git a/webapp/src/test/mainPage/Home.test.tsx b/webapp/src/test/mainPage/Home.test.tsx index 349174d..41f8f39 100644 --- a/webapp/src/test/mainPage/Home.test.tsx +++ b/webapp/src/test/mainPage/Home.test.tsx @@ -1,11 +1,18 @@ -import Contact from "../../components/mainPage/Contact"; import { render, act} from "@testing-library/react"; +import Home from "../../components/mainPage/Home"; +import { BrowserRouter } from "react-router-dom"; test('check home is rendered correctly', async () => { await act(async () => { - const {container, getByText} = render() - expect(getByText("Contact us!")).toBeInTheDocument() + const {container, getByText} = render( + + + + + ) + expect(getByText("Welcome to LoMap! With this application you will be able to select and share your favourite places around " + + "the world with your friends. Take a sit, log in, and most importantly, have fun!!")).toBeInTheDocument() }); }) \ No newline at end of file