Skip to content

Commit 9691167

Browse files
committed
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 <noreply@anthropic.com> Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent 1d22e4b commit 9691167

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ export default defineConfig({
173173
await configureNextcloud()
174174
// additionally we do not want to DoS the app store
175175
runOcc(['config:system:set', 'appstoreenabled', '--value', 'false', '--type', 'boolean'])
176+
// Disable the unsupported-browser redirect so Cypress (Chrome 118 / Electron 27)
177+
// does not hit the "Your browser is not supported" page on every visit.
178+
runOcc(['config:system:set', 'no_unsupported_browser_warning', '--value', 'true', '--type', 'boolean'])
176179

177180
// for later use in tests save the container name
178181
// @ts-expect-error we are adding a custom property

0 commit comments

Comments
 (0)