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
@@ -131,7 +131,6 @@ describe('Create Item page - Short text response : Student view settings', () =>
131
131
  describe('Student view settings : Display character count, Display word count - Preview tab functionality', () => {
132
132
  abortEarlySetup();
133
133
  before(() => {
134
- cy.log('Navigating to drawing response question type');
135
134
  shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
136
135
  cy.barsPreLoaderWait();
137
136
  shortTextResponsePage.steps.switchToPreviewTab();
@@ -318,7 +317,7 @@ describe('Create Item page - Short text response : Student view settings', () =>
318
317
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
319
318
  shortTextResponsePage.steps.switchToEditTab();
320
319
  shortTextResponsePage.steps.expandMaxCheckAnswerAttemptsDropdown();
321
- shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
320
+ shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
322
321
  shortTextResponsePage.steps.switchToPreviewTab();
323
322
  shortTextResponsePage.steps.verifyCheckAnswerButtonEnabled();
324
323
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower');
@@ -172,7 +172,7 @@ describe('Create item page - single selection grid: Student view settings', () =
172
172
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer single times', () => {
173
173
  singleSelectionGridPage.steps.switchToEditTab();
174
174
  singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
175
- singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
175
+ singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
176
176
  singleSelectionGridPage.steps.switchToPreviewTab();
177
177
  singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
178
178
  singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
@@ -26,8 +26,8 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
26
26
  });
27
27
 
28
28
  it('When the user enters a numeric value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
29
- textEntryMathPage.steps.focusInAndFocusOutOfResponseAnswerInputFieldSpecifyCorrectAnswer(0);
30
- textEntryMathPage.steps.enterTextInPreviewInputField(0, '90');
29
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
30
+ textEntryMathPage.steps.enterTextInPreviewInputField('90');
31
31
  equationEditorFlyout.steps.clickOnOkButton();
32
32
  textEntryMathPage.steps.switchToPreviewTab();
33
33
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -155,9 +155,9 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
155
155
  it('In response accordion \'Answers\' label and one empty answer input field should be displayed', () => {
156
156
  utilities.verifyInnerText(textEntryMathPage.answersLabel(), 'Answers');
157
157
  utilities.verifyElementVisibilityState(textEntryMathPage.answersLabel(), 'visible');
158
- utilities.verifyInnerText(textEntryMathPage.answersInputField(), '');
159
- utilities.verifyElementVisibilityState(textEntryMathPage.answersInputField(), 'visible');
160
- utilities.verifyElementCount(textEntryMathPage.answersInputField(), 1);
158
+ utilities.verifyInnerText(textEntryMathPage.responseAccordionAnswerInputField(), '');
159
+ utilities.verifyElementVisibilityState(textEntryMathPage.responseAccordionAnswerInputField(), 'visible');
160
+ utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 1);
161
161
  });
162
162
 
163
163
  it('When there is a single answer input field, then input field numeration and its delete button should not be displayed', () => {
@@ -353,10 +353,10 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
353
353
  } else {
354
354
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.ignoreUnitCoefficient), 'notExist');
355
355
  }
356
- if (evaluationMethod.customSettings.includes('Check for parenthesis grouping')) {
356
+ if (evaluationMethod.customSettings.includes('Check for parenthesis groups')) {
357
357
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'visible');
358
358
  textEntryMathPage.steps.verifyCustomSettingsCheckboxIsUnchecked(customSettingsIds.checkForParenthesisGrouping);
359
- textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis grouping');
359
+ textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis groups');
360
360
  } else {
361
361
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'notExist');
362
362
  }
@@ -10,7 +10,6 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Alternate Answer points are more than Correct Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
- cy.log('Navigating to Text selection question type');
14
13
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
15
14
  cy.barsPreLoaderWait();
16
15
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,7 +10,6 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are equal to Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
- cy.log('Navigating to Text selection question type');
14
13
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
15
14
  cy.barsPreLoaderWait();
16
15
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,7 +10,6 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are more than Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
- cy.log('Navigating to Text selection question type');
14
13
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
15
14
  cy.barsPreLoaderWait();
16
15
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -16,7 +16,6 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
16
16
  describe('Question Preview: Custom text selection type with All or nothing scoring', () => {
17
17
  abortEarlySetup();
18
18
  before(() => {
19
- cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
20
19
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
21
20
  cy.barsPreLoaderWait();
22
21
  textSelectionPage.steps.addQuestionInstructions();
@@ -0,0 +1,125 @@
1
+ import { textSelectionPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const fontSizeDropdownOptions = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
6
+ const fontSizes = ['12px', '14px', '16px', '18px', '22px', '26px'];
7
+ const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.'];
8
+
9
+ describe('Create Item page - Text selection : Additional settings', () => {
10
+ before(() => {
11
+ cy.loginAs('admin');
12
+ });
13
+
14
+ describe('Additional Settings accordion', () => {
15
+ abortEarlySetup();
16
+ before(() => {
17
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
18
+ cy.barsPreLoaderWait();
19
+ });
20
+
21
+ textSelectionPage.tests.verifyAdditionalSettingsAccordionProperties();
22
+ });
23
+
24
+ describe('Additional settings: Font size contents', () => {
25
+ abortEarlySetup();
26
+ before(() => {
27
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
28
+ cy.barsPreLoaderWait();
29
+ textSelectionPage.steps.expandAdditionalSettings();
30
+ });
31
+
32
+ textSelectionPage.tests.verifyFontSizeSectionContents();
33
+ });
34
+
35
+ describe('Additional settings: Font size functionality edit tab', () => {
36
+ abortEarlySetup();
37
+ before(() => {
38
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
39
+ cy.barsPreLoaderWait();
40
+ textSelectionPage.steps.expandAdditionalSettings();
41
+ textSelectionPage.steps.clearQuestionInputField();
42
+ paragraphTextArray.forEach((paragraphText) => {
43
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
44
+ });
45
+ textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
46
+ });
47
+
48
+ fontSizeDropdownOptions.forEach((option, fontsIndex) => {
49
+ it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the edit tab should change to ${option} accordingly`, () => {
50
+ textSelectionPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontSizeDropdownOptions[fontsIndex]);
51
+ utilities.verifyInnerText(textSelectionPage.fontSizeDropdown(), `${option}`);
52
+ utilities.verifyCSS(textSelectionPage.specifyCorrectAnswerTextParagraphs(), {
53
+ 'font-size': fontSizes[fontsIndex]
54
+ });
55
+ });
56
+ });
57
+ });
58
+
59
+ describe('Additional settings: Font size functionality preview tab', () => {
60
+ abortEarlySetup();
61
+ before(() => {
62
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
63
+ cy.barsPreLoaderWait();
64
+ textSelectionPage.steps.expandAdditionalSettings();
65
+ textSelectionPage.steps.clearQuestionInputField();
66
+ paragraphTextArray.forEach((paragraphText) => {
67
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
68
+ });
69
+ textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
70
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
71
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
72
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
73
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
74
+ textSelectionPage.steps.allotPoints(5);
75
+ });
76
+
77
+ fontSizeDropdownOptions.forEach((option, fontsIndex) => {
78
+ it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
79
+ textSelectionPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontSizeDropdownOptions[fontsIndex]);
80
+ utilities.verifyInnerText(textSelectionPage.fontSizeDropdown(), `${option}`);
81
+ textSelectionPage.steps.switchToPreviewTab();
82
+ utilities.verifyCSS(textSelectionPage.questionInstructionsText(), {
83
+ 'font-size': fontSizes[fontsIndex]
84
+ });
85
+ utilities.verifyCSS(textSelectionPage.previewTabQuestionTextParagraphs(), {
86
+ 'font-size': fontSizes[fontsIndex]
87
+ });
88
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
89
+ textSelectionPage.steps.switchToGradingView();
90
+ utilities.verifyCSS(textSelectionPage.correctAnswersLabel(), {
91
+ 'font-size': fontSizes[fontsIndex]
92
+ });
93
+ utilities.verifyCSS(textSelectionPage.optionCorrectAnswerSection(), {
94
+ 'font-size': fontSizes[fontsIndex]
95
+ });
96
+ utilities.verifyCSS(textSelectionPage.correctIncorrectAnswerLabel(), {
97
+ 'font-size': fontSizes[fontsIndex]
98
+ });
99
+ textSelectionPage.steps.switchToEditTab();
100
+ });
101
+ });
102
+ });
103
+
104
+ describe('Additional settings: Accessibility section', () => {
105
+ abortEarlySetup();
106
+ before(() => {
107
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
108
+ cy.barsPreLoaderWait();
109
+ textSelectionPage.steps.expandAdditionalSettings();
110
+ });
111
+
112
+ textSelectionPage.tests.verifyAdditionalSettingsAccessibilitySection();
113
+ });
114
+
115
+ describe('Additional Settings: Details section', () => {
116
+ abortEarlySetup();
117
+ before(() => {
118
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
119
+ cy.barsPreLoaderWait();
120
+ textSelectionPage.steps.expandAdditionalSettings();
121
+ });
122
+
123
+ textSelectionPage.tests.verifyDetailsSection();
124
+ });
125
+ });
@@ -232,7 +232,6 @@ describe('Create item page - Text selection: All or nothing ', () => {
232
232
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
233
233
  abortEarlySetup();
234
234
  before(() => {
235
- cy.log('Navigating to Highlight question type');
236
235
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
237
236
  cy.barsPreLoaderWait();
238
237
  textSelectionPage.steps.addTextInQuestionInstructionsInputField('Highlight the correct statements.');
@@ -44,6 +44,7 @@ describe('Create item page - Matching - Check answer functionality', () => {
44
44
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
45
45
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
46
46
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
47
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[3]);
47
48
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
48
49
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
49
50
  textSelectionPage.steps.allotPoints(20);
@@ -93,12 +94,11 @@ describe('Create item page - Matching - Check answer functionality', () => {
93
94
 
94
95
  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', () => {
95
96
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
96
- textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
97
97
  checkAnswer(view);
98
98
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[0]);
99
99
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
100
100
  textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[2]);
101
- textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[3]);
101
+ textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
102
102
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
103
103
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();
104
104
  });
@@ -98,8 +98,9 @@ describe('Create item page - Text selection: Scoring section', () => {
98
98
 
99
99
  textSelectionPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
100
100
 
101
- it('\'Points per response\' label should be displayed and a \'-\' should be displayed besides each response in the \'Specify correct answer\' section', () => {
102
- textSelectionPage.steps.verifyPointsPerResponseLabel();
101
+ it('\'Points per response:\' label should be displayed in the \'Specify correct answer\' section', () => {
102
+ utilities.verifyInnerText(textSelectionPage.pointsPerResponseLabel(), 'Points per response:');
103
+ utilities.verifyElementVisibilityState(textSelectionPage.pointsPerResponseLabel(), 'visible');
103
104
  });
104
105
 
105
106
  it('When the user gives a score input to \'Points\' input field, then the score should be equally divided among the dropzone \'Points per response\' label', () => {
@@ -187,12 +188,12 @@ describe('Create item page - Text selection: Scoring section', () => {
187
188
  it('When user has not selected an option in specify correct answer section, then the \'Set points\' button should be disabled', () => {
188
189
  utilities.verifyElementDisabled(textSelectionPage.setPointsButton());
189
190
  });
190
-
191
+
191
192
  it('When user selects an option in set correct answer section, then the \'Set points\' button should be enabled', () => {
192
193
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
193
194
  textSelectionPage.steps.verifySetPointsButtonLabelAndEnabledState();
194
195
  });
195
-
196
+
196
197
  it('CSS of \'Set points\' button', { tags: 'css' }, () => {
197
198
  utilities.verifyCSS(textSelectionPage.setPointsButton(), {
198
199
  'color': css.color.activeButtons,
@@ -0,0 +1,73 @@
1
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
2
+ import { dialogBoxBase, textSelectionPage } from "../../../pages";
3
+ const options = ['Bat', 'Eagle'];
4
+
5
+ describe('Create item page - Text selection: Header section and Saving question', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Header section contents', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
+ });
15
+
16
+ textSelectionPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Text selection');
17
+ });
18
+
19
+ describe('Tabs section', () => {
20
+ abortEarlySetup();
21
+ before(() => {
22
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
23
+ });
24
+
25
+ textSelectionPage.tests.verifyTabsSection();
26
+ });
27
+
28
+ describe('Cancel button', () => {
29
+ abortEarlySetup();
30
+ before(() => {
31
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
32
+ });
33
+
34
+ textSelectionPage.tests.verifyCancelButton('text selection')
35
+ });
36
+
37
+ describe('Save Question button', () => {
38
+ abortEarlySetup();
39
+ before(() => {
40
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
41
+ cy.barsPreLoaderWait();
42
+ });
43
+
44
+ describe('Validation error messages', () => {
45
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
46
+
47
+ it('Validation error messages should be displayed below required input fields', () => {
48
+ textSelectionPage.steps.verifyQuestionInstructionsErrorMessage();
49
+ textSelectionPage.steps.verifyPointsFieldErrorMessage();
50
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
51
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorMessage();
52
+ });
53
+
54
+ it('Validation error messages should disappear when required input fields are filled', () => {
55
+ textSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
56
+ textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', 'Lorem');
57
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection('Lorem');
58
+ textSelectionPage.steps.allotPoints(10);
59
+ textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
60
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
61
+ });
62
+
63
+ textSelectionPage.tests.verifyCreateItemWrapperContentsA11y();
64
+ });
65
+
66
+ describe('Saving a question', () => {
67
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
68
+ textSelectionPage.steps.saveAQuestionAndVerifySnackbar();
69
+ });
70
+ textSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
71
+ });
72
+ });
73
+ });
@@ -70,7 +70,7 @@ describe('Create item page - Text selection : Preview contents', () => {
70
70
  });
71
71
 
72
72
  it('Question instructions should be visible', () => {
73
- utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Highlight the correct statements.');
73
+ utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Select the correct statements.');
74
74
  utilities.verifyElementVisibilityState(textSelectionPage.questionInstructionsText(), 'visible');
75
75
  });
76
76
 
@@ -109,18 +109,17 @@ describe('Create item page - Text selection : Preview contents', () => {
109
109
 
110
110
  it('When user clicks on a selected option, then that option should be deselected', () => {
111
111
  textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
112
- textSelectionPage.steps.verifyDeselectedStateOptionInPreviewTab(paragraphTextArray[0]);
112
+ textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
113
113
  });
114
114
  } else if (view === 'Grading view') {
115
- it('The question text should be displayed with the selected correct options and status message \' Your answer is correct\' should be displayed', () => {
116
- textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[0]);
115
+ it('The question text should be displayed with the selected correct options and status message \' Your answer is incorrect\' should be displayed', () => {
117
116
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[1]);
118
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
117
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
119
118
  });
120
119
 
121
120
  it('The submitted answer options should not be editable', () => {
122
- textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[0]);
123
- textSelectionPage.steps.verifyOptionIsSelectedInPreviewTab(paragraphTextArray[0]);
121
+ textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[1]);
122
+ textSelectionPage.steps.verifyOptionIsSelectedInPreviewTab(paragraphTextArray[1]);
124
123
  textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[2]);
125
124
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
126
125
  });
@@ -0,0 +1,179 @@
1
+ import { textSelectionPage } 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
+
7
+ describe('Create Item page - Text selection: Question Instructions and Question section', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe('Question Instructions input field - Edit tab', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
16
+ cy.barsPreLoaderWait();
17
+ });
18
+
19
+ textSelectionPage.tests.verifyQuestionInstructionsInputFieldEditTab();
20
+ });
21
+
22
+ describe('Question Instructions input field - Preview tab', () => {
23
+ abortEarlySetup();
24
+ before(() => {
25
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
26
+ cy.barsPreLoaderWait();
27
+ });
28
+
29
+ textSelectionPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
30
+ });
31
+
32
+ describe('Question input field - Edit tab', () => {
33
+ abortEarlySetup();
34
+ before(() => {
35
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
36
+ cy.barsPreLoaderWait();
37
+ });
38
+
39
+ it('\'Question\' label and input field should be displayed and by default in the question input field, sample \'Lorem Ipsum\' text should be present', () => {
40
+ utilities.verifyInnerText(textSelectionPage.questionLabel(), 'Question');
41
+ utilities.verifyInnerText(textSelectionPage.questionInputField(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n\n\n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n\n\n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
42
+ });
43
+
44
+ it('The default sample \'Lorem Ipsum\' text in the question input field should also be displayed in specify possible options section and specify correct answer section in the edit tab.', () => {
45
+ utilities.verifyInnerText(textSelectionPage.specifyPossibleOptionsTextFieldWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
46
+ utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerTextWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
47
+ });
48
+
49
+ it('When the user removes all the text from the question input field and focuses out of it, an error message \'Error: Question is required.\' should be displayed', () => {
50
+ textSelectionPage.steps.clearQuestionInputField();
51
+ textSelectionPage.steps.focusOutOfQuestionInputField();
52
+ utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Question is required.');
53
+ textSelectionPage.steps.verifyErroredStateOfQuestionInputField();
54
+ });
55
+
56
+ textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
57
+
58
+ it('The user should be able to give input in the question input field, then the error message should disappear', () => {
59
+ cy.log('Add Image to Question input field')
60
+ textSelectionPage.steps.focusInQuestionInputField();
61
+ textSelectionPage.steps.selectImageOptionFromCKEditorToolbar();
62
+ textSelectionPage.steps.addImageToInputField();
63
+ textSelectionPage.steps.verifyImageAndAltTextInQuestionInputField();
64
+ textSelectionPage.steps.addInputToQuestionInputField('{enter}');
65
+ cy.log('Add equation to Question input field')
66
+ textSelectionPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
67
+ textSelectionPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
68
+ textSelectionPage.steps.verifyEquationInQuestionInputField();
69
+ textSelectionPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
70
+ cy.log('Add bold text to input field')
71
+ textSelectionPage.steps.focusInQuestionInputField();
72
+ textSelectionPage.steps.selectBoldOptionFromCKEditorToolbar();
73
+ textSelectionPage.steps.addInputToQuestionInputField('This is Bold text input.');
74
+ textSelectionPage.steps.verifyBoldTextInQuestionInputField();
75
+ textSelectionPage.steps.addInputToQuestionInputField('{enter}');
76
+ cy.log('Add link to Question input field')
77
+ textSelectionPage.steps.selectLinkOptionFromCKEditorToolbar();
78
+ textSelectionPage.steps.addLinkToInputField();
79
+ textSelectionPage.steps.verifyLinkInQuestionInputField();
80
+ utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
81
+ textSelectionPage.steps.focusOutOfQuestionInputField();
82
+ });
83
+
84
+ it('CSS of Question label and Question input field contents', { tags: 'css' }, () => {
85
+ utilities.verifyCSS(textSelectionPage.questionLabel(), {
86
+ 'color': css.color.sectionHeading,
87
+ 'font-size': css.fontSize.normal,
88
+ 'font-weight': css.fontWeight.semibold
89
+ });
90
+ utilities.verifyCSS(textSelectionPage.questionInputField(), {
91
+ 'color': css.color.text,
92
+ 'font-size': css.fontSize.default,
93
+ 'font-weight': css.fontWeight.regular,
94
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`
95
+ });
96
+ utilities.verifyCSS(textSelectionPage.questionInputField().find('a'), {
97
+ 'color': css.color.linkText,
98
+ 'font-size': css.fontSize.default,
99
+ 'font-weight': css.fontWeight.bold
100
+ });
101
+ });
102
+
103
+ it('Image, equation, bold text and link added in Question input field should be properly displayed in specify possible options section', () => {
104
+ textSelectionPage.steps.verifyImageAndAltTextInSpecifyPossibleOptionsSection();
105
+ textSelectionPage.steps.verifyEquationInSpecifyPossibleOptionsSection();
106
+ textSelectionPage.steps.verifyBoldTextInSpecifyPossibleOptionsSection();
107
+ textSelectionPage.steps.verifyLinkInSpecifyPossibleOptionsSection();
108
+ });
109
+
110
+ it('Image, equation, bold text and link added in Question input field should be properly displayed in specify correct answer section', () => {
111
+ textSelectionPage.steps.verifyImageAndAltTextInSpecifyCorrectAnswerSection();
112
+ textSelectionPage.steps.verifyEquationInSpecifyCorrectAnswerSection();
113
+ textSelectionPage.steps.verifyBoldTextInSpecifyCorrectAnswerSection();
114
+ textSelectionPage.steps.verifyLinkInSpecifyCorrectAnswerSection();
115
+ });
116
+ });
117
+
118
+ describe('Question field - Preview tab', () => {
119
+ abortEarlySetup();
120
+ before(() => {
121
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
122
+ cy.barsPreLoaderWait();
123
+ });
124
+
125
+ it('In Preview tab, the sample \'Lorem Ipsum\' text should be displayed in the question field', () => {
126
+ textSelectionPage.steps.switchToPreviewTab()
127
+ utilities.verifyInnerText(textSelectionPage.questionTextWrapperPreviewTab(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
128
+ });
129
+
130
+ it('The user should be able to edit text in the question input field and the updated question should be displayed in the preview tab', () => {
131
+ cy.log('Switching to edit tab')
132
+ textSelectionPage.steps.switchToEditTab();
133
+ textSelectionPage.steps.clearQuestionInputField();
134
+ cy.log('Add Image to Question input field')
135
+ textSelectionPage.steps.focusInQuestionInputField();
136
+ textSelectionPage.steps.selectImageOptionFromCKEditorToolbar();
137
+ textSelectionPage.steps.addImageToInputField();
138
+ textSelectionPage.steps.verifyImageAndAltTextInQuestionInputField();
139
+ textSelectionPage.steps.addInputToQuestionInputField('{enter}');
140
+ cy.log('Add equation to Question input field')
141
+ textSelectionPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
142
+ textSelectionPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
143
+ textSelectionPage.steps.verifyEquationInQuestionInputField();
144
+ textSelectionPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
145
+ cy.log('Add bold text to input field')
146
+ textSelectionPage.steps.focusInQuestionInputField();
147
+ textSelectionPage.steps.selectBoldOptionFromCKEditorToolbar();
148
+ textSelectionPage.steps.addInputToQuestionInputField('This is Bold text input.');
149
+ textSelectionPage.steps.verifyBoldTextInQuestionInputField();
150
+ textSelectionPage.steps.addInputToQuestionInputField('{enter}');
151
+ cy.log('Add link to Question input field')
152
+ textSelectionPage.steps.selectLinkOptionFromCKEditorToolbar();
153
+ textSelectionPage.steps.addLinkToInputField();
154
+ textSelectionPage.steps.verifyLinkInQuestionInputField();
155
+ utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
156
+ textSelectionPage.steps.focusOutOfQuestionInputField();
157
+ cy.log('Switching to preview tab')
158
+ textSelectionPage.steps.switchToPreviewTab();
159
+ textSelectionPage.steps.verifyImageAndAltTextInPreviewTab();
160
+ textSelectionPage.steps.verifyEquationInPreviewTab();
161
+ textSelectionPage.steps.verifyBoldTextInPreviewTab();
162
+ textSelectionPage.steps.verifyLinkInPreviewTab();
163
+ });
164
+
165
+ //Failing due to https://redmine.zeuslearning.com/issues/537907
166
+ it('CSS of \'Preview tab\' when image, equation, bold text and link are added', { tags: 'css' }, () => {
167
+ utilities.verifyCSS(textSelectionPage.questionTextWrapperPreviewTab().find('strong'), {
168
+ 'color': css.color.text,
169
+ 'font-size': css.fontSize.default,
170
+ 'font-weight': css.fontWeight.bold
171
+ });
172
+ utilities.verifyCSS(textSelectionPage.questionTextWrapperPreviewTab().find('a'), {
173
+ 'color': css.color.linkText,
174
+ 'font-size': css.fontSize.default,
175
+ 'font-weight': css.fontWeight.bold
176
+ });
177
+ });
178
+ });
179
+ });