Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78782

Optimize the I am on course homepage with editing mode step

XMLWordPrintable

    • 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

      1. Click on the enable/disable edit mode, which:
        1. Goes to editmode.php 
        2. 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.

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 56 minutes
                5h 56m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.