From caa720cbaa1b254e6f81b9d612266c42c91bb958 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Tue, 12 Mar 2024 14:42:37 +0100 Subject: [PATCH] test(cypress): Do not run cron in ajax mode This prevent random slowdown during tests, making them more reliable, and faster. Signed-off-by: Louis Chemineau --- cypress/dockerNode.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts index 38bc86d9c5f..de724e237bd 100644 --- a/cypress/dockerNode.ts +++ b/cypress/dockerNode.ts @@ -132,6 +132,8 @@ export const configureNextcloud = async function() { await runExec(container, ['php', 'occ', 'config:system:set', 'default_locale', '--value', 'en_US'], true) 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) + // 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) console.log('└─ Nextcloud is now ready to use 🎉') }