itemengine-cypress-automation 1.0.189-e2e-execution-crash-83cdbd4.0 → 1.0.190-7thMayFixes-fcaf7b8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +81 -0
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +620 -0
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +402 -0
  4. package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +596 -0
  5. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +162 -0
  6. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +792 -0
  7. package/cypress/e2e/ILC/AudioPlayerNew/studentViewSettings.js +253 -0
  8. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +313 -0
  9. package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +1 -22
  10. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -2
  11. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  12. package/cypress/e2e/ILC/AudioResponseNew/editAndPreviewTabScoringSection.js +1 -1
  13. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +1 -0
  14. package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +4 -20
  15. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  16. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +2 -11
  17. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
  18. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +181 -0
  19. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +283 -0
  20. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +625 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +1 -1
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  23. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
  24. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +0 -3
  25. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
  26. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +0 -4
  27. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +0 -1
  28. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -8
  29. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +4 -24
  30. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -9
  31. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +418 -29
  32. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  33. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +0 -2
  34. package/cypress/e2e/ILC/EssayResponse/headerSection.js +3 -18
  35. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +0 -1
  36. package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +0 -1
  37. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +0 -5
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +0 -4
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +3 -3
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +5 -5
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +0 -4
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  53. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  54. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
  55. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  56. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +1 -2
  57. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
  58. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -3
  59. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  60. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  61. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  62. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  63. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -1
  64. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  65. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -6
  66. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
  67. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
  68. package/cypress/e2e/ILC/GridFill/headerSection.js +4 -5
  69. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  70. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +2 -2
  71. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +143 -0
  72. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +132 -0
  73. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +143 -0
  74. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +144 -0
  75. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +143 -0
  76. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +131 -0
  77. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +87 -0
  78. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +446 -0
  79. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  80. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +276 -0
  81. package/cypress/e2e/ILC/ImageHighlight/checkAnswerFunctionalityForAllViews.smoke.js +141 -0
  82. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +150 -0
  83. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +194 -0
  84. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +195 -0
  85. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +274 -0
  86. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +48 -0
  87. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +144 -0
  88. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +252 -0
  89. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +102 -0
  90. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +256 -0
  91. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +253 -0
  92. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +308 -0
  93. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +151 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +196 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +227 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/additionalSettings.js +91 -0
  98. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +230 -0
  99. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +124 -0
  100. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +221 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/editTabScoring.js +203 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +71 -0
  103. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +197 -0
  104. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +201 -0
  105. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +115 -0
  106. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +183 -0
  107. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
  108. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
  109. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +273 -0
  110. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  111. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +128 -0
  112. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +279 -0
  113. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +109 -0
  114. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +278 -0
  115. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +278 -0
  116. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +335 -0
  117. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +250 -0
  118. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +161 -0
  119. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +216 -0
  120. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +252 -0
  121. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +118 -0
  122. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
  123. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  124. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +155 -0
  125. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +195 -0
  126. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +78 -0
  127. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +69 -0
  128. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  129. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
  130. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +112 -0
  131. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +244 -0
  132. package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
  133. package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
  134. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  135. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
  136. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  137. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +209 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +23 -21
  139. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +5 -3
  140. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +8 -6
  141. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
  142. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +1 -1
  143. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
  144. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +1 -1
  145. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +1 -1
  146. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +60 -3
  147. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
  148. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +2 -9
  149. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  150. package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -4
  151. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +33 -0
  152. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +50 -0
  153. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +2 -2
  154. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -1
  155. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +3 -3
  156. package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
  157. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +1 -1
  158. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +697 -0
  159. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +173 -0
  160. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +211 -0
  161. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +75 -0
  162. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +204 -0
  163. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +231 -0
  164. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +231 -0
  165. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +231 -0
  166. package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +169 -0
  167. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +274 -0
  168. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +433 -0
  169. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +274 -0
  170. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +274 -0
  171. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +249 -0
  172. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +135 -0
  173. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +210 -0
  174. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +248 -0
  175. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +115 -0
  176. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +289 -0
  177. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +154 -0
  178. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +326 -0
  179. package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +234 -0
  180. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +164 -0
  181. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +80 -0
  182. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +204 -0
  183. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +79 -0
  184. package/cypress/e2e/ILC/NumberLineLabel/minimumScoringPenaltyPointsAndRoundingDropdown.js +85 -0
  185. package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +51 -0
  186. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +120 -0
  187. package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +74 -0
  188. package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +183 -0
  189. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +76 -0
  190. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +292 -0
  191. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/checkAnswerFunctionalityForAllViews.smoke.js +155 -0
  192. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +166 -0
  193. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +360 -0
  194. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +80 -0
  195. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +111 -0
  196. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  197. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
  198. package/cypress/e2e/ILC/ShortTextResponseNew/editTabScoringSection.js +1 -1
  199. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -7
  200. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -2
  201. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  202. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -2
  203. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
  204. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
  205. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
  206. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
  207. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
  208. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
  209. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
  210. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  211. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
  212. package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
  213. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +6 -7
  214. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +179 -0
  215. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
  216. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
  217. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
  218. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
  219. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
  220. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
  221. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  222. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  223. package/cypress/e2e/ILC/VideoResponseNew/additionalSettingsBasic.js +77 -0
  224. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +313 -0
  225. package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +99 -0
  226. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +171 -0
  227. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +179 -0
  228. package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +79 -0
  229. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +201 -0
  230. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +567 -0
  231. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +192 -0
  232. package/cypress/fixtures/constants.js +1 -1
  233. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  234. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  235. package/cypress/fixtures/theme/ilc.json +22 -18
  236. package/cypress/pages/audioPlayerPage.js +669 -445
  237. package/cypress/pages/audioResponsePage.js +10 -80
  238. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  239. package/cypress/pages/chartsBarPage.js +517 -0
  240. package/cypress/pages/chartsDotPlotPage.js +8 -0
  241. package/cypress/pages/chartsLinePage.js +42 -0
  242. package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +58 -0
  243. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +19 -26
  244. package/cypress/pages/components/autoScoredStudentViewSettings.js +7 -7
  245. package/cypress/pages/components/barAndLineChartComponent.js +123 -0
  246. package/cypress/pages/components/chartsCommonComponent.js +138 -0
  247. package/cypress/pages/components/commonComponents.js +1 -0
  248. package/cypress/pages/components/draggableOptionContainer.js +2 -1
  249. package/cypress/pages/components/equationEditorFlyout.js +3 -2
  250. package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
  251. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  252. package/cypress/pages/components/imageCanvasComponent.js +5 -4
  253. package/cypress/pages/components/index.js +8 -0
  254. package/cypress/pages/components/layoutSectionComponent.js +1156 -0
  255. package/cypress/pages/components/limitNumberOfRetakeComponent.js +90 -0
  256. package/cypress/pages/components/numberLineCommonComponent.js +685 -0
  257. package/cypress/pages/components/optionsWrapperComponent.js +13 -2
  258. package/cypress/pages/components/playbackControlsBaseComponent.js +20 -13
  259. package/cypress/pages/components/questionInputFieldComponent.js +2 -1
  260. package/cypress/pages/components/questionInstructionsComponent.js +3 -19
  261. package/cypress/pages/components/resetPopupComponent.js +7 -3
  262. package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -17
  263. package/cypress/pages/components/singleMultipleSelectionModeComponent.js +16 -0
  264. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
  265. package/cypress/pages/components/toolSettingsComponent.js +6 -0
  266. package/cypress/pages/contentBlocksPage.js +19 -3
  267. package/cypress/pages/createItemPage.js +75 -8
  268. package/cypress/pages/dialogBoxBase.js +2 -2
  269. package/cypress/pages/dragAndDropIntoCategoriesPage.js +22 -24
  270. package/cypress/pages/drawingResponsePage.js +25 -4
  271. package/cypress/pages/feedbackScalePage.js +3 -0
  272. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -0
  273. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  274. package/cypress/pages/graphingPage.js +19 -1
  275. package/cypress/pages/gridFillPage.js +47 -59
  276. package/cypress/pages/imageHighlightPage.js +364 -0
  277. package/cypress/pages/index.js +6 -1
  278. package/cypress/pages/itemPreviewSettingsPage.js +4 -0
  279. package/cypress/pages/listOrderingPage.js +561 -555
  280. package/cypress/pages/matchingPage.js +3 -2
  281. package/cypress/pages/multipleSelectionPage.js +23 -1
  282. package/cypress/pages/numberLineLabelPage.js +1093 -0
  283. package/cypress/pages/numberLinePage.js +696 -78
  284. package/cypress/pages/protractorPage.js +1 -1
  285. package/cypress/pages/readingRulerPage.js +1 -1
  286. package/cypress/pages/rulerPage.js +9 -5
  287. package/cypress/pages/textEntryMathPage.js +2 -2
  288. package/cypress/pages/textSelectionPage.js +461 -23
  289. package/cypress/pages/videoResponsePage.js +396 -83
  290. package/package.json +1 -1
  291. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
  292. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -0,0 +1,276 @@
1
+ import { dialogBoxBase, imageHighlightPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const grepTags = Cypress.env('grepTags');
6
+ let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
7
+ const views = utilities.getViews(correctAnswerViews);
8
+ var itemReferenceID = "";
9
+
10
+ const flowerHighlightRegion = [[30, 10], [30, 20], [45, 20], [45, 10]];
11
+ const branchesHighlightRegion = [[45, 45], [45, 55], [57, 55], [57, 45]];
12
+ const leafHighlightRegion = [[26, 26], [26, 36], [48, 36], [48, 26]];
13
+
14
+ describe('Create item page - Image highlight: All or nothing ', () => {
15
+ before(() => {
16
+ cy.loginAs('admin');
17
+ });
18
+
19
+ if (!grepTags || !grepTags.includes('smoke')) {
20
+ describe('Question preview modes: Student view and Grading view', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
24
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
25
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
26
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
27
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
28
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
29
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
30
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
31
+ imageHighlightPage.steps.selectMultipleSelectionToggle();
32
+ imageHighlightPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ imageHighlightPage.tests.verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet();
36
+
37
+ it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
38
+ imageHighlightPage.steps.switchToEditTab();
39
+ imageHighlightPage.steps.allotPoints(20);
40
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
41
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
42
+ imageHighlightPage.steps.switchToPreviewTab();
43
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
44
+ });
45
+
46
+ 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', () => {
47
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
48
+ imageHighlightPage.steps.resetQuestionPreview();
49
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(0);
50
+ });
51
+ });
52
+ };
53
+
54
+ //Failing due to https://redmine.zeuslearning.com/issues/571054
55
+ views.forEach((view) => {
56
+ describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
57
+ abortEarlySetup();
58
+ before(() => {
59
+ switch (view) {
60
+ case 'Question preview':
61
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
62
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
63
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
64
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
65
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
66
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
67
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
68
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
69
+ imageHighlightPage.steps.selectMultipleSelectionToggle();
70
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
71
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
72
+ imageHighlightPage.steps.allotPoints(20);
73
+ imageHighlightPage.steps.switchToPreviewTab();
74
+ break;
75
+ case 'Item preview':
76
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
77
+ itemPreviewPage.steps.switchToPreviewTab();
78
+ break;
79
+ case 'Grading view':
80
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
81
+ break;
82
+ };
83
+ });
84
+
85
+ beforeEach(() => {
86
+ switch (view) {
87
+ case 'Question preview':
88
+ imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
89
+ imageHighlightPage.steps.resetQuestionPreview();
90
+ break;
91
+ case 'Item preview':
92
+ imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
93
+ itemPreviewPage.steps.resetQuestionPreview();
94
+ break;
95
+ case 'Grading view':
96
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
97
+ break;
98
+ }
99
+ });
100
+
101
+ if (view === 'Question preview') {
102
+ after(() => {
103
+ imageHighlightPage.steps.clickOnSaveQuestionButton();
104
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
105
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
106
+ });
107
+ };
108
+
109
+ it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
110
+ if (view === 'Grading view') {
111
+ studentViewPage.steps.submitResponse();
112
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
113
+ studentViewPage.steps.clickOnGoToGradingViewButton();
114
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
115
+ };
116
+ if (view === 'Question preview' || view === 'Item preview') {
117
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
118
+ imageHighlightPage.steps.switchToGradingView();
119
+ imageHighlightPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
120
+ };
121
+ imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
122
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
123
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
124
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
125
+ utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
126
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 3'], [1, 2]);
127
+ });
128
+
129
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
130
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
131
+ if (view === 'Grading view') {
132
+ studentViewPage.steps.submitResponse();
133
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
134
+ studentViewPage.steps.clickOnGoToGradingViewButton();
135
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
136
+ };
137
+ if (view === 'Question preview' || view === 'Item preview') {
138
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
139
+ imageHighlightPage.steps.switchToGradingView();
140
+ };
141
+ imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
142
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
143
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
144
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
145
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
146
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 3'], [1, 2]);
147
+ });
148
+
149
+ it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
150
+ if (view === 'Grading view') {
151
+ studentViewPage.steps.clearResponses();
152
+ };
153
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
154
+ if (view === 'Grading view') {
155
+ studentViewPage.steps.submitResponse();
156
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
157
+ studentViewPage.steps.clickOnGoToGradingViewButton();
158
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
159
+ };
160
+ if (view === 'Question preview' || view === 'Item preview') {
161
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
162
+ imageHighlightPage.steps.switchToGradingView();
163
+ };
164
+ imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
165
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
166
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
167
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
168
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
169
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 3'], [1, 2]);
170
+ });
171
+
172
+ it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
173
+ if (view === 'Grading view') {
174
+ studentViewPage.steps.clearResponses();
175
+ };
176
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
177
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
178
+ if (view === 'Grading view') {
179
+ studentViewPage.steps.submitResponse();
180
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
181
+ studentViewPage.steps.clickOnGoToGradingViewButton();
182
+ gradingViewPage.steps.verifyGradingViewScore(0, 20);
183
+ };
184
+ if (view === 'Question preview' || view === 'Item preview') {
185
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
186
+ imageHighlightPage.steps.switchToGradingView();
187
+ };
188
+ imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
189
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
190
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
191
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
192
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
193
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 3'], [1, 2]);
194
+ });
195
+
196
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
197
+ if (view === 'Grading view') {
198
+ studentViewPage.steps.clearResponses();
199
+ };
200
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
201
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
202
+ if (view === 'Grading view') {
203
+ studentViewPage.steps.submitResponse();
204
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
205
+ studentViewPage.steps.clickOnGoToGradingViewButton();
206
+ gradingViewPage.steps.verifyGradingViewScore(20, 20);
207
+ };
208
+ if (view === 'Question preview' || view === 'Item preview') {
209
+ imageHighlightPage.steps.verifyPreviewScore(20, 20);
210
+ imageHighlightPage.steps.switchToGradingView();
211
+ imageHighlightPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
212
+ };
213
+ imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
214
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
215
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
216
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
217
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
218
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
219
+ });
220
+ });
221
+ });
222
+
223
+ if (!grepTags || !grepTags.includes('smoke')) {
224
+ describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
225
+ abortEarlySetup();
226
+ before(() => {
227
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
228
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
229
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
230
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
231
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
232
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
233
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
234
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
235
+ imageHighlightPage.steps.selectMultipleSelectionToggle();
236
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
237
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
238
+ imageHighlightPage.steps.allotPoints(20);
239
+ });
240
+
241
+ it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
242
+ imageHighlightPage.steps.expandMinimumScoringDropdown();
243
+ imageHighlightPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
244
+ imageHighlightPage.steps.allotMinimumPoints(2);
245
+ imageHighlightPage.steps.switchToPreviewTab();
246
+ imageHighlightPage.steps.switchToGradingView();
247
+ imageHighlightPage.steps.verifyPreviewScore(2, 20);
248
+ imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
249
+ });
250
+
251
+ it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
252
+ imageHighlightPage.steps.resetQuestionPreview();
253
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
254
+ imageHighlightPage.steps.verifyPreviewScore(2, 20);
255
+ imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
+ });
257
+
258
+ it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
259
+ imageHighlightPage.steps.switchToEditTab();
260
+ imageHighlightPage.steps.expandMinimumScoringDropdown();
261
+ imageHighlightPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
262
+ imageHighlightPage.steps.allotMinimumPoints(2);
263
+ imageHighlightPage.steps.switchToPreviewTab();
264
+ imageHighlightPage.steps.switchToGradingView();
265
+ imageHighlightPage.steps.verifyPreviewScore(0, 20);
266
+ imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
267
+ });
268
+
269
+ it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
270
+ imageHighlightPage.steps.resetQuestionPreview();
271
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
272
+ imageHighlightPage.steps.verifyPreviewScore(2, 20);
273
+ });
274
+ });
275
+ };
276
+ });
@@ -0,0 +1,141 @@
1
+ import { imageHighlightPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ var itemReferenceID = "";
5
+ const checkAnswerViews = ['Question preview', 'Item preview', 'Student view'];
6
+ const views = utilities.getViews(checkAnswerViews);
7
+ const flowerHighlightRegion = [[30, 10], [30, 20], [45, 20], [45, 10]];
8
+ const branchesHighlightRegion = [[45, 45], [45, 55], [57, 55], [57, 45]];
9
+ const leafHighlightRegion = [[26, 26], [26, 36], [48, 36], [48, 26]];
10
+
11
+ describe('Create item page - Image highlight - Check answer functionality', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ views.forEach((view) => {
17
+ //Note: Remove after https://redmine.zeuslearning.com/issues/549542 is fixed
18
+ const checkAnswer = (view) => {
19
+ switch (view) {
20
+ case 'Question preview':
21
+ case 'Item preview':
22
+ imageHighlightPage.steps.checkAnswer();
23
+ break;
24
+ case 'Student view':
25
+ studentViewPage.steps.checkAnswer();
26
+ break;
27
+ default:
28
+ throw new Error(`Unsupported page identifier: ${view}`);
29
+ }
30
+ };
31
+
32
+ describe(`${view} - Check answer functionality`, { tags: 'smoke' }, () => {
33
+ abortEarlySetup();
34
+ before(() => {
35
+ switch (view) {
36
+ case 'Question preview':
37
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
38
+ cy.barsPreLoaderWait();
39
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
40
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
41
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
42
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
43
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
44
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
45
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
46
+ imageHighlightPage.steps.selectMultipleSelectionToggle();
47
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
48
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
49
+ imageHighlightPage.steps.allotPoints(20);
50
+ imageHighlightPage.steps.checkAllowStudentToCheckAnswerCheckbox();
51
+ imageHighlightPage.steps.switchToPreviewTab();
52
+ break;
53
+ case 'Item preview':
54
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
55
+ itemPreviewPage.steps.switchToPreviewTab();
56
+ break;
57
+ case 'Student view':
58
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
59
+ break;
60
+ }
61
+ });
62
+
63
+ beforeEach(() => {
64
+ switch (view) {
65
+ case 'Question preview':
66
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
67
+ imageHighlightPage.steps.resetQuestionPreview();
68
+ break;
69
+ case 'Item preview':
70
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
71
+ itemPreviewPage.steps.resetQuestionPreview();
72
+ break;
73
+ case 'Student view':
74
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
75
+ break;
76
+ }
77
+ });
78
+
79
+ if (view === 'Question preview') {
80
+ after(() => {
81
+ imageHighlightPage.steps.clickOnSaveQuestionButton();
82
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
83
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
84
+ });
85
+ };
86
+
87
+ it('When the user selects \'Check answer\' button without attempting the question, then correct/incorrect icons, correct/incorrect answer status message, correct answer section and highlight regions should not be displayed', () => {
88
+ checkAnswer(view);
89
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
90
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
91
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
92
+ utilities.verifyElementVisibilityState(imageHighlightPage.crossMarkIcon(), 'notExist');
93
+ utilities.verifyElementVisibilityState(imageHighlightPage.checkMarkIcon(), 'notExist');
94
+ utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
95
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
96
+ });
97
+
98
+ it('When the user attempts the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' should be displayed. Correct answer section should not be displayed', () => {
99
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
100
+ checkAnswer(view);
101
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
102
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
103
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
104
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
105
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
106
+ });
107
+
108
+ it('When the user attempts the question partially correct and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct icons should be displayed besides correct responses, a status message with text \'Your answer is incorrect\' should be displayed. Correct answer section should not be displayed', () => {
109
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
110
+ checkAnswer(view);
111
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
112
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
113
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
114
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
115
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
116
+ });
117
+
118
+ it('When the user attempts the question partially correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
119
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
120
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
121
+ checkAnswer(view);
122
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
123
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
124
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
125
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
126
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
127
+ });
128
+
129
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
130
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
131
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
132
+ checkAnswer(view);
133
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
134
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
135
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
136
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
137
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
138
+ });
139
+ });
140
+ });
141
+ });
@@ -0,0 +1,150 @@
1
+ import { imageHighlightPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+ const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
6
+ const views = utilities.getViews(previewContentViews);
7
+ var itemReferenceID = "";
8
+
9
+ const flowerHighlightRegion = [[30, 10], [30, 20], [45, 20], [45, 10]];
10
+ const branchesHighlightRegion = [[45, 45], [45, 55], [57, 55], [57, 45]];
11
+ const leafHighlightRegion = [[26, 26], [26, 36], [48, 36], [48, 26]];
12
+
13
+ describe('Create item page - Image highlight - Preview contents in all views', () => {
14
+ before(() => {
15
+ cy.loginAs('admin');
16
+ });
17
+
18
+ views.forEach((view) => {
19
+ describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
20
+ abortEarlySetup();
21
+ before(() => {
22
+ switch (view) {
23
+ case 'Question preview':
24
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
25
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
26
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
27
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
28
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
29
+ imageHighlightPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
30
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
31
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
32
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
33
+ imageHighlightPage.steps.selectMultipleSelectionToggle();
34
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
35
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
36
+ imageHighlightPage.steps.allotPoints(10);
37
+ imageHighlightPage.steps.switchToPreviewTab();
38
+ break;
39
+ case 'Item view':
40
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
41
+ break;
42
+ case 'Item preview':
43
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
44
+ imageHighlightPage.steps.switchToPreviewTab();
45
+ break;
46
+ case 'Student view':
47
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
48
+ break;
49
+ case 'Grading view':
50
+ cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
51
+ break;
52
+ case 'Correct answer view':
53
+ cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
54
+ break;
55
+ default:
56
+ throw new Error('Invalid view');
57
+ }
58
+ });
59
+
60
+ after(() => {
61
+ if (view === 'Question preview') {
62
+ imageHighlightPage.steps.clickOnSaveQuestionButton();
63
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
64
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
65
+ }
66
+ if (view === 'Student view') {
67
+ studentViewPage.steps.submitResponse();
68
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
69
+ }
70
+ });
71
+
72
+ it('Question instructions should be visible', () => {
73
+ utilities.verifyInnerText(imageHighlightPage.questionInstructionsText(), 'Select the appropriate highlight in the image below');
74
+ utilities.verifyElementVisibilityState(imageHighlightPage.questionInstructionsText(), 'visible');
75
+ });
76
+
77
+ it('The uploaded image should be displayed and the highlighted sections should be present in the preview tab', () => {
78
+ imageHighlightPage.steps.verifyImageUploadedPreviewTab();
79
+ imageHighlightPage.steps.verifyHighlightRegionCountInPreviewTab(3);
80
+ imageHighlightPage.steps.verifyImageUploadedAltTextPreviewTab('Image alternative text');
81
+ imageHighlightPage.steps.verifyImageUploadedWidthAndHeightPreviewTab('768', '432');
82
+ imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
83
+ imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, branchesHighlightRegion);
84
+ imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, leafHighlightRegion);
85
+ });
86
+
87
+ if (view !== 'Grading view' && view !== 'Correct answer view') {
88
+ it('By default the highlighted sections should be hidden and when the user hovers over any highlighted section it should be visible', () => {
89
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
90
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
91
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
92
+ utilities.hoverOverElement(utilities.getNthElement(imageHighlightPage.highlightPreviewTab(), 0))
93
+ imageHighlightPage.steps.verifyHoverStateOfHighlightRegion(0);
94
+ utilities.hoverAwayFromElement();
95
+ });
96
+
97
+ it('User should be able to select or de-select any highlighted section', () => {
98
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
99
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
100
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(0);
101
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(1);
102
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(2);
103
+ imageHighlightPage.steps.removeHighlightOfARegionInPreviewTab(0);
104
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(0);
105
+ imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(1);
106
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(2);
107
+ });
108
+ } else if (view === 'Grading view') {
109
+ it('The highlight regions should be displayed', () => {
110
+ imageHighlightPage.steps.verifyHoverStateOfHighlightRegion(0);
111
+ imageHighlightPage.steps.verifyHoverStateOfHighlightRegion(2);
112
+ });
113
+
114
+ it('User should not be able to select, de-select any highlight sections', () => {
115
+ imageHighlightPage.steps.clickOnARegionInPreviewTab(0);
116
+ imageHighlightPage.steps.clickOnARegionInPreviewTab(2);
117
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(0);
118
+ imageHighlightPage.steps.verifyRegionIsNotHighlightedPreviewTab(2);
119
+ });
120
+ } else {
121
+ it('The highlight regions should be displayed with correct answers', () => {
122
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
123
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
124
+ });
125
+ }
126
+
127
+ it('CSS of highlight region in preview tab in default, hover and active state', { tags: 'css' }, () => {
128
+ cy.log('Default state')
129
+ utilities.verifyCSS(imageHighlightPage.highlightPolygonPreviewTab().eq(2), {
130
+ 'color': css.color.successBtn,
131
+ 'stroke': css.color.transparent,
132
+ });
133
+ cy.log('Active state')
134
+ utilities.verifyCSS(imageHighlightPage.highlightPolygonPreviewTab().eq(1), {
135
+ 'stroke': css.color.activeHighlightBorder,
136
+ });
137
+ cy.log('Hover state')
138
+ utilities.hoverOverElement(imageHighlightPage.highlightPreviewTab().eq(0))
139
+ utilities.verifyCSS(imageHighlightPage.highlightPolygonPreviewTab().eq(0), {
140
+ 'stroke': css.color.hoverHighlightBorder,
141
+ });
142
+ utilities.hoverAwayFromElement();
143
+ });
144
+
145
+ it('Accessibility of preview tab highlight regions', { tags: 'a11y' }, () => {
146
+ cy.checkAccessibility(imageHighlightPage.highlightPreviewTab());
147
+ });
148
+ });
149
+ });
150
+ });