diff --git a/src/client/cypress/e2e/app.cy.js b/src/client/cypress/e2e/app.cy.js index e747b1b2f..d4c5a55fc 100644 --- a/src/client/cypress/e2e/app.cy.js +++ b/src/client/cypress/e2e/app.cy.js @@ -1,3 +1,5 @@ +import { selectLanguage } from "./helpers/testHelpers"; + describe("General app tests", () => { it("Displays the login page in the correct language", () => { // default is english @@ -10,15 +12,15 @@ describe("General app tests", () => { cy.contains("Welcome to"); // german - cy.contains("span", "DE").click(); + selectLanguage("de"); cy.contains("Willkommen bei"); // french - cy.contains("span", "FR").click(); + selectLanguage("fr"); cy.contains("Bienvenue sur"); // italian - cy.contains("span", "IT").click(); + selectLanguage("it"); cy.contains("Benvenuti su"); }); });