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

Rationalise confirmations when you start a quiz

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Note: the only required form field for creating a new quiz is Name. Apart from that, and settings mentioned explicitly, leave everything at the default.

      A-E are now done by behat, so focus on F-H.

      A. Normal quiz

      1. Create a quiz with Grade -> Attempts allowed set to 1.
      2. Add at least one question (true/false is quickest to make and attempt).
      3. As a student, go to the Quiz and click the Start attempt button.
      4. Verify that the attempt starts immediately in the same browser window.

      B. Quiz with time-limit and password - cancel

      1. Create a quiz with Timing -> Time limit set to something, and Extra restrictions -> Require password set to your favourite word.
      2. Add at least one question.
      3. As a student, go to the Quiz and click the Start attempt button.
      4. Verify that a JavaScript modal dialogue appears, warning you about the time limit, and asking you to supply the password.
      5. Click Cancel, and veriy that the modal closes without the page reloading.

      C. Quiz with time-limit and password - smooth case

      ... This continues from the previous scenario.

      1. Click the Start attempt button again.
      2. Type in the correct password and click Start attempt.
      3. Verify that the attempt starts immediately in the same browser window.

      D. Quiz with time-limit and password - student error then cancel case

      ... This continues from the previous scenario.

      1. Finish the started attempt, and do Finish review, to get back to mod/quiz/view.php without an active attempt.
      2. Click the Start attempt button again.
      3. Type in the wrong password and click Start attempt.
      4. The page will reload, the the 'Are you sure you want to start' form will be displayed full-screen with the validation errors.
      5. Click Cancel.
      6. Verify you get back to the mod/quiz/view.php page.

      E. Quiz with time-limit and password - student error case

      ... This continues from the previous scenario.

      1. Click the Start attempt button again.
      2. Type in the wrong password and click Start attempt.
      3. The page will reload, the the 'Are you sure you want to start' form will be displayed full-screen with the validation errors.
      4. Type in the correct password and click Start attempt.
      5. Verify that the attempt starts in the same browser window.

      F. Quiz without restrictions, but in secure window.

      1. Create a quiz with Extra restrictions -> Show more... -> Browser security set to Full screen pop-up with some JavaScript security.
      2. Add at least one question.
      3. As a student, go to the Quiz and click the Start attempt button.
      4. Verify that the attempt starts immediately in a full-screen pop-up window.

      G. Quiz with time-limit and password - in secure window - smooth case

      1. Create a quiz with Timing -> Time limit set to something, Extra restrictions -> Require password set to your favourite word, and Extra restrictions -> Show more... -> Browser security set to Full screen pop-up with some JavaScript security.
      2. Add at least one question.
      3. As a student, go to the Quiz and click the Start attempt button.
      4. Verify that a JavaScript modal dialogue appears, warning you about the time limit, and asking you to supply the password.
      5. Type in the correct password and click Start attempt.
      6. Verify that the attempt then starts in a full-screen pop-up window.

      H. Quiz with time-limit and password - in secure window - student error case

      ... This continues from the previous scenario.

      1. Finish the started attempt, and do Finish review, which will close the pop-up window, to get back to mod/quiz/view.php without an active attempt.
      2. Click the Start attempt button.
      3. Type in the wrong password and click Start attempt.
      4. The pop-up window will open full screen, and the the 'Are you sure you want to start' form will be displayed there with the validation errors.
      5. Type in the correct password and click Start attempt.
      6. The attempt should then start withing the same pop-up window.

      I. Reward yourself for completing this testing marathon

      1. Consume some chocolate/beer/bisucits/nice healthy fruit of your choice
      Show
      Note: the only required form field for creating a new quiz is Name. Apart from that, and settings mentioned explicitly, leave everything at the default. A-E are now done by behat, so focus on F-H. A. Normal quiz Create a quiz with Grade -> Attempts allowed set to 1. Add at least one question (true/false is quickest to make and attempt). As a student, go to the Quiz and click the Start attempt button. Verify that the attempt starts immediately in the same browser window. B. Quiz with time-limit and password - cancel Create a quiz with Timing -> Time limit set to something, and Extra restrictions -> Require password set to your favourite word. Add at least one question. As a student, go to the Quiz and click the Start attempt button. Verify that a JavaScript modal dialogue appears, warning you about the time limit, and asking you to supply the password. Click Cancel, and veriy that the modal closes without the page reloading. C. Quiz with time-limit and password - smooth case ... This continues from the previous scenario. Click the Start attempt button again. Type in the correct password and click Start attempt. Verify that the attempt starts immediately in the same browser window. D. Quiz with time-limit and password - student error then cancel case ... This continues from the previous scenario. Finish the started attempt, and do Finish review, to get back to mod/quiz/view.php without an active attempt. Click the Start attempt button again. Type in the wrong password and click Start attempt. The page will reload, the the 'Are you sure you want to start' form will be displayed full-screen with the validation errors. Click Cancel. Verify you get back to the mod/quiz/view.php page. E. Quiz with time-limit and password - student error case ... This continues from the previous scenario. Click the Start attempt button again. Type in the wrong password and click Start attempt. The page will reload, the the 'Are you sure you want to start' form will be displayed full-screen with the validation errors. Type in the correct password and click Start attempt. Verify that the attempt starts in the same browser window. F. Quiz without restrictions, but in secure window. Create a quiz with Extra restrictions -> Show more... -> Browser security set to Full screen pop-up with some JavaScript security. Add at least one question. As a student, go to the Quiz and click the Start attempt button. Verify that the attempt starts immediately in a full-screen pop-up window. G. Quiz with time-limit and password - in secure window - smooth case Create a quiz with Timing -> Time limit set to something, Extra restrictions -> Require password set to your favourite word, and Extra restrictions -> Show more... -> Browser security set to Full screen pop-up with some JavaScript security. Add at least one question. As a student, go to the Quiz and click the Start attempt button. Verify that a JavaScript modal dialogue appears, warning you about the time limit, and asking you to supply the password. Type in the correct password and click Start attempt. Verify that the attempt then starts in a full-screen pop-up window. H. Quiz with time-limit and password - in secure window - student error case ... This continues from the previous scenario. Finish the started attempt, and do Finish review, which will close the pop-up window, to get back to mod/quiz/view.php without an active attempt. Click the Start attempt button. Type in the wrong password and click Start attempt. The pop-up window will open full screen, and the the 'Are you sure you want to start' form will be displayed there with the validation errors. Type in the correct password and click Start attempt. The attempt should then start withing the same pop-up window. I. Reward yourself for completing this testing marathon Consume some chocolate/beer/bisucits/nice healthy fruit of your choice
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      1. At the start of the quiz, only show the "Are you sure you want to start this quiz now" if the quiz has a time limit. At the moment, it is shown if there is a time-limit or a limited number of attempts, but there is only possible harm in starting an attempt if there is a time-limit.
      2. If the quiz has a password, this is currently shown after the Are-you-sure. (Though other checks like https://moodle.org/plugins/view.php?plugin=quizaccess_honestycheck are shown on the same page as the password, if both are enable.) Merge the time-limit Are-you sure onto this page, so there is never more than one page to click through.
      3. And, make that combined page a JavaScript thing in all cases, like the current 'Are you sure' message.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16