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

Clear my choice for single answer multiple choice questions is erratic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.8 regressions, 3.9
    • Fix Version/s: 3.7.7, 3.8.4
    • Component/s: Quiz
    • Testing Instructions:
      Hide

      Please test in all supported browsers.

      Tests the clear my choice function
      1. Log in as admin.
      2. Create a course or use an existing one.
      3. Go to the course and create a quiz.
      4. Edit the quiz and add 2 new single-answer multiple-choice questions. Let's call these q1 and q2.
      5. Attempt the quiz
      6. Click one of the options for q1.
      7. Verify you see the clear my choice option for q1
      8. Click one of the options for q2.
      9. Verify you see the clear my choice option for q2
      10. Click the clear my choice option for q2
      11. Verify your choice for q2 is cleared
      12. Verify "Clear my choice" for q2 gets hidden
      13. Verify your choice for q1 is unaffected
      14. Verify "Clear my choice" for q1 is unaffected
      Test if clearing your choice is stored correctly
      1. Navigate back to your quiz
      2. Select an answer for the q1 and q2
      3. Click 'Finish attempt ...' to get to the summary page.
      4. Return to your attempt
      5. Click the 'Clear my choice' link for q1.
      6. Click 'Finish attempt ...' to get to the summary page.
      7. Return to your attempt
      8. Verify the answer to for q1 is still cleared.
      Keyboard navigation (Master and 38 only)
      1. With q1's selection cleared, confirm that you can tab to the options of q1.
      2. Confirm that it highlights the first option, but does not select it yet.
      3. Press the down or right arrow key.
      4. Confirm that the second option gets focused and selected.
      5. Keep pressing down/right until you reach the last option.
      6. Press down/right once more.
      7. Confirm that the first option gets focused and selected.
      8. Verify that when an answer gets selected, the "Clear my choice option" is shown
      9. Verify you can tab to the "Clear my choice" link.
      10. Press "Shift + Tab".
      11. Confirm that to the selected option for q1 gets focused.
      12. Tab again back to the "Clear my choice" link.
      13. Press enter or space.
      14. Confirm that the selected answer for q1 gets cleared and that the "Clear my choice" link disappears.
      15. Press "Shift + Tab" to tab back to the options.
      16. Confirm that the first option gets focused, but not selected.
      Show
      Please test in all supported browsers. Tests the clear my choice function Log in as admin. Create a course or use an existing one. Go to the course and create a quiz. Edit the quiz and add 2 new single-answer multiple-choice questions. Let's call these q1 and q2. Attempt the quiz Click one of the options for q1. Verify you see the clear my choice option for q1 Click one of the options for q2. Verify you see the clear my choice option for q2 Click the clear my choice option for q2 Verify your choice for q2 is cleared Verify " Clear my choice " for q2 gets hidden Verify your choice for q1 is unaffected Verify " Clear my choice " for q1 is unaffected Test if clearing your choice is stored correctly Navigate back to your quiz Select an answer for the q1 and q2 Click 'Finish attempt ...' to get to the summary page. Return to your attempt Click the 'Clear my choice' link for q1. Click 'Finish attempt ...' to get to the summary page. Return to your attempt Verify the answer to for q1 is still cleared. Keyboard navigation (Master and 38 only) With q1's selection cleared, confirm that you can tab to the options of q1. Confirm that it highlights the first option, but does not select it yet. Press the down or right arrow key. Confirm that the second option gets focused and selected. Keep pressing down/right until you reach the last option. Press down/right once more. Confirm that the first option gets focused and selected. Verify that when an answer gets selected, the " Clear my choice option " is shown Verify you can tab to the " Clear my choice " link. Press " Shift + Tab ". Confirm that to the selected option for q1 gets focused. Tab again back to the " Clear my choice " link. Press enter or space. Confirm that the selected answer for q1 gets cleared and that the " Clear my choice " link disappears. Press " Shift + Tab " to tab back to the options. Confirm that the first option gets focused, but not selected.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-68864-master

      Description

      Moodle loses track of the Clear my choice selection if the student revisits the page of that question before submitting answers.

      This happens on our Moodle 3.8.2+ instance.

      I have reproduced this behaviour on the qa.moodledemo.net site today (Moodle 3.9 dev).

      Similarly, it is reported by another Moodler that if a student selects a choice, moves to the next page, returns to the previous page, clicks on 'Clear my choice' and submits the test, then the choice is not cleared anymore in the review page.

      We are also seeing contradictory reviews of submitted quizzes, like in the attached screenshot, where the answer is marked as wrong in the main text but is declared Not answered in the side bar.

      Curiously, the moodlecloud.com site (Moodle 3.8.2) does not display this problem with Clear my choice.

       

       

       

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          15 kB
        2. Screenshot_3.png
          Screenshot_3.png
          94 kB
        3. Screenshot_2.png
          Screenshot_2.png
          40 kB
        4. Screenshot_1.png
          Screenshot_1.png
          55 kB
        5. not-answered.png
          not-answered.png
          47 kB

          Issue Links

            Activity

              People

              Assignee:
              basbrands Bas Brands
              Reporter:
              wretched Richard Samson
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Jun Pataleta Jun Pataleta
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 40 minutes
                  2d 3h 40m