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

Hidden timer in timed quiz unhides every page change

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-80630_403
    • MDL-80630_main
    • Hide

      Prerequisites

      1. Set up a quiz "Quiz 1" with two questions, each one on a different page.
      2. Set up a quiz "Quiz 2" with one question.
      3. Set both quizzes to have a time limit of 4 minutes.

      Testing

      1. Start a new preview of "Quiz 1" and confirm "Start attempt…" in the modal dialog.
      2. Click "Hide" in order to hide the timer.
      3. Reload the page and verify the timer is still hidden.
      4. Click "Next page" and verify the timer is still hidden.
      5. Click "Previous page" and verify the timer is still hidden.
      6. Click "Show" in order to show the timer.
      7. Click "Next page" and verify the timer is still visible.
      8. Click "Previous page" and verify the timer is still visible.
      9. Wait until there are ~ 2 mins left.
      10. Click "Hide" in order to hide the timer and wait for it to automatically reappear, because of the end being near.
      11. Click "Next page" and verify the timer is not hidden.
      12. Finish the quiz by clicking "Finish attempt…" and confirm by clicking "Submit all and finish" once on the page and one more time in the modal dialog.
      13. Return to the course and start a preview of "Quiz 2".
      14. Verify the quiz starts with the timer being still hidden.
      15. Click "Show" in order to show the timer and verify the timer is shown.
      16. Return to the course and start a new preview of "Quiz 1".
      17. Verify the quiz starts with the timer being shown.
      Show
      Prerequisites Set up a quiz "Quiz 1" with two questions, each one on a different page. Set up a quiz "Quiz 2" with one question. Set both quizzes to have a time limit of 4 minutes. Testing Start a new preview of "Quiz 1" and confirm "Start attempt…" in the modal dialog. Click "Hide" in order to hide the timer. Reload the page and verify the timer is still hidden. Click "Next page" and verify the timer is still hidden. Click "Previous page" and verify the timer is still hidden. Click "Show" in order to show the timer. Click "Next page" and verify the timer is still visible. Click "Previous page" and verify the timer is still visible. Wait until there are ~ 2 mins left. Click "Hide" in order to hide the timer and wait for it to automatically reappear, because of the end being near. Click "Next page" and verify the timer is not hidden. Finish the quiz by clicking "Finish attempt…" and confirm by clicking "Submit all and finish" once on the page and one more time in the modal dialog. Return to the course and start a preview of "Quiz 2". Verify the quiz starts with the timer being still hidden. Click "Show" in order to show the timer and verify  the timer is shown. Return to the course and start a new preview of "Quiz 1". Verify the quiz starts with the timer being shown.

      The newly implemented timer hide function (MDL-77127) doesn't work as expected in a quiz with more then one page.

      How to reproduce

      • Create a quiz with at least 2 questions
      • Set layout, New page, Every question (default)  to force the quiz to use more then one page
      • Set Timing, Time limit more then 100 seconds (say 10 minutes)
      • Attempt the quiz as a student
      • Hide the timer when on question one
      • Go to question two

      -> the timer is visible again

      Expected behaviour: when chosen to hide the timer, it should stay hidden at least until 100 seconds before the end of the quiz as per design or until set to unhide by the student.

        1. MDL-80630-ml-1.png
          24 kB
          Luca Bösch
        2. MDL-80630.png
          479 kB
          Ron Carl Alfon Yu

            philippimhof Philipp Imhof
            koen Koen Roggemans
            Luca Bösch Luca Bösch
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 3 minutes
                1h 3m

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