Skip to content

Commit

Permalink
Fix language selection in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 20, 2024
1 parent d78ed6f commit 9a2f0f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/client/cypress/e2e/app.cy.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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");
});
});

0 comments on commit 9a2f0f3

Please sign in to comment.