From 2db00c953711e136a6c180d5629a39ffddfb503a Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 16 Nov 2016 11:45:46 +0800 Subject: [PATCH] MDL-56898 behat: Increase autosavefrequency for behat tests We don't need editor to autosave, as this cause unwanted ajax request --- lib/behat/classes/util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/behat/classes/util.php b/lib/behat/classes/util.php index 93ffb91fadc..95b3faa53e9 100644 --- a/lib/behat/classes/util.php +++ b/lib/behat/classes/util.php @@ -114,6 +114,9 @@ class behat_util extends testing_util { // Enable web cron. set_config('cronclionly', 0); + // Set editor autosave to high value, so as to avoid unwanted ajax. + set_config('autosavefrequency', '604800', 'editor_atto'); + // Keeps the current version of database and dataroot. self::store_versions_hash();