diff --git a/frontend/cypress/e2e/HomePageTests.cy.tsx b/frontend/cypress/e2e/HomePageTests.cy.tsx index 8c8c5928..7676ac39 100644 --- a/frontend/cypress/e2e/HomePageTests.cy.tsx +++ b/frontend/cypress/e2e/HomePageTests.cy.tsx @@ -8,9 +8,10 @@ describe("Homepage functionality not logged in ", () => { it("Center button Login", () => { cy.visit("/"); cy.contains("PeristerĂ³nas"); - cy.get( - "div.MuiContainer-root.MuiContainer-maxWidthSm.css-cuefkz-MuiContainer-root" + cy.contains( + "Welcome to PeristerĂ³nas, the online submission platform of UGent" ) + .parent() .contains("Login") .should("be.visible") .should("have.attr", "href")