From e0990c342ed91db2946f70fd608b5c073b9fd5b2 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 18 Mar 2026 10:04:49 +0100 Subject: [PATCH] chore(cy): fake user agent to run tests with old cypress Otherwise Nextcloud will complain about the "unsupported browser". Signed-off-by: Max --- cypress.config.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress.config.mjs b/cypress.config.mjs index f95dcf1e8b6..ea5680e9eee 100644 --- a/cypress.config.mjs +++ b/cypress.config.mjs @@ -50,4 +50,7 @@ export default defineConfig({ openMode: 0, }, 'numTestsKeptInMemory': 5, + // Make nextcloud accept the outdate browser as we won't upgrade cypress anymore: + userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/13.6.4 Chrome/144.0.0.0 Electron/25.8.4 Safari/537.36', + })