Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40476 Tests & Quizzes - Parent jira for bug fixes to Minimum Point Value
  3. SAK-42111

Minimum Points - no warning when user sets Single Correct - Enable Partial Credit and then sets minimum value

    Details

    • Test Plan:
      Hide

      This needs to be tested on experimental: https://experimental.nightly.sakaiproject.org/portal

      Create a quiz with the following questions and the browser console open:

      Question1:

      • Multiple Choice, Single Correct
      • Answer Point Value: 2
      • Minimum Point Value: leave blank
      • Single Correct - Enable Partial Credit
      • Now enter 2 for Minimum Point Value
      • Save the question - user-facing no errors
      • Click to Edit the question

      Now the Minimum Point Value flashes red and the value is removed

      Expected behavior: user should not have been able to save the question with both the minimum point value and enable partial credit since the minimum points and answer points are the same.

      There shouldn't be any browser console errors

      Question2:

      • Multiple Correct, Single Selection
      • Answer Point Value: 4
      • Minimum Point Value: leave blank
      • Multiple Correct, Single Selection - Points deducted for incorrect answer: 1
      • Now enter 4 for Minimum Point Value

      There shouldn't be any browser console errors

      Show
      This needs to be tested on experimental: https://experimental.nightly.sakaiproject.org/portal Create a quiz with the following questions and the browser console open: Question1: Multiple Choice, Single Correct Answer Point Value: 2 Minimum Point Value: leave blank Single Correct - Enable Partial Credit Now enter 2 for Minimum Point Value Save the question - user-facing no errors Click to Edit the question Now the Minimum Point Value flashes red and the value is removed Expected behavior: user should not have been able to save the question with both the minimum point value and enable partial credit since the minimum points and answer points are the same. There shouldn't be any browser console errors Question2: Multiple Correct, Single Selection Answer Point Value: 4 Minimum Point Value: leave blank Multiple Correct, Single Selection - Points deducted for incorrect answer: 1 Now enter 4 for Minimum Point Value There shouldn't be any browser console errors

      Description

      There are a couple of browser console errors when working with minimum values and other options with multiple choice.

      Multiple Choice, Single Correct: If the user doesn't Edit the question after the initial save, they will not know that there is a problem with that question

      Multiple Choice, Single Correct
      Answer Point Value: 2
      Minimum Point Value: leave blank
      Single Correct - Enable Partial Credit

      Now enter 2 for Minimum Point Value
      Save the question - user-facing no errors
      Click to Edit the question
      Now the Minimum Point Value flashes red and the value is removed

      Browser console errors:

      multipleChoice:1015 Uncaught ReferenceError: toggleNegativePointVal is not defined
      at HTMLInputElement.onchange (multipleChoice:1015)
      onchange @ multipleChoice:1015

      editAssessment:1015 Uncaught ReferenceError: toggleNegativePointVal is not defined
      at HTMLInputElement.onchange (editAssessment:1015)
      onchange @ editAssessment:1015

      I also saw the editAssessment:1015 Uncaught ReferenceError: toggleNegativePointVal is not defined for Multiple Correct, Single Selection, but it would only allow either the minimum point value or points deducted. It was not possible to save with both of them.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code