mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
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>
This commit is contained in:
parent
685115710b
commit
faa005f02b
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue