diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-12 14:42:37 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-03-14 10:55:44 +0100 |
commit | caa720cbaa1b254e6f81b9d612266c42c91bb958 (patch) | |
tree | 3550d6b1738a3d178a6cb015ebb6b228e93510f5 /cypress | |
parent | d3da21b10a068b8d72fc6b8a67f6fd143b2ad604 (diff) | |
download | nextcloud-server-caa720cbaa1b254e6f81b9d612266c42c91bb958.tar.gz nextcloud-server-caa720cbaa1b254e6f81b9d612266c42c91bb958.zip |
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 <louis@chmn.me>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/dockerNode.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 🎉') } |