From ae9c7be34736db32f86b84341cffedd76e6466c9 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 19 Apr 2024 14:56:59 +0200 Subject: [PATCH] fixed a bug in the testcase --- test/cypress/unit/i18n.spec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/cypress/unit/i18n.spec.js b/test/cypress/unit/i18n.spec.js index 0bd37bde..cb0d1f64 100644 --- a/test/cypress/unit/i18n.spec.js +++ b/test/cypress/unit/i18n.spec.js @@ -47,8 +47,12 @@ describe("Test i18n.js", () => { expect(currentLocale()).equal("en"); setLanguages(['pl']); - localStorage.locale = "de"; - expect(currentLocale()).equal("de"); + localStorage.locale = "ja-ZZ"; + expect(currentLocale()).equal("ja"); + + setLanguages(['pl']); + localStorage.locale = "invalid-lang"; + expect(currentLocale()).equal("pl"); }); });