From 3cc4649bff9f777feafc869dfb4d6578ceb1d8fb Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Thu, 28 May 2026 15:00:26 +0200 Subject: [PATCH] fix(cypress): disable unsupported-browser redirect in test container The Cypress browser (Chrome 118 / Electron 27) is below the minimum browser version required by @nextcloud/browserslist-config's "baseline widely available" query. Chrome 118 (released Oct 2023) crossed the 30-month support threshold in April 2026 and dropped out, causing every page visit to silently redirect to "Your browser is not supported" instead of loading the app. This prevented #user-menu, [data-cy-files-list], OCA.Files.Sidebar, and all Vue-rendered elements from ever appearing, making the entire Cypress test suite fail. Set no_unsupported_browser_warning=true during container setup 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 6e21b33101c79..363534bb06237 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)