-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0.9
-
HQ 2023 Planning I3 Moppies
The current step:
I am on :coursefullname course homepage with editing mode :onoroff
It is implemented in the "i_am_on_course_homepage_with_editing_mode_set_to" function, which internally do the following: # Go to the course page and wait for all the JS to be loaded
- Click on the enable/disable edit mode, which:
- Goes to editmode.php
- Redirects again to the course page
It appears that this process is redundant as it loads the course page twice, once in edit mode and once without (or vice versa depending on the edit mode). A more efficient solution would be to directly access editmode.php.
This particular step is utilized 324 times in core tests, which suggests that improving its performance could greatly benefit the testing process.
Furthermore, in m,y localhost this step quite often throws a timeout. This can also be prevented if it stops waiting for JS to enable edit mode.