From faa005f02b862682e3ac2aba831bd8e0cf8b94a6 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Thu, 28 May 2026 13:54:47 +0200 Subject: [PATCH] fix(cypress): disable unsupported-browser redirect in test container The Cypress browser (Chrome 118 / Electron 27) is below stable31's minimum browser version requirement, causing every page visit to show "Your browser is not supported" instead of loading the app. This silently prevented #user-menu, [data-cy-files-list], OCA.Files.Sidebar, and all other Vue-rendered elements from ever appearing, making the entire test suite fail. Set no_unsupported_browser_warning=true during configureNextcloud() so the browser check is suppressed in the test container. AI-Assisted-By: Claude Sonnet 4.6 Signed-off-by: Anna Larch --- cypress/dockerNode.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts index b65f164dc15..3ff87051f73 100644 --- a/cypress/dockerNode.ts +++ b/cypress/dockerNode.ts @@ -137,6 +137,10 @@ export const configureNextcloud = async function() { await runExec(container, ['php', 'occ', 'config:system:set', 'force_locale', '--value', 'en_US'], true) await runExec(container, ['php', 'occ', 'config:system:set', 'enforce_theme', '--value', 'light'], true) + // Disable the unsupported-browser redirect so Cypress (Chrome 118 / Electron 27) + // does not hit the "Your browser is not supported" page on every visit. + await runExec(container, ['php', 'occ', 'config:system:set', 'no_unsupported_browser_warning', '--value', 'true', '--type', 'boolean'], true) + // Speed up test and make them less flaky. If a cron execution is needed, it can be triggered manually. await runExec(container, ['php', 'occ', 'background:cron'], true)