From 3eb06fa7c413dc5c5df5898f8501a2126970c607 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 29096d7aefa..d9502ef1490 100644 --- a/cypress.config.mjs +++ b/cypress.config.mjs @@ -68,4 +68,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', + })