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
@@ -1,85 +1,134 @@
1
- import { additionalSettingsPanel, autoScoredPreviewBase, createQuestionBasePage, mcqAdditionalSettingsBase, mcqOptionsComponent, mcqPreviewComponents, mcqSetCorrectAnswerSection, questionInstructionsComponent, scoringSectionBase, autoScoredAdditionalSettings, autoScoredSetCorrectAnswerSection, autoScoredScoringSectionMultipleResponsesType, autoScoredScoringSection, mcqScoringComponent, previewScoringAndShowCorrectAnswerComponent, optionsWrapperComponent } from "./components"
2
- import { mcqQuestionCommonComponents } from "./components/mcqQuestionCommonComponents";
1
+ import utilities from "../support/helpers/utilities"
2
+ import { autoScoredSpecifyCorrectAnswerSection, commonComponents, createQuestionBasePage, optionsWrapperComponent, scoringSectionBase } from "./components"
3
+ const css = Cypress.env('css');
3
4
 
4
5
  const selectors = {
5
- ...mcqAdditionalSettingsBase,
6
- ...scoringSectionBase,
6
+ ...autoScoredSpecifyCorrectAnswerSection,
7
7
  ...createQuestionBasePage,
8
- ...mcqQuestionCommonComponents,
9
- ...mcqOptionsComponent,
10
- ...additionalSettingsPanel,
11
- ...mcqSetCorrectAnswerSection,
12
- ...autoScoredPreviewBase,
13
- ...questionInstructionsComponent,
14
- ...autoScoredAdditionalSettings,
15
- ...autoScoredSetCorrectAnswerSection,
16
- ...autoScoredScoringSectionMultipleResponsesType,
17
- ...previewScoringAndShowCorrectAnswerComponent,
18
8
  ...optionsWrapperComponent,
19
- //Maximum and minimum answers
20
- minimumNumberOfAnswersLabel: () => cy.get('.min-answer-label'),
21
- maximumNumberOfAnswersLabel: () => cy.get('.max-answer-label'),
22
- minimumAnswersInputField: () => cy.get('.min-answer-input-field input'),
23
- maximumAnswersInputField: () => cy.get('.max-answer-input-field input'),
24
- minMaxErrorMessage: () => cy.get('.min-max-answer-error-wrapper')
9
+ optionWrapperSpecifyCorrectAnswerSection: () => cy.get('.mcq-option-wrapper'),
10
+ optionsTextSpecifyCorrectAnswerSection: () => cy.get('.mcq-label'),
11
+ //TODO: Need to update below selectors, once https://redmine.zeuslearning.com/issues/553983 gets resolved
12
+ optionsCheckboxSpecifyCorrectAnswerSection: () => cy.get('[data-ngie-testid="response-option-checkbox"]:visible [type="checkbox"]'),
13
+ optionsCheckboxWrapperSpecifyCorrectAnswerSection: () => cy.get('[data-ngie-testid="response-option-checkbox"]:visible')
25
14
  }
26
15
 
27
16
  const steps = {
17
+ ...autoScoredSpecifyCorrectAnswerSection.steps,
28
18
  ...createQuestionBasePage.steps,
29
- ...questionInstructionsComponent.steps,
30
- ...mcqOptionsComponent.steps,
31
- ...additionalSettingsPanel.steps,
32
- ...autoScoredAdditionalSettings.steps,
33
- ...mcqPreviewComponents.steps,
34
- ...mcqSetCorrectAnswerSection.steps,
35
- ...autoScoredPreviewBase.steps,
36
- ...mcqQuestionCommonComponents.steps,
19
+ ...optionsWrapperComponent.steps,
37
20
  ...scoringSectionBase.steps,
38
- ...autoScoredSetCorrectAnswerSection.steps,
39
- ...autoScoredScoringSection.steps,
40
- ...autoScoredScoringSectionMultipleResponsesType.steps,
41
- ...mcqAdditionalSettingsBase.steps,
42
- addPartialDifferentWeightsPoints: (optionIndex, points) => {
43
- mcqSetCorrectAnswerSection.correctAnswerOptionsWrapper(optionIndex)
21
+ /**
22
+ * Verifies the contents of an option wrapper in the 'Specify correct answer' section for multiple selection questions.
23
+ * @param {number} optionIndex - The index of the option wrapper to be verified.
24
+ * @example - verifyOptionWrapperContentsSpecifyCorrectAnswerSection(0);
25
+ */
26
+ verifyOptionWrapperContentsSpecifyCorrectAnswerSection: (optionIndex) => {
27
+ multipleSelectionPage.optionWrapperSpecifyCorrectAnswerSection()
28
+ .eq(optionIndex)
44
29
  .within(() => {
45
- scoringSectionBase.pointsInputField()
46
- .clear()
47
- .type(points, { delay: 500 })
48
- .should('have.value', points)
49
- .blur();
30
+ utilities.verifyInnerText(multipleSelectionPage.optionsTextSpecifyCorrectAnswerSection(), '');
31
+ multipleSelectionPage.optionsCheckboxSpecifyCorrectAnswerSection()
32
+ .should('not.be.checked');
50
33
  });
51
34
  },
52
35
 
53
- //TODO: Remove this after https://redmine.zeuslearning.com/issues/528831 is fixed
54
- verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked: () => {
55
- cy.log('After deselecting Show correct answer checkbox, the question preview should return to the previous state');
56
- previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
36
+ /**
37
+ * @description. Checks the options checkbox in the 'Specify correct answer' section for multiple selection questions.
38
+ * @param {number} optionIndex - The index of the option checkbox to be checked.
39
+ * @throws {Error} Will throw an error if the checkbox is not checked after the operation.
40
+ * @example - checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
41
+ */
42
+ checkOptionsCheckboxInSpecifyCorrectAnswerSection: (optionIndex) => {
43
+ multipleSelectionPage.optionsCheckboxSpecifyCorrectAnswerSection()
44
+ .eq(optionIndex)
57
45
  .click()
58
- .should('not.be.checked');
59
- autoScoredPreviewBase.correctIcon()
60
- .should('not.exist');
61
- autoScoredPreviewBase.incorrectIcon()
62
- .should('not.exist');
63
- autoScoredPreviewBase.correctIncorrectAnswerLabel()
64
- .should('not.exist');
65
- autoScoredPreviewBase.steps.verifyCorrectIncorrectBorderNotExists();
46
+ .should('be.checked')
66
47
  },
48
+
49
+ /**
50
+ * @description. Unchecks the options checkbox in the 'Specify correct answer' section for multiple selection questions.
51
+ * @param {number} optionIndex - The index of the option checkbox to be unchecked.
52
+ * @throws {Error} Will throw an error if the checkbox is not unchecked after the operation.
53
+ * @example - uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
54
+ */
55
+ uncheckOptionsCheckboxInSpecifyCorrectAnswerSection: (optionIndex) => {
56
+ multipleSelectionPage.optionsCheckboxSpecifyCorrectAnswerSection()
57
+ .eq(optionIndex)
58
+ .click()
59
+ .should('not.be.checked')
60
+ }
67
61
  }
68
62
 
69
63
  const tests = {
70
- ...createQuestionBasePage.tests,
71
- ...questionInstructionsComponent.tests,
72
- ...mcqOptionsComponent.tests,
73
- ...additionalSettingsPanel.tests,
74
- ...mcqAdditionalSettingsBase.tests,
75
- ...mcqSetCorrectAnswerSection.tests,
76
- ...mcqQuestionCommonComponents.tests,
77
- ...scoringSectionBase.tests,
78
- ...autoScoredSetCorrectAnswerSection.tests,
79
- ...autoScoredScoringSection.tests,
80
- ...autoScoredAdditionalSettings.tests,
81
- ...mcqScoringComponent.tests,
82
- ...previewScoringAndShowCorrectAnswerComponent.tests,
64
+ ...autoScoredSpecifyCorrectAnswerSection.tests,
65
+ /**
66
+ * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
67
+ * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
68
+ * @example - verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Correct');
69
+ */
70
+ verifySpecifyCorrectAnswerAccordionContentsAndFunctionality: (accordionName) => {
71
+ it(`The user should be able to check/uncheck an option in the ${accordionName} accordion`, () => {
72
+ multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
73
+ multipleSelectionPage.steps.uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(1);
74
+ });
75
+
76
+ it(`When the user has unchecked all selected options in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
77
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible')
78
+ utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
79
+ if (accordionName == 'Correct') {
80
+ autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
81
+ .within(() => {
82
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
83
+ });
84
+ } else {
85
+ autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
86
+ .eq(1)
87
+ .within(() => {
88
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
89
+ });
90
+ };
91
+ });
92
+
93
+ autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
94
+
95
+ it('When the user checks an options checkbox, the error message should disappear', () => {
96
+ multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
97
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
98
+ });
99
+
100
+ autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty(accordionName);
101
+
102
+ it('CSS of \'Correct\' accordion contents', { tags: 'css' }, () => {
103
+ utilities.verifyCSS(multipleSelectionPage.optionsTextSpecifyCorrectAnswerSection(), {
104
+ 'color': css.color.text,
105
+ 'font-size': css.fontSize.default,
106
+ 'font-weight': css.fontWeight.regular
107
+ });
108
+ utilities.verifyCSS(multipleSelectionPage.optionsCheckboxSpecifyCorrectAnswerSection().parent().find('svg'), {
109
+ 'fill': css.color.secondaryBtn
110
+ });
111
+ cy.log('CSS of selected options')
112
+ utilities.verifyCSS(multipleSelectionPage.optionsCheckboxWrapperSpecifyCorrectAnswerSection().eq(1), {
113
+ 'background-color': css.color.defaultBackground,
114
+ 'color': css.color.activeButtons,
115
+ 'border': `2px solid ${css.color.activeComponentBorder}`
116
+ });
117
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionPage.optionsTextSpecifyCorrectAnswerSection(), 1).find('.question-text-wrapper'), {
118
+ 'color': css.color.optionsSelectedText,
119
+ 'font-size': css.fontSize.default,
120
+ 'font-weight': css.fontWeight.regular
121
+ });
122
+ multipleSelectionPage.optionsCheckboxSpecifyCorrectAnswerSection()
123
+ .eq(1)
124
+ .parent()
125
+ .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
126
+ });
127
+
128
+ it('Accessibility of \'Correct\' accordion contents', { tags: 'a11y' }, () => {
129
+ cy.checkAccessibility(multipleSelectionPage.optionWrapperSpecifyCorrectAnswerSection().parents('.correct-answer-accordion'))
130
+ });
131
+ },
83
132
  }
84
133
 
85
134
  export const multipleSelectionPage = {
@@ -41,12 +41,7 @@ const questionTypeCategoryMap = {
41
41
  }
42
42
 
43
43
  const steps = {
44
- //TODO: Need to update this for all question types on high priority
45
44
  selectQuestionType: (questionType) => {
46
- const questionCategory = questionTypeCategoryMap[questionType];
47
- selectQuestionResourceToolPage.questionTypeCategory()
48
- .contains(questionCategory)
49
- .click();
50
45
  selectQuestionResourceToolPage.questionTypeOptionTitle(questionType)
51
46
  .click();
52
47
  },
@@ -72,12 +72,6 @@ const steps = {
72
72
  .verifyInnerText(correctAnswer)
73
73
  shortTextResponsePage.previewTabCorrectAnswerResponse()
74
74
  .should('have.length', 1);
75
- },
76
-
77
- enterTextInShortTextResponseInputField: (correctAnswer) => {
78
- shortTextResponsePage.setCorrectAnswerResponseField()
79
- .type(correctAnswer)
80
- .should('have.value', correctAnswer);
81
75
  }
82
76
  }
83
77
 
@@ -32,7 +32,6 @@ const steps = {
32
32
  ...mcqPreviewComponents.steps,
33
33
  ...autoScoredSetCorrectAnswerSection.steps,
34
34
  ...autoScoredScoringSection.steps,
35
- ...mcqAdditionalSettingsBase.steps,
36
35
  checkCorrectAnswerRadioButton: (option) => {
37
36
  mcqSetCorrectAnswerSection.correctAnswerOptionsWrapper(option)
38
37
  .click()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.70",
3
+ "version": "1.0.73",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,4 +29,4 @@
29
29
  "cypress-real-events": "^1.7.6",
30
30
  "react-uuid": "^2.0.0"
31
31
  }
32
- }
32
+ }
@@ -1,116 +0,0 @@
1
- import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
- import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
- import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
-
5
- describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
- before(() => {
7
- cy.loginAs('admin');
8
- });
9
-
10
- describe('Show correct answer - grouped options layout', () => {
11
- abortEarlySetup();
12
- before(() => {
13
- cy.log('Navigating to drag and drop into categories question type');
14
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
- cy.barsPreLoaderWait();
16
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
- });
18
-
19
- dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet()
20
-
21
- dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyShowCorrectAnswerBasicFunctionality();
22
- });
23
-
24
- describe('Question preview: AutoScored: All or nothing - grouped options layout', () => {
25
- abortEarlySetup();
26
- before(() => {
27
- cy.log('Navigating to drag and drop into categories question type');
28
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
29
- cy.barsPreLoaderWait();
30
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
31
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
32
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
33
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
34
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
35
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
36
- });
37
-
38
- dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingScoring()
39
-
40
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
41
- });
42
-
43
- describe('Question Preview: AutoScored - All or Nothing - grouped options layout with identical draggable response options in preview tab', () => {
44
- let groupedOptions = [['Bat', 'Eagle', 'Whale', 'Platypus'], ['Bat', 'Parrot', 'Ostrich', 'Flying squirrel']];
45
- abortEarlySetup();
46
- before(() => {
47
- cy.log('Navigate to drag and drop into categories question type, fill the necessary details and points and switch to preview tab');
48
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
49
- cy.barsPreLoaderWait();
50
- dragAndDropIntoCategoriesPage.steps.selectResponseOptionsLayout('Grouped');
51
- dragAndDropIntoCategoriesPage.steps.addGroupTitle(0, 'Group A');
52
- dragAndDropIntoCategoriesPage.steps.addOption();
53
- dragAndDropIntoCategoriesPage.steps.addOption();
54
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(groupedOptions[0]);
55
- dragAndDropIntoCategoriesPage.steps.addGroupWithTitleAndOptionsInResponseOptionsSection(1, 'Group B', groupedOptions[1]);
56
- dragAndDropIntoCategoriesPage.steps.allotPoints(20);
57
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
58
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
59
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
60
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
61
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
62
- });
63
-
64
- it('Case: When user has identical options to give as input', () => {
65
- cy.log('Both the identical options should be visible in the draggable response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer section');
66
- dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, groupedOptions[0]);
67
- dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, groupedOptions[1]);
68
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
69
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle']], [1, 2]);
70
-
71
- cy.log('Post-step: Unchecking show correct answer checkbox');
72
- dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
73
-
74
- cy.log('When the user gives the correct answer inputs and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, user should be awarded full points and no correct answer section should be displayed');
75
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
76
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
77
- cy.log('User should be awarded full points')
78
- dragAndDropIntoCategoriesPage.previewScoreText()
79
- .verifyInnerText('20/20');
80
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
81
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
82
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
83
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
84
-
85
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
86
-
87
- cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides correct answer responses and no correct answer section should be displayed');
88
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
89
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
90
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
91
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
92
-
93
- cy.log('When the user attempts the question with the identical option then on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the original option set as correct responses, red cross-mark icon should be displayed against the identical option and user should be awarded 0 points');
94
- dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
95
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
96
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
97
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfPreviewTab('Bat')
98
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
99
- cy.log('User should be awarded 0 points')
100
- dragAndDropIntoCategoriesPage.previewScoreText()
101
- .verifyInnerText('0/20');
102
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
103
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
104
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
105
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat']], [1]);
106
-
107
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
108
-
109
- cy.log('When user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the original options set as correct responses, red cross-mark icon should be displayed against the identical option ')
110
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
111
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
112
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
113
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
114
- });
115
- });
116
- });
@@ -1,160 +0,0 @@
1
- import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
- import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
- import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
- const css = Cypress.env('css');
5
- const identicalOptionArray = ['Bat', 'Eagle', 'Bat'];
6
-
7
- describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
8
- before(() => {
9
- cy.loginAs('admin');
10
- });
11
-
12
- describe('Show correct answer', () => {
13
- abortEarlySetup();
14
- before(() => {
15
- cy.log('Navigating to drag and drop into categories question type');
16
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
17
- cy.barsPreLoaderWait();
18
- dragAndDropIntoCategoriesPage.steps.setQuestion();
19
- });
20
-
21
- dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet()
22
-
23
- it('When the user has set correct answer options and alloted points \'Show correct answer\' checkbox should be displayed and it should be unchecked by default and points for the question should be displayed beside it', () => {
24
- dragAndDropIntoCategoriesPage.steps.switchToEditTab();
25
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
26
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
27
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
28
- dragAndDropIntoCategoriesPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
29
- dragAndDropIntoCategoriesPage.previewScoreText()
30
- .verifyInnerText('0/10');
31
- });
32
-
33
- it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab users response should not persist', () => {
34
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
35
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
36
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
37
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
38
- dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
39
- for (let index = 0; index < 4; index++) {
40
- dragAndDropIntoCategoriesPage.steps.verifyEmptyStateOfCategoryCellInPreviewTab(index);
41
- }
42
- });
43
- });
44
-
45
- describe('Question preview: AutoScored: All or nothing', () => {
46
- abortEarlySetup();
47
- before(() => {
48
- cy.log('Navigating to drag and drop into categories question type');
49
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
50
- cy.barsPreLoaderWait();
51
- dragAndDropIntoCategoriesPage.steps.setQuestion();
52
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
53
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
54
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
55
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
56
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
57
- });
58
-
59
- it('CSS of \'Score\' and \'Show correct answer\'', { tags: 'css' }, () => {
60
- dragAndDropIntoCategoriesPage.previewScoreText()
61
- .verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
62
- dragAndDropIntoCategoriesPage.showCorrectAnswerCheckboxLabel()
63
- .verifyCSS(css.color.labelText, css.fontSize.normal, css.fontWeight.regular);
64
- });
65
-
66
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
67
-
68
- it('CSS of category cell numeration and correct answer section', () => {
69
- dragAndDropIntoCategoriesPage.correctAnswerLabel()
70
- .verifyCSS(css.color.text, css.fontSize.normal, css.fontWeight.regular);
71
- dragAndDropIntoCategoriesPage.correctAnswerCategoryCell()
72
- .should('have.css', 'border', `1px solid ${css.color.correctAnswerContainerBorder}`)
73
- .eq(0)
74
- .within(() => {
75
- dragAndDropIntoCategoriesPage.categoryCellNumeration()
76
- .verifyCSS(css.color.liText, css.fontSize.default, css.fontWeight.regular)
77
- .should('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`)
78
- .and('have.css', 'background-color', `${css.color.titleContainerBg}`);
79
- dragAndDropIntoCategoriesPage.correctAnswerOption()
80
- .verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular)
81
- .should('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`);
82
- });
83
- });
84
-
85
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
86
-
87
- dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingScoring()
88
-
89
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
90
- });
91
-
92
- describe('Question Preview: AutoScored - All or Nothing standard options layout with identical draggable response options in preview tab', () => {
93
- abortEarlySetup();
94
- before(() => {
95
- cy.log('Navigate to drag and drop into categories question type, fill the necessary details and points and switch to preview tab');
96
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
97
- cy.barsPreLoaderWait();
98
- dragAndDropIntoCategoriesPage.addOptionButton()
99
- .click();
100
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(identicalOptionArray);
101
- dragAndDropIntoCategoriesPage.steps.allotPoints(20);
102
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
103
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
104
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
105
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
106
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
107
- });
108
-
109
- it('Case: When user has identical options to give as input', () => {
110
- cy.log('Both the identical options should be visible in the draggable response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer section');
111
- dragAndDropIntoCategoriesPage.steps.verifyDraggableResponsesPreviewTab('drag and drop into categories', identicalOptionArray);
112
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
113
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle']], [1, 2]);
114
-
115
- cy.log('Post-step: Unchecking show correct answer checkbox');
116
- dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
117
-
118
- cy.log('When the user gives the correct answer inputs and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, user should be awarded full points and no correct answer section should be displayed');
119
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
120
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
121
- cy.log('User should be awarded full points')
122
- dragAndDropIntoCategoriesPage.previewScoreText()
123
- .verifyInnerText('20/20');
124
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
125
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
126
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
127
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
128
-
129
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
130
-
131
- cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides correct answer responses and no correct answer section should be displayed');
132
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
133
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
134
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
135
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
136
-
137
- cy.log('When the user attempts the question with the identical option then on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the original option set as correct responses, red cross-mark icon should be displayed against the identical option and user should be awarded 0 points');
138
- dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
139
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
140
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
141
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInResponseContainerOfPreviewTab('Bat');
142
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
143
- cy.log('User should be awarded 0 points')
144
- dragAndDropIntoCategoriesPage.previewScoreText()
145
- .verifyInnerText('0/20');
146
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
147
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
148
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
149
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat']], [1]);
150
-
151
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
152
-
153
- cy.log('When user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the original options set as correct responses, red cross-mark icon should be displayed against the identical option ')
154
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
155
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
156
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
157
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
158
- });
159
- });
160
- });