itemengine-cypress-automation 1.0.70 → 1.0.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/cypress/e2e/ILC/AudioResponse/{audioResponseMinimalPreviewSection.js → audioResponseMinimalPreviewSection.smoke.js} +263 -254
  2. package/cypress/e2e/ILC/AudioResponse/{audioResponseStandardPreviewSection.js → audioResponseStandardPreviewSection.smoke.js} +100 -97
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.smoke.js +121 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachCell.js → groupedOptionsPartialScoreForEachCell.smoke.js} +1 -1
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachResponse.js → groupedOptionsPartialScoreForEachResponse.smoke.js} +1 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.smoke.js +164 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{standardTotalScoreDividedBetweenResponse.js → standardTotalScoreDividedBetweenResponse.smoke.js} +21 -18
  8. package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +753 -0
  9. package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.smoke.js +943 -0
  10. package/cypress/e2e/ILC/EssayResponse/{essayResponseCustomizeFormattingOptions1.js → essayResponseCustomizeFormattingOptions1.smoke.js} +113 -110
  11. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +581 -0
  12. package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.smoke.js +111 -0
  13. package/cypress/e2e/ILC/EssayResponse/{essayResponsePreviewContentsForAllViews.js → essayResponsePreviewContentsForAllViews.smoke.js} +6 -3
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropEditTabBasic.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.smoke.js +81 -0
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/{fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js → fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.smoke.js} +25 -22
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +6 -18
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -2
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +0 -4
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -2
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedSetCorrectAnswerCheckboxes.js +1 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropSetCorrectAnswerCheckboxes.js +1 -0
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -2
  25. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +0 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsManualAndNonScoredScoring.js +1 -1
  27. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -2
  28. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +0 -4
  29. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAdditionalSettingsBasic.js +3 -3
  30. package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownAllOrNothingScoring.js → fillInTheGapsDropdownAllOrNothingScoring.smoke.js} +18 -14
  31. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAllOrNothingScoringWithAlternateAnswer.js +2 -0
  32. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownManuallyAndNonScoredScoring.js +1 -1
  33. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialDifferentWeights.js +5 -3
  34. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialDifferentWeightsWithAlternateAnswer.js +2 -0
  35. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeights.js +4 -0
  36. package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeightsWithAlternateAnswer.js +2 -0
  37. package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.smoke.js} +80 -74
  38. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +2 -2
  39. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.smoke.js +361 -0
  40. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +6 -0
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.smoke.js +137 -0
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.smoke.js +171 -0
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +6 -4
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +6 -3
  45. package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.smoke.js} +1 -1
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAddResponseContainer.js +1 -1
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettings.js +2 -2
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsBasic.js +12 -14
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsMultilineResponse.js +4 -5
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsStudentResponseAreaAndLayout.js +2 -1
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextAllOrNothingScoring.js → fillInTheGapsOverImageTextAllOrNothingScoring.smoke.js} +32 -29
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextCheckAnswerForAllViews.js → fillInTheGapsOverImageTextCheckAnswerForAllViews.smoke.js} +5 -3
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.smoke.js +137 -0
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.smoke.js +146 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextManualAndNonScored.js +1 -1
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsScoring.js +4 -2
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswer.js +0 -3
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsScoring.js +2 -1
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswer.js +2 -2
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewContentsForAllViews.js → fillInTheGapsOverImageTextPreviewContentsForAllViews.smoke.js} +5 -3
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewTab.js → fillInTheGapsOverImageTextPreviewTab.smoke.js} +1 -1
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextShowCorrectAnswerForAllView.js → fillInTheGapsOverImageTextShowCorrectAnswerForAllView.smoke.js} +6 -4
  63. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAdditionalSettingsAdvanceSettingsForAllResponseAreas.js +17 -0
  64. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAdditionalSettingsBasic.js +3 -3
  65. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAllOrNothingWithAlternateAnswer.js +4 -0
  66. package/cypress/e2e/ILC/FillInTheGapsText/{fillInTheGapsTextAutoScoredScoring.js → fillInTheGapsTextAutoScoredScoring.smoke.js} +14 -9
  67. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextCaseSensitiveAndIgnoreExtraSpacesCheckboxes.js +4 -4
  68. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextManuallyAndNonScoredScoring.js +1 -1
  69. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialDifferentWeights.js +4 -2
  70. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialDifferentWeightsWithAlternateAnswer.js +3 -1
  71. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialEqualWeights.js +4 -0
  72. package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialEqualWeightsWithAlternateAnswer.js +2 -0
  73. package/cypress/e2e/ILC/Highlight/HighlightScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +36 -34
  74. package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.smoke.js +462 -0
  75. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.smoke.js +148 -0
  76. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.smoke.js +185 -0
  77. package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.smoke.js +138 -0
  78. package/cypress/e2e/ILC/HighlightImage/{highlightImagePreviewTab.js → highlightImagePreviewTab.smoke.js} +1 -1
  79. package/cypress/e2e/ILC/HighlightImage/{highlightImageToolsFunctionalityPreviewTab.js → highlightImageToolsFunctionalityPreviewTab.smoke.js} +4 -4
  80. package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.smoke.js +122 -0
  81. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsManualAndNonScoredScoring.js +1 -1
  82. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferentWeightsScoring.js +2 -3
  83. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
  84. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
  85. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
  86. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsScorings.js +2 -2
  87. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsManualAndNonScoredScoring.js +1 -1
  88. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
  89. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
  90. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
  91. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsScoring.js +2 -3
  92. package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsScoring.js +2 -2
  93. package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsBasic.js +2 -2
  94. package/cypress/e2e/ILC/ListMatching/{listMatchingAlternateAnswer.js → listMatchingAlternateAnswer.smoke.js} +47 -43
  95. package/cypress/e2e/ILC/ListMatching/listMatchingEditTabScoringTypes.js +1 -1
  96. package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.smoke.js +211 -0
  97. package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.smoke.js +254 -0
  98. package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.smoke.js +191 -0
  99. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  100. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
  101. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
  102. package/cypress/e2e/ILC/ListOrdering/{Scoring/allOrNothingScoring.js → ListOrderingScoring/allOrNothingScoring.smoke.js} +34 -32
  103. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/manuallyAndNonScoredScoring.js +3 -3
  104. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +1 -1
  105. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +1 -1
  106. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +4 -3
  107. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsScoring.js +14 -13
  108. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +1 -1
  109. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +2 -2
  110. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +1 -1
  111. package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsScoring.js +0 -1
  112. package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsAnswerNumerationAndOptionLabel.js +1 -1
  113. package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsBasic.js +2 -2
  114. package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsOptionStyleDropdown.js +1 -1
  115. package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsSetPointsPopup.js +3 -7
  116. package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabScoringSection.js +6 -6
  117. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  118. package/cypress/e2e/ILC/ListSorting/{Scoring/allOrNothingScoring.js → ListSortingScoring/allOrNothingScoring.smoke.js} +41 -38
  119. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/manuallyAndNonScoredScoring.js +1 -1
  120. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
  121. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
  122. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
  123. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsScoring.js +12 -12
  124. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
  125. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
  126. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -2
  127. package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsScoring.js +13 -13
  128. package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsBasic.js +2 -2
  129. package/cypress/e2e/ILC/ListSorting/listSortingEditTabScoringSection.js +6 -6
  130. package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.smoke.js +269 -0
  131. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionAdditionalSettingsGridOptions.js +1 -1
  132. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +16 -19
  133. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +3 -3
  134. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +3 -3
  135. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +3 -3
  136. package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridAutoScoredScoring.js → multipleSelectionGridAutoScoredScoring.smoke.js} +40 -38
  137. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridEditTabBasicSection.js +1 -1
  138. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridEditTabScoringSection.js +2 -2
  139. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridManuallyAndNonScoredScoring.js +3 -3
  140. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeights.js +12 -12
  141. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +25 -26
  142. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +23 -24
  143. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +25 -26
  144. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeights.js +14 -13
  145. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +23 -24
  146. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +21 -22
  147. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +23 -24
  148. package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridSetCorrectAnswerSection.js +7 -7
  149. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAdditionalSettingsBasic.js +10 -10
  150. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.smoke.js +407 -0
  151. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseConditionalCheckboxes.js +3 -3
  152. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseContainsConditionalRadioButton.js +4 -4
  153. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseEditTabScoringSection.js +7 -19
  154. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseExactConditionalRadioButton.js +4 -4
  155. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseManuallyScoredNonScoredScoringSection.js +9 -15
  156. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAdditionalSettingsBasic.js +16 -18
  157. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  158. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  159. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
  160. package/cypress/e2e/ILC/SingleSelectionGrid/{singleSelectionGridAutoScoredScoring.js → singleSelectionGridAutoScoredScoring.smoke.js} +36 -33
  161. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridEditTabBasicSection.js +1 -1
  162. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridEditTabScoringSection.js +2 -2
  163. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridManuallyAndNonScored.js +3 -3
  164. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeights.js +11 -10
  165. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +18 -18
  166. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +16 -16
  167. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +18 -18
  168. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeights.js +10 -9
  169. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +16 -16
  170. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +14 -14
  171. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +16 -17
  172. package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridSetCorrectAnswerSection.js +31 -31
  173. package/cypress/e2e/ILC/UploadResponse/{uploadResponsePreview.js → uploadResponsePreview.smoke.js} +64 -59
  174. package/cypress/e2e/ILC/VideoResponse/{videoResponsePreviewTab.js → videoResponsePreviewTab.smoke.js} +290 -281
  175. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +2 -2
  176. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +1 -1
  177. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +8 -2
  178. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +10 -4
  179. package/cypress/pages/components/additionalSettingsPanel.js +0 -27
  180. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
  181. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +321 -0
  182. package/cypress/pages/components/createQuestionBasePage.js +1 -7
  183. package/cypress/pages/components/essayResponseCommonComponents.js +0 -6
  184. package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -13
  185. package/cypress/pages/components/index.js +2 -1
  186. package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -10
  187. package/cypress/pages/components/scoringSectionBase.js +3 -2
  188. package/cypress/pages/createItemPage.js +3 -79
  189. package/cypress/pages/dialogBoxBase.js +8 -23
  190. package/cypress/pages/index.js +1 -4
  191. package/cypress/pages/itemPreviewSettingsPage.js +446 -0
  192. package/cypress/pages/multipleSelectionPage.js +113 -64
  193. package/cypress/pages/selectQuestionResourceToolPage.js +0 -5
  194. package/cypress/pages/shortTextResponsePage.js +0 -6
  195. package/cypress/pages/singleSelectionPage.js +0 -1
  196. package/package.json +2 -2
  197. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.js +0 -116
  198. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.js +0 -160
  199. package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.js +0 -932
  200. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.js +0 -572
  201. package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.js +0 -106
  202. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.js +0 -76
  203. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.js +0 -134
  204. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +0 -133
  205. package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.js +0 -457
  206. package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +0 -143
  207. package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +0 -178
  208. package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.js +0 -125
  209. package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingScoring.js +0 -117
  210. package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +0 -207
  211. package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +0 -246
  212. package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +0 -185
  213. package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +0 -820
  214. package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +0 -936
  215. package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +0 -263
  216. package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.js +0 -418
  217. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +0 -352
  218. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +0 -134
  219. package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +0 -156
  220. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  221. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  222. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  223. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
  224. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  225. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
  226. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  227. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
  228. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
  229. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingScoring.js +0 -0
  230. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +0 -0
  231. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
  232. /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +0 -0
  233. /package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
  234. /package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
@@ -13,8 +13,8 @@ const numbers = ['1', '2'];
13
13
  const lowercase = ['a', 'b'];
14
14
  const uppercase = ['A', 'B'];
15
15
  const pointerDropdownList = ['Left', 'Right', 'Top', 'Bottom', 'Top left', 'Top right', 'None'];
16
- const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
17
- const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
16
+ const fontSizeDropdownOptions = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
17
+ const fontSizes = ['12px', '14px', '16px', '18px', '22px', '26px'];
18
18
 
19
19
  describe('Fill In the gaps over image - dropdown - Additional settings', () => {
20
20
  before(() => {
@@ -37,7 +37,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Manually an
37
37
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseDropdownPreviewTab(), 'visible');
38
38
  });
39
39
 
40
- fillInTheGapsOverImageDropdownPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
40
+ fillInTheGapsOverImageDropdownPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Manually scored');
41
41
  });
42
42
 
43
43
  describe('Question Preview: Non scored', () => {
@@ -30,10 +30,11 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
30
30
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
31
31
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
32
32
  fillInTheGapsOverImageDropdownPage.steps.selectPartialDifferentWeightsCheckbox();
33
- fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
34
33
  fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([13.2, 6.8]);
35
34
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
36
35
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
36
+ fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
37
+ fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
37
38
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
38
39
  });
39
40
 
@@ -187,6 +188,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
187
188
  fillInTheGapsOverImageDropdownPage.steps.checkMatchFromAllResponsesCheckbox();
188
189
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
189
190
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
191
+ fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
192
+ fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
190
193
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
191
194
  });
192
195
 
@@ -345,6 +348,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
345
348
  fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([10.2, 3.4]);
346
349
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
347
350
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
351
+ fillInTheGapsOverImageDropdownPage.steps.expandRoundingDropdown();
352
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.99');
348
353
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
349
354
  });
350
355
 
@@ -359,7 +364,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
359
364
 
360
365
  it('When the \'Round down score\' checkbox is not selected, then in Preview tab when user selects partially or fully correct answers the points should be displayed in decimal points if applicable as per the options selected by the user', () => {
361
366
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
362
- fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
367
+ fillInTheGapsOverImageDropdownPage.steps.expandRoundingDropdown();
368
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromRoundingDropdownOption('none');
363
369
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
364
370
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
365
371
  fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10.2, 13.6);
@@ -5,7 +5,6 @@ const css = Cypress.env('css');
5
5
 
6
6
  let optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
7
7
  let optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
8
- let optionsForResponse3 = ['Flower', 'Leaf', 'Stem', 'Roots']; //Common answer
9
8
  let correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
10
9
  let alternateTabAnswerArray = ['Petal', 'Leaves', 'Stem'];
11
10
  let incorrectAnswerArray = ['Branch', 'Seed', 'Roots'];
@@ -31,9 +30,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
31
30
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
32
31
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
33
32
  fillInTheGapsOverImageDropdownPage.steps.selectPartialEqualWeightsCheckbox();
34
- fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
35
33
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
36
34
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
35
+ fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
36
+ fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
37
37
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
38
38
  });
39
39
 
@@ -179,13 +179,16 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
179
179
  fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
180
180
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
181
181
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
182
- fillInTheGapsOverImageDropdownPage.steps.allotPoints(21);
182
+ fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
183
+ fillInTheGapsOverImageDropdownPage.steps.selectPartialEqualWeightsCheckbox();
183
184
  fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
184
185
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
185
186
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, alternateTabAnswerArray[1]);
186
187
  fillInTheGapsOverImageDropdownPage.steps.checkMatchFromAllResponsesCheckbox();
187
188
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
188
189
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
190
+ fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
191
+ fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
189
192
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
190
193
  });
191
194
 
@@ -344,6 +347,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
344
347
  fillInTheGapsOverImageDropdownPage.steps.allotPoints(12.5);
345
348
  fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
346
349
  fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
350
+ fillInTheGapsOverImageDropdownPage.steps.expandRoundingDropdown();
351
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.99');
347
352
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
348
353
  });
349
354
 
@@ -358,7 +363,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
358
363
 
359
364
  it('When the \'Round down score\' checkbox is not selected, then in Preview tab when user selects partially or fully correct answers the points should be displayed in decimal points if applicable as per the options selected by the user', () => {
360
365
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
361
- fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
366
+ fillInTheGapsOverImageDropdownPage.steps.expandRoundingDropdown();
367
+ fillInTheGapsOverImageDropdownPage.steps.selectOptionFromRoundingDropdownOption('none');
362
368
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
363
369
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
364
370
  fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(6.25, 12.5);
@@ -33,33 +33,6 @@ const steps = {
33
33
  .click();
34
34
  additionalSettingsPanel.fontSizeListOptions(dropdownOptionIndex)
35
35
  .click();
36
- },
37
-
38
- enterTextInTeacherGuidelinesInputField: (teacherGuidelinesText) => {
39
- additionalSettingsPanel.additionalSettingsTeacherGuidelinesInputField()
40
- .click()
41
- .type(teacherGuidelinesText)
42
- .blur();
43
- additionalSettingsPanel.additionalSettingsTeacherGuidelinesInputField()
44
- .should('have.text', teacherGuidelinesText);
45
- },
46
-
47
- enterTextInSampleAnswerInputField: (sampleAnswer) => {
48
- additionalSettingsPanel.additionalSettingsSampleAnswerInputField()
49
- .click()
50
- .type(sampleAnswer)
51
- .blur();
52
- additionalSettingsPanel.additionalSettingsSampleAnswerInputField()
53
- .should('have.text', sampleAnswer);
54
- },
55
-
56
- enterTextInAcknowledgementsInputField: (acknowledgements) => {
57
- additionalSettingsPanel.additionalSettingsAcknowledgementsInputField()
58
- .click()
59
- .type(acknowledgements)
60
- .blur();
61
- additionalSettingsPanel.additionalSettingsAcknowledgementsInputField()
62
- .should('have.text', acknowledgements);
63
36
  }
64
37
  }
65
38
 
@@ -2,7 +2,7 @@ import { dialogBoxBase } from "../dialogBoxBase";
2
2
  import { scoringSectionBase } from "./scoringSectionBase";
3
3
  import { commonComponents } from "./commonComponents";
4
4
  const css = Cypress.env('css');
5
-
5
+ //Enhancement: This file should be deprecated, new file: autoScoredSpecifyCorrectAnswerSection.js
6
6
  const selectors = {
7
7
  setCorrectAnswerLabel: () => cy.get('.set-correct-answer-label'),
8
8
  setCorrectAnswerHelpText: () => cy.get('.edit-set-correct-answer-help-text'),
@@ -0,0 +1,321 @@
1
+ import utilities from "../../support/helpers/utilities";
2
+ import { dialogBoxBase } from "../dialogBoxBase";
3
+ import { commonComponents } from "./commonComponents";
4
+ import { scoringSectionBase } from "./scoringSectionBase";
5
+ const css = Cypress.env('css');
6
+
7
+ const selectors = {
8
+ specifyCorrectAnswerLabel: () => cy.get('.set-correct-answer-label'),
9
+ specifyCorrectAnswerHelpText: () => cy.get('.edit-set-correct-answer-help-text'),
10
+ alternativeAnswerButton: () => cy.get('.alternate-answer-btn-cls button'),
11
+ //TODO: Need to update the selector of correct answer accordion once a unique selector is made available
12
+ correctAnswerAccordion: () => cy.get('.correct-answer-accordion [role="button"]').eq(0),
13
+ alternativeAnswerAccordion: () => cy.get('.correct-answer-accordion [role="button"]'),
14
+ //TODO: Need to update the selector of correct answer accordion once a unique selector is made available
15
+ correctAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]').eq(0),
16
+ alternativeAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]'),
17
+ deleteAlternateAccordionButton: () => cy.get('.answer-accordion-label button'),
18
+ specifyCorrectAnswerErrorIcon: () => cy.get('[aria-label="Error in"]'),
19
+ }
20
+
21
+ const steps = {
22
+ clickOnAddAlternativeAnswerButton: () => {
23
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
24
+ .click();
25
+ },
26
+
27
+ /**
28
+ * @description Adds an alternative answer accordion at a specified index.
29
+ * @param {number} accordionIndex - The index at which the alternative answer accordion should be added.
30
+ * @example - addAlternativeAnswerAccordion(1);
31
+ */
32
+ addAlternativeAnswerAccordion: (accordionIndex) => {
33
+ autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
34
+ utilities.verifyInnerText(utilities.getNthElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion(), accordionIndex), `Alternative ${accordionIndex}`);
35
+ },
36
+
37
+ verifySpecifyCorrectAnswerErrorIconNotExists: () => {
38
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
39
+ },
40
+
41
+ verifySpecifyCorrectAnswerErrorIconIsVisible: () => {
42
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
43
+ },
44
+
45
+ expandCorrectAnswerAccordion: () => {
46
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
47
+ .click()
48
+ .should('have.attr', 'aria-expanded', 'true');
49
+ },
50
+
51
+ /**
52
+ * @description Expands the alternative answer accordion at the specified index.
53
+ * @param {number} accordionIndex - The index of the alternative answer accordion to be expanded.
54
+ * @example - expandAlternativeAnswerAccordion(2);
55
+ */
56
+ expandAlternativeAnswerAccordion: (accordionIndex) => {
57
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
58
+ .eq(accordionIndex + 1)
59
+ .click()
60
+ .should('have.attr', 'aria-expanded', 'true');
61
+ },
62
+
63
+ /**
64
+ * @description Deletes the alternative answer accordion at the specified index.
65
+ * @param {number} accordionIndex - The index of the alternative answer accordion to be deleted.
66
+ * @example - deleteAlternativeAnswerAccordion(3);
67
+ */
68
+ deleteAlternativeAnswerAccordion: (accordionIndex) => {
69
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
70
+ .eq(accordionIndex + 1)
71
+ .within(() => {
72
+ autoScoredSpecifyCorrectAnswerSection.deleteAlternateAccordionButton()
73
+ .click();
74
+ });
75
+ },
76
+
77
+ /**
78
+ * @param {number} accordionIndex - The index of the alternative answer accordion to be checked.
79
+ * @description - This function ensures that the alternative answer accordion at the specified index is not present in the DOM.
80
+ */
81
+ verifyAlternativeAnswerAccordionNotExists: (accordionIndex) => {
82
+ utilities.verifyElementVisibilityState(utilities.getNthElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion(), accordionIndex), 'notExist');
83
+ },
84
+
85
+ /**
86
+ * @param {number} accordionIndex - The index of the alternative answer accordion.
87
+ * @description - This function checks if the label of the alternative answer accordion matches the expected value.
88
+ */
89
+ verifyAlternativeAnswerAccordionLabel: (accordionIndex) => {
90
+ utilities.verifyInnerText(utilities.getNthElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion(), accordionIndex), `Alternative ${accordionIndex}`);
91
+ },
92
+ }
93
+
94
+ const tests = {
95
+ /**
96
+ * @description Verifies the contents and styling of the 'Specify correct answer' header section based on the given question type.
97
+ * @param {string} questionType - The type of the question (e.g., 'multiple selection', 'single selection', etc.).
98
+ * @example - verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('multiple selection');
99
+ */
100
+ verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents: (questionType) => {
101
+ it('\'Specify correct answer\' label and help text should be displayed in \'Specify correct answer\' section', () => {
102
+ utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerLabel(), 'Specify correct answer');
103
+
104
+ let helpText;
105
+ switch (questionType) {
106
+ case 'multiple selection':
107
+ helpText = 'You can set the correct answer by selecting the correct answer option.';
108
+ break;
109
+ case 'single selection':
110
+ helpText = 'You can set the correct answer by selecting the correct answer option.';
111
+ break;
112
+ case 'fill in the gaps - text':
113
+ helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s).';
114
+ break;
115
+ case 'short text response':
116
+ helpText = 'You can set the correct answer by entering the correct answer in the input field.';
117
+ break;
118
+ case 'fill in the gaps - dropdown':
119
+ helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
120
+ break;
121
+ case 'fill in the gaps - drag and drop':
122
+ helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).';
123
+ break;
124
+ case 'single selection grid':
125
+ helpText = 'You can set the correct answer(s) by selecting the correct answer option(s).';
126
+ break;
127
+ case 'multiple selection grid':
128
+ helpText = 'You can set the correct answer(s) by selecting the correct answer option(s).';
129
+ break;
130
+ case 'drag and drop into categories':
131
+ helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).';
132
+ break;
133
+ case 'list matching':
134
+ helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).'
135
+ break;
136
+ case 'list ordering':
137
+ helpText = 'You can set the correct answer by ordering the correct answer(s) in the response area(s).';
138
+ break;
139
+ case 'list sorting':
140
+ helpText = 'You can set the correct answer by sorting the correct answer(s) in the response area(s).';
141
+ break;
142
+ case 'highlight':
143
+ helpText = 'You can set the correct answer by highlighting the correct answer(s) in the response area(s).';
144
+ break;
145
+ case 'highlight image':
146
+ helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
147
+ break;
148
+ case 'fill in the gaps over image - text':
149
+ helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s).';
150
+ break;
151
+ case 'fill in the gaps over image - dropdown':
152
+ helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
153
+ break;
154
+ default:
155
+ throw new Error('Invalid question type');
156
+ }
157
+ utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerHelpText(), helpText);
158
+ });
159
+
160
+ it('CSS of \'Specify correct answer\' header section', { tags: 'css' }, () => {
161
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerLabel(), {
162
+ 'color': css.color.sectionHeading,
163
+ 'font-size': css.fontSize.default,
164
+ 'font-weight': css.fontWeight.semibold
165
+ });
166
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerHelpText(), {
167
+ 'color': css.color.helperText,
168
+ 'font-size': css.fontSize.normal,
169
+ 'font-weight': css.fontWeight.regular
170
+ });
171
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordionLabel(), {
172
+ 'color': css.color.activeButtons,
173
+ 'font-size': css.fontSize.default,
174
+ 'font-weight': css.fontWeight.bold
175
+ });
176
+ });
177
+
178
+ it('\'Correct\' accordion should be present and by default it should be in expanded state', () => {
179
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
180
+ .should('have.attr', 'aria-expanded', 'true');
181
+ });
182
+ },
183
+
184
+ /**
185
+ * @description Verifies the behavior of points input field and error messages when the points field is empty.
186
+ * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
187
+ * @example - verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty('Correct');
188
+ */
189
+ verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty: (accordionName) => {
190
+ it(`When the user focuses in and out of the empty points input field, \'Error: Please enter points.\' validation text should be displayed below the points input field and error icon should be displayed on the \'${accordionName}\' accordion`, () => {
191
+ scoringSectionBase.pointsInputField()
192
+ .focus();
193
+ scoringSectionBase.pointsInputField()
194
+ .blur();
195
+ utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'visible')
196
+ utilities.verifyInnerText(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'Error: Please enter points.');
197
+ if (accordionName == 'Correct') {
198
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
199
+ .within(() => {
200
+ autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
201
+ });
202
+ } else {
203
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
204
+ .eq(1)
205
+ .within(() => {
206
+ autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
207
+ });
208
+ };
209
+ });
210
+
211
+ it('When the user enters point in Points input field then the \'Error: Please enter points.\' validation text and error icon displayed on the \'Correct\' tab the should disappear', () => {
212
+ scoringSectionBase.steps.allotPoints(20);
213
+ utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'notExist');
214
+ autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
215
+ });
216
+ },
217
+
218
+ verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y: () => {
219
+ it('CSS of \'Error: Please set a correct answer\' error message and error icon', { tags: 'css' }, () => {
220
+ utilities.verifyCSS(commonComponents.errorMessage(), {
221
+ 'color': css.color.errorText,
222
+ 'font-size': css.fontSize.small,
223
+ 'font-weight': css.fontWeight.regular
224
+ });
225
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon().find('path'), {
226
+ 'fill': css.color.errorText
227
+ });
228
+ });
229
+
230
+ it('Accessibility of \'Error: Please set a correct answer\' error message and error icon', { tags: 'a11y' }, () => {
231
+ cy.checkAccessibility(commonComponents.errorMessage());
232
+ cy.checkAccessibility(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon());
233
+ });
234
+ },
235
+
236
+ /**
237
+ * @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
238
+ * in the 'Specify correct answer' section for alternative answers in auto-scored questions.
239
+ * @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
240
+ * @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
241
+ */
242
+ verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
243
+ it('\'+ Add alternative answer\' button should be present', () => {
244
+ utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
245
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
246
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
247
+ .verifyPseudoClassBeforeProperty('content', '""');
248
+ });
249
+
250
+ it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
251
+ utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), {
252
+ 'color': css.color.activeButtons,
253
+ 'font-size': css.fontSize.default,
254
+ 'font-weight': css.fontWeight.medium
255
+ });
256
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
257
+ .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
258
+ });
259
+
260
+ it('If user has not added points and/or selected correct answer in the correct accordion, the user should get a warning popup', () => {
261
+ autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
262
+ dialogBoxBase.steps.allFieldsRequiredWarningPopupContents();
263
+ });
264
+
265
+ it('CSS of warning popup', { tags: 'css' }, () => {
266
+ utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
267
+ 'color': css.color.flyoutTitle,
268
+ 'font-size': css.fontSize.heading,
269
+ 'font-weight': css.fontWeight.semibold
270
+ });
271
+ utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
272
+ 'color': css.color.labels,
273
+ 'font-size': css.fontSize.default,
274
+ 'font-weight': css.fontWeight.regular
275
+ });
276
+ utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
277
+ 'fill': css.color.closeIcon
278
+ });
279
+ });
280
+
281
+ it('Accessibility of warning popup', { tags: 'a11y' }, () => {
282
+ cy.checkAccessibility(dialogBoxBase.dialogBox());
283
+ });
284
+
285
+ it('Warning popup should close on clicking the Close icon button', () => {
286
+ dialogBoxBase.steps.closeWarningPopup();
287
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
288
+ });
289
+
290
+ it('\'Error: Please set a correct answer.\' and \'Error: Please enter points.\' validation error messages should be displayed in the correct accordion', () => {
291
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
292
+ .within(() => {
293
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
294
+ });
295
+ utilities.verifyInnerText(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'Error: Please enter points.');
296
+ utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'visible');
297
+ if (questionType != 'list ordering') {
298
+ utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), 1), 'Error: Please set a correct answer.');
299
+ utilities.verifyElementVisibilityState(utilities.getNthElement(commonComponents.errorMessage(), 1), 'visible');
300
+ }
301
+ });
302
+ },
303
+
304
+ verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
305
+ it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
306
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
307
+ .click();
308
+ dialogBoxBase.steps.allFieldsRequiredWarningPopupContents();
309
+ dialogBoxBase.steps.closeWarningPopup();
310
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
311
+ .eq(2)
312
+ .should('have.attr', 'aria-expanded', 'true');
313
+ });
314
+ },
315
+ }
316
+
317
+ export const autoScoredSpecifyCorrectAnswerSection = {
318
+ ...selectors,
319
+ steps,
320
+ tests
321
+ }
@@ -69,7 +69,7 @@ const steps = {
69
69
  createQuestionBasePage.previewTab()
70
70
  .should('have.attr', 'aria-selected', 'true');
71
71
  },
72
-
72
+
73
73
  clickOnSaveQuestionButton: () => {
74
74
  createQuestionBasePage.saveQuestionButton()
75
75
  .click();
@@ -83,12 +83,6 @@ const steps = {
83
83
  verifyPreviewTabNotSelectedState: () => {
84
84
  createQuestionBasePage.previewTab()
85
85
  .should('have.attr', 'aria-selected', 'false');
86
- },
87
-
88
- verifySavedSuccessfullySnackbar: () => {
89
- commonComponents.snackbar()
90
- .should('have.text', 'Saved successfully!')
91
- .should('be.visible');
92
86
  }
93
87
  }
94
88
 
@@ -96,12 +96,6 @@ const steps = {
96
96
  .type('{backspace}');
97
97
  },
98
98
 
99
- enterTextInPredefinedTextInputField: (predefinedText) => {
100
- essayResponseCommonComponents.predefinedTextInputField()
101
- .type(predefinedText)
102
- .should('have.text', predefinedText);
103
- },
104
-
105
99
  verifyGradingViewResponseFieldIsNonEditable: () => {
106
100
  essayResponseCommonComponents.responseField()
107
101
  .should('have.attr', 'contenteditable', 'false');
@@ -178,19 +178,6 @@ const steps = {
178
178
  fillInTheGapsCommonComponents.previewTabCorrectAnswerResponseWrapper()
179
179
  .should('have.length', correctAnswerArray.length);
180
180
  },
181
-
182
- setPlaceholderText: (placeholder) => {
183
- fillInTheGapsCommonComponents.placeholderTextInputField()
184
- .type(placeholder)
185
- .should('have.value', placeholder);
186
- },
187
-
188
- setResponseContainerHeight: (height) => {
189
- fillInTheGapsCommonComponents.heightInputField()
190
- .type(height)
191
- .should('have.value', height)
192
- .blur();
193
- }
194
181
  }
195
182
 
196
183
  const tests = {
@@ -36,4 +36,5 @@ export * from './figOverImageCommonComponent';
36
36
  export * from './uploadImageSectionComponent';
37
37
  export * from './colorPopupComponent';
38
38
  export * from './customizeHighlightPropertiesComponent';
39
- export * from './browseItemsPage';
39
+ export * from './browseItemsPage';
40
+ export * from './autoScoredSpecifyCorrectAnswerSection';
@@ -39,15 +39,6 @@ const selectors = {
39
39
  optionOrientationListOptions: (optionIndex) => cy.get('[aria-labelledby="Option-Orientation-dropdown-label Option-Orientation-placeholder"] li[role="option"]').eq(optionIndex)
40
40
  }
41
41
 
42
- const steps = {
43
- selectNumberOfOptionColumnsFromDropdown: (optionNumber) => {
44
- mcqAdditionalSettingsBase.numberOfOptionColumnsDropdown()
45
- .click();
46
- mcqAdditionalSettingsBase.numberOfOptionColumnsListOptions(optionNumber)
47
- .click();
48
- }
49
- }
50
-
51
42
  const tests = {
52
43
  verifyNumberOfOptionsColumns: (orientation) => {
53
44
  let option = [2, 3, 4, 5, 6];
@@ -395,6 +386,5 @@ const tests = {
395
386
 
396
387
  export const mcqAdditionalSettingsBase = {
397
388
  ...selectors,
398
- steps,
399
389
  tests
400
390
  }
@@ -11,8 +11,9 @@ const selectors = {
11
11
  minimumScoreIfAttemptedLabel: () => cy.get('[class*="min-score-points-label"]'),
12
12
  minimumScoreIfAttemptedInputField: () => cy.get('.min-score-points-input-field input[type="text"]'),
13
13
  pointsLabel: () => cy.get('.points-label'),
14
- pointsInputField: () => cy.get('.points-input-field input[type="text"]'),
15
- pleaseEnterPointsErrorMessage: () => cy.get('[class*="ErrorBlockstyles__ErrorText"]'),
14
+ //TODO: Need to update below selectors, once https://redmine.zeuslearning.com/issues/553983 gets resolved
15
+ pointsInputField: () => cy.get('[class*="points-input-field"]:visible input[type="text"]'),
16
+ pleaseEnterPointsErrorMessage: () => cy.get('[class*="ErrorBlockstyles__ErrorText"]:visible'),
16
17
  pointsWrapper: () => cy.get('.set-correct-answer-points-wrapper'),
17
18
  minimumScoringLabel: () => cy.get('#minimum-scoring-dropdown-label'),
18
19
  minimumScoringDropdown: () => cy.get('#minimum-scoring-select'),