From 08c607718d268e37f8b5373473a7907bbee17511 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Tue, 5 Jul 2022 11:14:24 +0100 Subject: [PATCH] Attempt to set the language when setting up Cypress tests (#8964) --- cypress/support/login.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/support/login.ts b/cypress/support/login.ts index 50be88ae67..da72ec69a4 100644 --- a/cypress/support/login.ts +++ b/cypress/support/login.ts @@ -82,6 +82,9 @@ Cypress.Commands.add("initTestUser", (synapse: SynapseInstance, displayName: str win.localStorage.setItem("mx_is_guest", "false"); win.localStorage.setItem("mx_has_pickle_key", "false"); win.localStorage.setItem("mx_has_access_token", "true"); + + // Ensure the language is set to a consistent value + win.localStorage.setItem("mx_local_settings", '{"language":"en"}'); }); return cy.visit("/").then(() => {