-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
3.7.4, 3.8.1
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-67778-master
This Behat scenario should be working fine even without the "@javascript" tag. However, for some reason, removing the "@javascript" tag causes random failures.
Also, the run time of this scenario is unnecessarily long and can be further shortened by directly setting "$CFG->maxediting" time to "1 second" using the "the following config values are set as admin:" step. This will enable the user to simply wait for 2 seconds after creating the discussion in order to quickly verify the editing expiry and will greatly decrease the test execution time.
To reproduce:
- Apply the patch in this issue (e.g. in master)
git checkout master && git pull git://github.com/junpataleta/moodle.git MDL-67778-master
- Initialise Behat
- Download behattest.sh
to your moodle root folder. It's a script that repeatedly runs the "Time limit expires" scenario for 100 times.
- Go to your moodle root folder and make it executable
chmod +x behattest.sh
- Run the "behattest.sh"
./behattest.sh
- Expected
- All tests should pass up to the 100th iteration.
- Actual
- The Behat test randomly fails.
- Discovered while testing
-
MDL-51225 Q&A forum recent activity reveals posts
-
- Closed
-