Skip to content

Commit ba0232c

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cypress/dockerNode.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export const configureNextcloud = async function() {
137137
await runExec(container, ['php', 'occ', 'config:system:set', 'force_locale', '--value', 'en_US'], true)
138138
await runExec(container, ['php', 'occ', 'config:system:set', 'enforce_theme', '--value', 'light'], true)
139139

140+
// Disable the unsupported-browser redirect so Cypress (Chrome 118 / Electron 27)
141+
// does not hit the "Your browser is not supported" page on every visit.
142+
await runExec(container, ['php', 'occ', 'config:system:set', 'no_unsupported_browser_warning', '--value', 'true', '--type', 'boolean'], true)
143+
140144
// Speed up test and make them less flaky. If a cron execution is needed, it can be triggered manually.
141145
await runExec(container, ['php', 'occ', 'background:cron'], true)
142146

0 commit comments

Comments
 (0)