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,418 +0,0 @@
1
- import { shortTextResponsePage } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- const css = Cypress.env('css');
4
-
5
- describe('Create Item page - Short text response: Scoring Section', () => {
6
- before(() => {
7
- cy.loginAs('admin');
8
- });
9
-
10
- describe('Show correct answer', () => {
11
- abortEarlySetup();
12
- before(() => {
13
- shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
14
- });
15
-
16
- shortTextResponsePage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet();
17
-
18
- it('When the user has set correct answer response 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', () => {
19
- shortTextResponsePage.steps.switchToEditTab();
20
- shortTextResponsePage.setCorrectAnswerResponseField()
21
- .type('Response');
22
- shortTextResponsePage.steps.allotPoints(20);
23
- shortTextResponsePage.steps.switchToPreviewTab();
24
- shortTextResponsePage.showCorrectAnswerCheckbox()
25
- .should('not.be.checked')
26
- .parents('.MuiIconButton-label')
27
- .should('be.visible');
28
- shortTextResponsePage.showCorrectAnswerCheckboxLabel()
29
- .verifyInnerText('Show correct answer');
30
- cy.log('Checking total points displayed')
31
- shortTextResponsePage.previewScoreText()
32
- .verifyInnerText('0/20');
33
- });
34
-
35
- 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', () => {
36
- cy.log('Attempting the question in preview tab to verify')
37
- shortTextResponsePage.previewTabResponseField()
38
- .type('Response')
39
- .should('have.value', 'Response');
40
- cy.log('Re-switching to Preview tab and checking response field')
41
- shortTextResponsePage.steps.switchToEditTab();
42
- shortTextResponsePage.steps.switchToPreviewTab();
43
- shortTextResponsePage.previewTabResponseField()
44
- .should('have.value', '');
45
- });
46
-
47
- it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/Incorrect answer label and border should not be displayed, correct answer container along with correct response should be displayed below the question field', () => {
48
- shortTextResponsePage.showCorrectAnswerCheckbox()
49
- .click()
50
- .should('be.checked');
51
- shortTextResponsePage.correctIcon()
52
- .should('not.exist');
53
- shortTextResponsePage.incorrectIcon()
54
- .should('not.exist');
55
- shortTextResponsePage.correctIncorectAnswerLabel()
56
- .should('not.exist');
57
- shortTextResponsePage.correctIncorrectAnswerBorder()
58
- .should('not.exist');
59
- shortTextResponsePage.correctIncorectAnswerLabel()
60
- .should('not.exist');
61
- shortTextResponsePage.previewTabCorrectAnswerContainer()
62
- .should('be.visible');
63
- shortTextResponsePage.previewTabCorrectAnswerLabel()
64
- .verifyInnerText('Correct answer:');
65
- shortTextResponsePage.previewTabCorrectAnswerResponse()
66
- .verifyInnerText('Response');
67
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
68
- });
69
- });
70
-
71
- describe('Question Preview: AutoScored - All or Nothing', () => {
72
- abortEarlySetup();
73
- before(() => {
74
- cy.log('Navigating to Short text response question type, adding correct answer response and points, and switching to Preview tab');
75
- shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
76
- shortTextResponsePage.setCorrectAnswerResponseField()
77
- .type('Response');
78
- shortTextResponsePage.steps.allotPoints(20);
79
- shortTextResponsePage.steps.expandAdditonalSettings();
80
- shortTextResponsePage.allowStudentsToCheckAnswerCheckbox()
81
- .click();
82
- shortTextResponsePage.steps.switchToPreviewTab();
83
- });
84
-
85
- it('Case: When user adds incorrect response', () => {
86
- shortTextResponsePage.previewTabResponseField()
87
- .type('Incorrect');
88
- cy.log('User should be awarded 0 points');
89
- shortTextResponsePage.previewScoreText()
90
- .verifyInnerText('0/20');
91
- cy.log('When the user selects \'Show correct answer\' checkbox, red cross-mark icon should be displayed besides the incorrect answer input field, incorrect answer label and border should not be displayed below the question field and the correct answer container with the correct answer should be displayed');
92
- shortTextResponsePage.showCorrectAnswerCheckbox()
93
- .click();
94
- shortTextResponsePage.steps.verifyIncorrectOptionCrossmarkIcon();
95
- shortTextResponsePage.correctIncorrectAnswerBorder()
96
- .should('not.exist');
97
- shortTextResponsePage.correctIncorectAnswerLabel()
98
- .should('not.exist');
99
- cy.log('The correct answer container with the correct answer should be displayed')
100
- shortTextResponsePage.previewTabCorrectAnswerContainer()
101
- .should('be.visible');
102
- shortTextResponsePage.previewTabCorrectAnswerResponse()
103
- .verifyInnerText('Response');
104
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
105
- cy.log('When the user clicks on \'Check answer\' button, red cross-mark icon should be displayed besides the response fields, Incorrect answer label and border should not be displayed and no correct answer container should be displayed')
106
- shortTextResponsePage.checkAnswerButton()
107
- .click();
108
- shortTextResponsePage.steps.verifyIncorrectOptionCrossmarkIcon();
109
- shortTextResponsePage.correctIncorrectAnswerBorder()
110
- .should('not.exist');
111
- shortTextResponsePage.correctIncorectAnswerLabel()
112
- .should('not.exist');
113
- shortTextResponsePage.previewTabCorrectAnswerContainer()
114
- .should('not.exist');
115
- });
116
-
117
- shortTextResponsePage.tests.verifyCSSAndA11yOfIncorrectAnswerLabel('short text response');
118
-
119
- it('Case: When user adds correct response', () => {
120
- cy.log('Adding correct response')
121
- shortTextResponsePage.previewTabResponseField()
122
- .clear()
123
- .type('Response');
124
- cy.log('User should be awarded with full points')
125
- shortTextResponsePage.previewScoreText()
126
- .verifyInnerText('20/20');
127
- cy.log('When the user selects the \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the response field, correct answer label and border should not be displayed below the question field, correct answer container should not be displayed and user should be awarded with full points');
128
- shortTextResponsePage.showCorrectAnswerCheckbox()
129
- .click();
130
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
131
- shortTextResponsePage.correctIncorrectAnswerBorder()
132
- .should('not.exist');
133
- shortTextResponsePage.correctIncorectAnswerLabel()
134
- .should('not.exist');
135
- shortTextResponsePage.previewTabCorrectAnswerContainer()
136
- .should('not.exist');
137
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
138
- cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the response fields, Incorrect answer label and border should not be displayed and no correct answer container should be displayed')
139
- shortTextResponsePage.checkAnswerButton()
140
- .click();
141
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
142
- shortTextResponsePage.correctIncorrectAnswerBorder()
143
- .should('not.exist');
144
- shortTextResponsePage.correctIncorectAnswerLabel()
145
- .should('not.exist');
146
- shortTextResponsePage.previewTabCorrectAnswerContainer()
147
- .should('not.exist');
148
- });
149
-
150
- shortTextResponsePage.tests.verifyCSSAndA11yOfCorrectAnswerIcon();
151
-
152
- shortTextResponsePage.tests.verifyCSSAndA11yOfFullScoreTextAndCorrectAnswerLabel('short text response');
153
-
154
- shortTextResponsePage.tests.verifyMinimumScoreAwardedForIncorrectAnswer('20');
155
- });
156
-
157
- describe('Question Preview: AutoScored - All or Nothing with alternate answer', () => {
158
- abortEarlySetup();
159
- before(() => {
160
- cy.log('Navigating to Short text response question type, adding correct answer response and alternate answer response for autoscored - all or nothing scoring, adding points and switching to Preview tab');
161
- shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
162
- shortTextResponsePage.setCorrectAnswerResponseField()
163
- .type('Response 1');
164
- shortTextResponsePage.steps.allotPoints(7);
165
- shortTextResponsePage.alternateAnswerButton()
166
- .click();
167
- shortTextResponsePage.setCorrectAnswerResponseField()
168
- .type('Response 2');
169
- shortTextResponsePage.steps.allotPoints(3);
170
- shortTextResponsePage.steps.expandAdditonalSettings();
171
- shortTextResponsePage.allowStudentsToCheckAnswerCheckbox()
172
- .click();
173
- shortTextResponsePage.steps.switchToPreviewTab();
174
- });
175
-
176
- it('Alternate answer case: When Alternate Answer points are less than Correct Answer points', () => {
177
- cy.log('The points displayed should be equal to correct answer points');
178
- shortTextResponsePage.previewScoreText()
179
- .verifyInnerText('0/7');
180
- cy.log('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct response from the correct tab');
181
- shortTextResponsePage.showCorrectAnswerCheckbox()
182
- .click();
183
- shortTextResponsePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount('Response 1');
184
- shortTextResponsePage.correctIcon()
185
- .should('not.exist');
186
- shortTextResponsePage.incorrectIcon()
187
- .should('not.exist');
188
- shortTextResponsePage.correctIncorrectAnswerBorder()
189
- .should('not.exist');
190
- shortTextResponsePage.correctIncorectAnswerLabel()
191
- .should('not.exist');
192
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
193
-
194
- cy.log('When the user enters correct answer set response, points specified for correct answer set (full points) should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed')
195
- shortTextResponsePage.previewTabResponseField()
196
- .type('Response 1');
197
- cy.log('User should be awarded with full points')
198
- shortTextResponsePage.previewScoreText()
199
- .verifyInnerText('7/7');
200
- shortTextResponsePage.showCorrectAnswerCheckbox()
201
- .click();
202
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
203
- shortTextResponsePage.correctIncorrectAnswerBorder()
204
- .should('not.exist');
205
- shortTextResponsePage.correctIncorectAnswerLabel()
206
- .should('not.exist');
207
- shortTextResponsePage.previewTabCorrectAnswerContainer()
208
- .should('not.exist');
209
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
210
-
211
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response fields, correct answer label and border should not be displayed, correct answer container should not be displayed')
212
- shortTextResponsePage.checkAnswerButton()
213
- .click();
214
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
215
- shortTextResponsePage.correctIncorrectAnswerBorder()
216
- .should('not.exist');
217
- shortTextResponsePage.correctIncorectAnswerLabel()
218
- .should('not.exist');
219
- shortTextResponsePage.previewTabCorrectAnswerContainer()
220
- .should('not.exist');
221
-
222
- cy.log('When the user enters alternate correct answer response, points specified for alternate correct answers (less than overall points) should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response fields, correct answer label and border should not be displayed below the question field and correct answer container should not be displayed');
223
- shortTextResponsePage.previewTabResponseField()
224
- .clear()
225
- .type('Response 2');
226
- cy.log('User should be awarded points (less than overall) allocated for the Alternate correct answer tab');
227
- shortTextResponsePage.previewScoreText()
228
- .verifyInnerText('3/7');
229
- shortTextResponsePage.showCorrectAnswerCheckbox()
230
- .click();
231
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
232
- shortTextResponsePage.correctIncorrectAnswerBorder()
233
- .should('not.exist');
234
- shortTextResponsePage.correctIncorectAnswerLabel()
235
- .should('not.exist');
236
- shortTextResponsePage.previewTabCorrectAnswerContainer()
237
- .should('not.exist');
238
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
239
-
240
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed below the below the question field and correct answer container should not be displayed');
241
- shortTextResponsePage.checkAnswerButton()
242
- .click();
243
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
244
- shortTextResponsePage.correctIncorrectAnswerBorder()
245
- .should('not.exist');
246
- shortTextResponsePage.correctIncorectAnswerLabel()
247
- .should('not.exist');
248
- shortTextResponsePage.previewTabCorrectAnswerContainer()
249
- .should('not.exist');
250
- });
251
-
252
- it('Alternate answer case: When Alternate answer points are more than correct answer points', () => {
253
- cy.log('Pre step: Switching to Edit tab and adding Alternate answer points more than correct answer points')
254
- shortTextResponsePage.steps.switchToEditTab();
255
- shortTextResponsePage.pointsInputField()
256
- .clear();
257
- shortTextResponsePage.steps.allotPoints(10);
258
- shortTextResponsePage.steps.switchToPreviewTab();
259
- cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate answer points')
260
- shortTextResponsePage.previewScoreText()
261
- .verifyInnerText('0/10')
262
- cy.log('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct response from the Alternate tab')
263
- shortTextResponsePage.showCorrectAnswerCheckbox()
264
- .click();
265
- shortTextResponsePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount('Response 2');
266
- shortTextResponsePage.correctIncorectAnswerLabel()
267
- .should('not.exist');
268
- shortTextResponsePage.correctIcon()
269
- .should('not.exist');
270
- shortTextResponsePage.incorrectIcon()
271
- .should('not.exist');
272
- shortTextResponsePage.correctIncorrectAnswerBorder()
273
- .should('not.exist');
274
- shortTextResponsePage.correctIncorectAnswerLabel()
275
- .should('not.exist');
276
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
277
-
278
- cy.log('When the user enters correct answer set response, points specified for correct answer set should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed')
279
- shortTextResponsePage.previewTabResponseField()
280
- .type('Response 1');
281
- shortTextResponsePage.previewScoreText()
282
- .verifyInnerText('7/10');
283
- shortTextResponsePage.showCorrectAnswerCheckbox()
284
- .click();
285
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
286
- shortTextResponsePage.correctIncorrectAnswerBorder()
287
- .should('not.exist');
288
- shortTextResponsePage.correctIncorectAnswerLabel()
289
- .should('not.exist');
290
- shortTextResponsePage.previewTabCorrectAnswerContainer()
291
- .should('not.exist')
292
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
293
-
294
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed')
295
- shortTextResponsePage.checkAnswerButton()
296
- .click();
297
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
298
- shortTextResponsePage.correctIncorrectAnswerBorder()
299
- .should('not.exist');
300
- shortTextResponsePage.correctIncorectAnswerLabel()
301
- .should('not.exist');
302
- shortTextResponsePage.previewTabCorrectAnswerContainer()
303
- .should('not.exist');
304
-
305
- cy.log('When the user enters alternate correct answer response, points specified for alternate correct answers (more than overall points) should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
306
- shortTextResponsePage.previewTabResponseField()
307
- .clear()
308
- .type('Response 2');
309
- cy.log('User should be awarded with full points');
310
- shortTextResponsePage.previewScoreText()
311
- .verifyInnerText('10/10');
312
- shortTextResponsePage.showCorrectAnswerCheckbox()
313
- .click();
314
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
315
- shortTextResponsePage.correctIncorrectAnswerBorder()
316
- .should('not.exist');
317
- shortTextResponsePage.correctIncorectAnswerLabel()
318
- .should('not.exist');
319
- shortTextResponsePage.previewTabCorrectAnswerContainer()
320
- .should('not.exist')
321
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
322
-
323
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
324
- shortTextResponsePage.checkAnswerButton()
325
- .click();
326
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
327
- shortTextResponsePage.correctIncorrectAnswerBorder()
328
- .should('not.exist');
329
- shortTextResponsePage.correctIncorectAnswerLabel()
330
- .should('not.exist');
331
- shortTextResponsePage.previewTabCorrectAnswerContainer()
332
- .should('not.exist');
333
- });
334
-
335
- it('Alternate answer case: When Alternate Answer points and Correct Answer points both are equal', () => {
336
- cy.log('Pre step: Switching to Edit tab and alloting points of Alternate answer equal to correct answer')
337
- shortTextResponsePage.steps.switchToEditTab();
338
- shortTextResponsePage.pointsInputField()
339
- .clear();
340
- shortTextResponsePage.steps.allotPoints(7);
341
- shortTextResponsePage.steps.switchToPreviewTab();
342
- cy.log('Checking total points displayed')
343
- shortTextResponsePage.previewScoreText()
344
- .verifyInnerText('0/7');
345
-
346
- cy.log('When the user selects the \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct response from the correct tab and Correct/Incorrect answer label and border should not be displayed')
347
- shortTextResponsePage.showCorrectAnswerCheckbox()
348
- .click();
349
- shortTextResponsePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount('Response 1');
350
- shortTextResponsePage.correctIncorectAnswerLabel()
351
- .should('not.exist');
352
- shortTextResponsePage.correctIcon()
353
- .should('not.exist');
354
- shortTextResponsePage.incorrectIcon()
355
- .should('not.exist');
356
- shortTextResponsePage.correctIncorrectAnswerBorder()
357
- .should('not.exist');
358
- shortTextResponsePage.correctIncorectAnswerLabel()
359
- .should('not.exist');
360
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
361
-
362
- cy.log('When the user enters correct answer response, points specified for correct answer set (full points) should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
363
- shortTextResponsePage.previewTabResponseField()
364
- .type('Response 1');
365
- cy.log('User should be awarded with full points')
366
- shortTextResponsePage.previewScoreText()
367
- .verifyInnerText('7/7');
368
- shortTextResponsePage.showCorrectAnswerCheckbox()
369
- .click();
370
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
371
- shortTextResponsePage.previewTabCorrectAnswerContainer()
372
- .should('not.exist');
373
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
374
-
375
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
376
- shortTextResponsePage.checkAnswerButton()
377
- .click();
378
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
379
- shortTextResponsePage.correctIncorrectAnswerBorder()
380
- .should('not.exist');
381
- shortTextResponsePage.correctIncorectAnswerLabel()
382
- .should('not.exist');
383
- shortTextResponsePage.previewTabCorrectAnswerContainer()
384
- .should('not.exist');
385
-
386
- cy.log('When the user enters alternate correct answer response, points specified for alternate correct answers (full points) should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
387
- shortTextResponsePage.previewTabResponseField()
388
- .clear()
389
- .type('Response 2');
390
- cy.log('User should be awarded with full points')
391
- shortTextResponsePage.previewScoreText()
392
- .verifyInnerText('7/7');
393
- shortTextResponsePage.showCorrectAnswerCheckbox()
394
- .click();
395
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
396
- shortTextResponsePage.correctIncorrectAnswerBorder()
397
- .should('not.exist');
398
- shortTextResponsePage.correctIncorectAnswerLabel()
399
- .should('not.exist');
400
- shortTextResponsePage.previewTabCorrectAnswerContainer()
401
- .should('not.exist');
402
- shortTextResponsePage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
403
-
404
- cy.log('When the user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides response field, correct answer label and border should not be displayed and correct answer container should not be displayed');
405
- shortTextResponsePage.checkAnswerButton()
406
- .click();
407
- shortTextResponsePage.steps.verifyCorrectOptionCheckmarkIcon();
408
- shortTextResponsePage.correctIncorrectAnswerBorder()
409
- .should('not.exist');
410
- shortTextResponsePage.correctIncorectAnswerLabel()
411
- .should('not.exist');
412
- shortTextResponsePage.previewTabCorrectAnswerContainer()
413
- .should('not.exist');
414
- });
415
-
416
- shortTextResponsePage.tests.verifyMinimumScoreAwardedForIncorrectAnswer('7');
417
- });
418
- });