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,42 @@
1
+ const selectors = {
2
+ selectChartTypePoint: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] .ngie-chart-point'),
3
+ }
4
+
5
+ const steps = {
6
+ /**
7
+ * @description set the point height/value in the select chart type section chart
8
+ * @param {Object} pointProperties - The properties and changes to be done on the bar
9
+ * @param {number} pointProperties.pointIndex index of the bar
10
+ * @param {number} pointProperties.value value to which the point is to be set as per Y axis
11
+ * @param {number} pointProperties.range Maximum value of the axis on which bar value is determined
12
+ */
13
+ setPointValueInSelectChartTypeSection: ({ barIndex, value, range }) => {
14
+ utilities.getNthElement(chartsBarPage.selectChartTypePoint(), barIndex)
15
+ .invoke('attr', 'height')
16
+ .then((pointValue) => {
17
+ let updatedPointValue = parseFloat(value /= range)
18
+ let originalPointValue = parseFloat(pointValue)
19
+ let unitChange = parseFloat(1 / range)
20
+ if (originalPointValue < updatedPointValue) {
21
+ for (let i = originalPointValue; i < updatedPointValue; i = parseFloat((i + unitChange).toFixed(2))) {
22
+ utilities.getNthElement(chartsBarPage.selectChartTypePoint(), barIndex)
23
+ .focus()
24
+ .type('{upArrow}');
25
+ }
26
+ } else if (originalPointValue > updatedPointValue) {
27
+ for (let i = originalPointValue; i > updatedPointValue; i = parseFloat((i - unitChange).toFixed(2))) {
28
+ utilities.getNthElement(chartsBarPage.selectChartTypePoint(), barIndex)
29
+ .focus()
30
+ .type('{downArrow}');
31
+ }
32
+ }
33
+ utilities.getNthElement(chartsBarPage.selectChartTypePoint(), barIndex)
34
+ .should('have.attr', 'height', updatedPointValue);
35
+ });
36
+ },
37
+ }
38
+
39
+ export const chartsLinePage = {
40
+ ...selectors,
41
+ steps
42
+ }
@@ -0,0 +1,58 @@
1
+ import utilities from "../../support/helpers/utilities";
2
+
3
+ const selectors = {
4
+ allowTeachersToDownloadStudentResponseLabel: () => cy.get('[data-ngie-testid="allow-teachers-to-download-student-response-checkbox"] [class*="label"]'),
5
+ allowTeachersToDownloadStudentResponseCheckbox: () => cy.get('[data-ngie-testid="allow-teachers-to-download-student-response-checkbox"] input')
6
+ }
7
+
8
+ const steps = {
9
+ verifyAllowTeachersToDownloadStudentResponseCheckboxChecked: () => {
10
+ allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseCheckbox()
11
+ .should('be.checked');
12
+ },
13
+
14
+ uncheckAllowTeachersToDownloadStudentResponseCheckbox: () => {
15
+ allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseCheckbox()
16
+ .click()
17
+ .should('not.be.checked');
18
+ },
19
+
20
+ checkAllowTeachersToDownloadStudentResponseCheckbox: () => {
21
+ allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseCheckbox()
22
+ .click()
23
+ .should('be.checked');
24
+ }
25
+ }
26
+
27
+ const tests = {
28
+ verifyAllowTeachersToDownloadStudentResponseSection: () => {
29
+ it('In details section, \'Allow teachers to download student response\' checkbox and label should be displayed and by default it should be checked', () => {
30
+ utilities.verifyInnerText(allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseLabel(), 'Allow teachers to download student response');
31
+ utilities.verifyElementVisibilityState(allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseLabel(), 'visible');
32
+ utilities.verifyElementVisibilityState(allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseCheckbox(), 'exist');
33
+ allowTeachersToDownloadStudentResponseComponent.steps.verifyAllowTeachersToDownloadStudentResponseCheckboxChecked();
34
+ });
35
+
36
+ it('User should be able to uncheck and check \'Allow teachers to download student response\' checkbox', () => {
37
+ allowTeachersToDownloadStudentResponseComponent.steps.uncheckAllowTeachersToDownloadStudentResponseCheckbox();
38
+ allowTeachersToDownloadStudentResponseComponent.steps.checkAllowTeachersToDownloadStudentResponseCheckbox();
39
+ });
40
+
41
+ it('CSS of \'Allow teachers to download student response\' checkbox and label section', { tags: 'css' }, () => {
42
+ utilities.verifyCSS(allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseLabel(), {
43
+ 'color': css.color.labelText,
44
+ 'font-size': css.fontSize.normal,
45
+ 'font-weight': css.fontWeight.regular
46
+ });
47
+ utilities.verifyCSS(allowTeachersToDownloadStudentResponseComponent.allowTeachersToDownloadStudentResponseCheckbox().parents('.icon-checkbox-selected').find('.checkbox-icon-border-rect'), {
48
+ 'fill': css.color.activeButtons
49
+ });
50
+ })
51
+ }
52
+ }
53
+
54
+ export const allowTeachersToDownloadStudentResponseComponent = {
55
+ ...selectors,
56
+ steps,
57
+ tests
58
+ }
@@ -1,7 +1,7 @@
1
1
  import utilities from "../../support/helpers/utilities";
2
2
  import { dialogBoxBase } from "../dialogBoxBase";
3
3
  import { commonComponents } from "./commonComponents";
4
- import { scoringSectionBase } from "./scoringSectionBase";
4
+ import { scoringSectionBaseEditTab } from "./scoringSectionBaseEditTab";
5
5
  const css = Cypress.env('css');
6
6
 
7
7
  const selectors = {
@@ -183,8 +183,8 @@ const tests = {
183
183
  case 'list sorting':
184
184
  helpText = 'You can set the correct answer by sorting the correct answer(s) in the response area(s).';
185
185
  break;
186
- case 'highlight':
187
- helpText = 'You can set the correct answer by highlighting the correct answer(s) in the response area(s).';
186
+ case 'text selection':
187
+ helpText = 'You can set the correct answer by selecting the correct answer selection(s).';
188
188
  break;
189
189
  case 'highlight image':
190
190
  helpText = 'You can set the correct answer by selecting the correct answer(s) in the response area(s).';
@@ -205,11 +205,14 @@ const tests = {
205
205
  helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
206
206
  break;
207
207
  case 'grid fill':
208
- helpText = 'You can set the correct answer by selecting the correct cell(s) in the grid.';
208
+ helpText = 'You can set the correct answer by selecting the correct answer cell(s).';
209
209
  break;
210
210
  case 'number line':
211
211
  helpText = 'You can set the correct answer by entering the correct answer(s) in the response area(s)';
212
212
  break;
213
+ case 'number line - label':
214
+ helpText = 'You can set the correct answer by dragging the correct answer(s) in the response area(s).';
215
+ break;
213
216
  default:
214
217
  throw new Error('Invalid question type');
215
218
  }
@@ -246,36 +249,24 @@ const tests = {
246
249
  * @example - verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty('Correct');
247
250
  */
248
251
  verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty: (accordionName) => {
249
- it(`When the user focuses in and out of the empty points input field, \'Error: Please enter points.\' validation text should be displayed below the points input field and error icon should be displayed on the \'${accordionName}\' accordion`, () => {
250
- scoringSectionBase.pointsInputField()
252
+ it(`When the user focuses in and out of the empty points input field, no points error message should be displayed below the points input field and error icon should not be displayed on the \'${accordionName}\' accordion`, () => {
253
+ scoringSectionBaseEditTab.pointsInputField()
251
254
  .focus();
252
- scoringSectionBase.pointsInputField()
255
+ scoringSectionBaseEditTab.pointsInputField()
253
256
  .blur();
254
- utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'visible')
255
- utilities.verifyInnerText(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'Error: Please enter points.');
257
+ utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist')
256
258
  if (accordionName == 'Correct') {
257
259
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
258
260
  .within(() => {
259
- autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
261
+ autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
260
262
  });
261
263
  } else {
262
264
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
263
265
  .within(() => {
264
- autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
266
+ autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
265
267
  });
266
268
  };
267
269
  });
268
-
269
- it(`When the user allots points then the \'Error: Please enter points.\' validation text and error icon displayed on the \'${accordionName}\' accordion should disappear, the allotted points should be displayed on the \'${accordionName}\' accordion`, () => {
270
- scoringSectionBase.steps.allotPoints(20);
271
- utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'notExist');
272
- autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
273
- if (accordionName === 'Correct') {
274
- autoScoredSpecifyCorrectAnswerSection.steps.verifyPointsLabelAndPointsOnAnswerAccordion(0, '20');
275
- } else {
276
- autoScoredSpecifyCorrectAnswerSection.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '20');
277
- }
278
- });
279
270
  },
280
271
 
281
272
  verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y: () => {
@@ -320,7 +311,7 @@ const tests = {
320
311
  .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
321
312
  });
322
313
 
323
- it('If user has not added points and/or selected correct answer in the correct accordion, the user should get a warning popup', () => {
314
+ it('If user has not selected correct answer in the correct accordion, the user should get a warning popup', () => {
324
315
  autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
325
316
  dialogBoxBase.steps.allFieldsRequiredWarningPopupContents();
326
317
  });
@@ -350,13 +341,15 @@ const tests = {
350
341
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
351
342
  });
352
343
 
353
- it('\'Error: Please set a correct answer.\' and \'Error: Please enter points.\' validation error messages should be displayed in the correct accordion', () => {
344
+ it('\'Error: Please set a correct answer.\' validation error messages should be displayed in the correct accordion, points error message should not be displayed', () => {
354
345
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
355
346
  .within(() => {
356
347
  utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
357
348
  });
358
- utilities.verifyInnerText(utilities.getNthElement(scoringSectionBase.pleaseEnterPointsErrorMessage(), 0), 'Error: Please enter points.');
359
- utilities.verifyElementVisibilityState(scoringSectionBase.pleaseEnterPointsErrorMessage(), 'visible');
349
+ scoringSectionBaseEditTab.pointsWrapper()
350
+ .within(() => {
351
+ utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
352
+ });
360
353
  if (questionType != 'list ordering' && questionType != 'short text response' && questionType != 'text entry math') {
361
354
  steps.verifySpecifyCorrectAnswerErrorMessage();
362
355
  }
@@ -4,14 +4,14 @@ const css = Cypress.env('css');
4
4
 
5
5
  //Note: We need to work on this file, as disablePreviousIncorrectOptionLabel is not present for all auto scored question types, need to create different component files allowStudentsToCheckAnswerComponent, disablePreviousOptionComponent
6
6
  const selectors = {
7
- allowStudentToCheckAnswerLabel: () => cy.get('[data-ngie-testid="allow-students-to-check-answer-checkbox"] .MuiFormControlLabel-label'),
7
+ allowStudentToCheckAnswerLabel: () => cy.get('[data-ngie-testid="allow-student-to-check-answer-checkbox"] .MuiFormControlLabel-label'),
8
8
  //Note: update after https://redmine.zeuslearning.com/issues/565666 gets resolved
9
- allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-students-to-check-answer-checkbox"] input'),
9
+ allowStudentToCheckAnswerCheckbox: () => cy.get('[data-ngie-testid="allow-student-to-check-answer-checkbox"] input'),
10
10
  maximumCheckAnswerAttemptsDropdownLabel: () => cy.get('#Maximum-check-answer-attempts-dropdown-label'),
11
11
  maximumCheckAnswerAttemptsDropdown: () => cy.get('#Maximum-check-answer-attempts-select'),
12
- maximumCheckAnswerAttemptsDropdownListOptions: (ariaLabel = null) => {
13
- if (ariaLabel) {
14
- return cy.get(`[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"][aria-label*="${ariaLabel}"]`)
12
+ maximumCheckAnswerAttemptsDropdownListOptions: (dataValue = null) => {
13
+ if (dataValue) {
14
+ return cy.get(`[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"][data-value="${dataValue}"]`)
15
15
  } else {
16
16
  return cy.get('[aria-labelledby*="Maximum-check-answer-attempts-dropdown-label"] [role="option"]')
17
17
  }
@@ -74,7 +74,7 @@ const steps = {
74
74
  const tests = {
75
75
  verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS: () => {
76
76
  it('\'Allow student to check answer\' label and checkbox should be displayed and it should be unchecked by default', () => {
77
- utilities.verifyInnerText(autoScoredStudentViewSettings.allowStudentToCheckAnswerLabel(), 'Allow students to check answer');
77
+ utilities.verifyInnerText(autoScoredStudentViewSettings.allowStudentToCheckAnswerLabel(), 'Allow student to check answer');
78
78
  autoScoredStudentViewSettings.steps.verifyAllowStudentsToCheckAnswerCheckboxUnchecked();
79
79
  });
80
80
 
@@ -115,7 +115,7 @@ const tests = {
115
115
  'font-size': css.fontSize.normal,
116
116
  'font-weight': css.fontWeight.regular
117
117
  });
118
- utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-students-to-check-answer-checkbox"]').find('g').eq(1), {
118
+ utilities.verifyCSS(autoScoredStudentViewSettings.allowStudentToCheckAnswerCheckbox().parents('[data-ngie-testid="allow-student-to-check-answer-checkbox"]').find('g').eq(1), {
119
119
  'fill': css.color.activeButtons
120
120
  });
121
121
  utilities.verifyCSS(autoScoredStudentViewSettings.maximumCheckAnswerAttemptsDropdownLabel(), {
@@ -0,0 +1,123 @@
1
+ import { chartsCommonComponent } from "./chartsCommonComponent";
2
+
3
+ const selectors = {
4
+ toolsLabel: () => cy.get('[class*="SelectChartTypestyles__OptionTitle"]'),
5
+ addBarOrPointOptionButton: () => cy.get('#add .icon-button-custom-format'),
6
+ addBarOrPointOptionLabel: () => cy.get('.drag-item-label-wrapper'),
7
+ yAxisCoordinate: () => cy.get('[class*="ChartGridstyle__ValueDiv"]'),
8
+ yAxisLabel: () => cy.get('[class*="ChartsPreviewstyles__LeftWrapper"] .title-container'),
9
+ selectChartTypeChartToolsAddBarOrPointButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(0),
10
+ selectChartTypeChartToolsUndoButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(1),
11
+ selectChartTypeChartToolsRedoButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(1),
12
+ selectChartTypeChartToolsResetButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(2),
13
+ selectChartTypeYAxisLabelButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartsPreviewstyles__LeftWrapper"] .title-container'),
14
+ selectChartTypePoint: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] .ngie-chart-point'),
15
+ barAndPointTooltipLockUnlockButton: () => cy.get('[class*="ChartTooltipstyles__LockIconWrapper"] button'),
16
+ barAndPointTooltipDeleteButton: () => cy.get('.charts-tooltip-delete-icon-wrapper:visible button'),
17
+ barAndPointTooltipLabelButton: () => cy.get('.charts-tooltip-data-label:visible .title-container'),
18
+ barAndPointTooltipWrapper: () => cy.get('.charts-tooltip-wrapper'),
19
+
20
+ //Specify correct answer section
21
+ specifyCorrectAnswerToolsAddBarOrPointButton: () => cy.get('.ngie-accordion [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(0),
22
+ specifyCorrectAnswerToolsUndoButton: () => cy.get('.ngie-accordion [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(1),
23
+ specifyCorrectAnswerToolsRedoButton: () => cy.get('.ngie-accordion [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(2),
24
+ specifyCorrectAnswerToolsResetButton: () => cy.get('.ngie-accordion [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(3),
25
+
26
+ //Preview tab
27
+ previewTabToolsAddBarOrPointButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(0),
28
+ previewTabToolsUndoButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(1),
29
+ previewTabToolsRedoButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(2),
30
+ previewTabToolsResetButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"] button').eq(3),
31
+ previewTabYAxisLabelButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartsPreviewstyles__LeftWrapper"] .title-container'),
32
+ previewTabYAxisCoordinate: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartGridstyle__ValueDiv"]'),
33
+ previewTabChartRowHeaderContainer: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartGridstyle__RowHeaderContainer"]'),
34
+ }
35
+
36
+ const steps = {
37
+ selectAddBarOrPointToolbarOption: () => {
38
+ barAndLineChartComponent.addBarOrPointOptionButton()
39
+ .click()
40
+ barAndLineChartComponent.addBarOrPointOptionButton()
41
+ .should('have.attr', 'data-aria-pressed', 'true');
42
+ },
43
+
44
+ addBarOrPointInChartInSelectChartTypeSection: () => {
45
+ barAndLineChartComponent.selectChartTypeChartToolsAddBarOrPointButton()
46
+ .click();
47
+ },
48
+
49
+ addBarOrPointInChartInSpecifyCorrectAnswerSection: () => {
50
+ barAndLineChartComponent.specifyCorrectAnswerToolsAddBarOrPointButton()
51
+ .click();
52
+ },
53
+
54
+ /**
55
+ * @description Set y axis label
56
+ * @param {string} text text to be set as Y axis label
57
+ */
58
+ setYAxisLabel: (text) => {
59
+ barAndLineChartComponent.steps.clickOnYAxisLabelButton();
60
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
61
+ chartsCommonComponent.steps.saveGraphLabelPopup();
62
+ },
63
+
64
+ clickOnYAxisLabelButton: () => {
65
+ barAndLineChartComponent.selectChartTypeYAxisLabelButton()
66
+ .click();
67
+ },
68
+
69
+ clickOnBarTooltipBarLabelButton: () => {
70
+ barAndLineChartComponent.barAndPointTooltipLabelButton
71
+ },
72
+
73
+ //Preview tab
74
+ /**
75
+ * @description edit y axis label
76
+ * @param {string} text text to be set as Y axis label
77
+ */
78
+ editYAxisLabelInPreviewTab: (text) => {
79
+ barAndLineChartComponent.steps.clickOnYAxisLabelButtonInPreviewTab();
80
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
81
+ chartsCommonComponent.steps.saveGraphLabelPopup();
82
+ },
83
+
84
+ clickOnYAxisLabelButtonInPreviewTab: () => {
85
+ barAndLineChartComponent.previewTabYAxisLabelButton()
86
+ .click();
87
+ },
88
+
89
+ addBarOrPointInChartInPreviewTab: () => {
90
+ barAndLineChartComponent.previewTabToolsAddBarOrPointButton()
91
+ .click();
92
+ },
93
+
94
+ clickOnUndoButtonPreviewTab: () => {
95
+ barAndLineChartComponent.previewTabToolsUndoButton()
96
+ .click();
97
+ },
98
+
99
+ clickOnRedoButtonPreviewTab: () => {
100
+ barAndLineChartComponent.previewTabToolsRedoButton()
101
+ .click();
102
+ },
103
+
104
+ clickOnResetButtonPreviewTab: () => {
105
+ barAndLineChartComponent.previewTabToolsResetButton()
106
+ .click();
107
+ },
108
+
109
+ /**
110
+ * @description edit y axis label
111
+ * @param {string} text text to be set as Y axis label
112
+ */
113
+ editYAxisLabelInPreviewTab: (text) => {
114
+ barAndLineChartComponent.steps.clickOnYAxisLabelButtonInPreviewTab();
115
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
116
+ chartsCommonComponent.steps.saveGraphLabelPopup();
117
+ }
118
+ }
119
+
120
+ export const barAndLineChartComponent = {
121
+ ...selectors,
122
+ steps,
123
+ }
@@ -0,0 +1,138 @@
1
+ import utilities from "../../support/helpers/utilities";
2
+ import { autoScoredScoringPreviewTab } from "./autoScoredScoringPreviewTab";
3
+ import { correctIncorrectAnswerLabelComponent } from "./correctIncorrectAnswerLabelComponent";
4
+
5
+ const selectors = {
6
+ selectChartTypesTitle: () => cy.get('.options-label'),
7
+ barToggleButton: () => cy.get('[data-ngie-testid="bar-toggle-button"]'),
8
+ lineToggleButton: () => cy.get('[data-ngie-testid="line-toggle-button"]'),
9
+ dotPlotToggleButton: () => cy.get('[data-ngie-testid="dot-plot-toggle-button"]'),
10
+ graphTitle: () => cy.get('[class*="ChartsPreviewstyles__TopWrapper"] .title-container'),
11
+ xAxisLabel: () => cy.get('[class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
12
+ selectChartTypeGraphTitleButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartsPreviewstyles__TopWrapper"] .title-container'),
13
+ selectChartTypeXAxisLabelButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
14
+ pointsInputField: () => cy.get('[class*="Chartsstyles__PointsFieldWrapper"] [class*="points-input-field"] input[type="text"]'),
15
+ selectChartTypesTooltipWrapper: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartTooltipstyles__ChartTooltipWrapper"]'),
16
+
17
+ //graph label popup
18
+ graphLabelPopupAddTitleLabel: () => cy.get('[aria-labelledby="alert-dialog-title"] .inline-text-property-label'),
19
+ graphLabelPopupAddTitleInputField: () => cy.get('[aria-labelledby="alert-dialog-title"] input'),
20
+ graphLabelPopupCancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
21
+ graphLabelPopupSaveButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
22
+
23
+ //preview tab
24
+ previewTabTool: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"] button'),
25
+ previewTabToolBarWrapper: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartToolsstyles__ChartToolsWrapper"]'),
26
+ previewTabChartWrapper: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible'),
27
+ previewTabGraphTitle: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartsPreviewstyles__TopWrapper"] .title-container'),
28
+ previewTabXAxisLabelButton: () => cy.get('[class*="ChartsPreviewstyles__PreviewWrapper"]:visible [class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
29
+ tickIconWrapper: () => cy.get('.tick-icon-wrapper svg'),
30
+ correctAnswersLabel: () => cy.get('[class*="Chartsstyle__CorrectAnswerHeader"]')
31
+ }
32
+
33
+ const steps = {
34
+ /**
35
+ * @description Set graph title
36
+ * @param {string} text text to be set as graph title
37
+ */
38
+ setGraphTitle: (text) => {
39
+ chartsCommonComponent.steps.clickOnGraphTitleButton();
40
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
41
+ chartsCommonComponent.steps.saveGraphLabelPopup();
42
+ },
43
+
44
+ /**
45
+ * @description Set x axis label
46
+ * @param {string} text text to be set as X axis label
47
+ */
48
+ setXAxisLabel: (text) => {
49
+ chartsCommonComponent.steps.clickOnXAxisLabelButton();
50
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
51
+ chartsCommonComponent.steps.saveGraphLabelPopup();
52
+ },
53
+
54
+ /**
55
+ * @description add input to chart label popup input fields
56
+ * @param {string} text text to be set as label
57
+ */
58
+ addInputToChartLabelPopupInputField: (text) => {
59
+ chartsCommonComponent.graphLabelPopupAddTitleInputField()
60
+ .clear()
61
+ .type(text);
62
+ },
63
+
64
+ saveGraphLabelPopup: () => {
65
+ chartsCommonComponent.graphLabelPopupSaveButton()
66
+ .click();
67
+ },
68
+
69
+ cancelGraphLabelPopup: () => {
70
+ chartsCommonComponent.graphLabelPopupCancelButton()
71
+ .click();
72
+ },
73
+
74
+ clickOnGraphTitleButton: () => {
75
+ chartsCommonComponent.selectChartTypeGraphTitleButton()
76
+ .click();
77
+ },
78
+
79
+ clickOnXAxisLabelButton: () => {
80
+ chartsCommonComponent.selectChartTypeXAxisLabelButton()
81
+ .click();
82
+ },
83
+
84
+ clickOnXAxisLabelButtonInPreviewTab: () => {
85
+ chartsCommonComponent.previewTabXAxisLabelButton()
86
+ .click();
87
+ },
88
+
89
+ /**
90
+ * @param {number} points - The points to be allotted.
91
+ * @description - Allots points in the scoring section.
92
+ */
93
+ allotPoints: (points) => {
94
+ chartsCommonComponent.pointsInputField()
95
+ .clear()
96
+ .type(`${points}`)
97
+ .should('have.value', points)
98
+ .blur();
99
+ },
100
+
101
+ //Preview tab
102
+ /**
103
+ * @description edit x axis label in preview tab
104
+ * @param {string} text text to be set as X axis label
105
+ */
106
+ editXAxisLabelInPreviewTab: (text) => {
107
+ chartsCommonComponent.steps.clickOnXAxisLabelButtonInPreviewTab();
108
+ chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
109
+ chartsCommonComponent.steps.saveGraphLabelPopup();
110
+ },
111
+
112
+ /**
113
+ * @param {("correct" | "incorrect")} answerStatus - The status of the answer.
114
+ * @description Verifies the visibility and content of the correct/incorrect answer label block.
115
+ * If the answer is correct, it also verifies the visibility of the correct icon;
116
+ * otherwise, it verifies the visibility of the incorrect icon.
117
+ */
118
+ verifyCorrectIncorrectAnswerLabel: (answerStatus) => {
119
+ utilities.verifyElementVisibilityState(correctIncorrectAnswerLabelComponent.correctIncorrectAnswerBlock(), 'exist');
120
+ utilities.verifyInnerText(correctIncorrectAnswerLabelComponent.correctIncorrectStatusMessageText(), `Your answer is${answerStatus}`)
121
+ if (answerStatus === 'correct') {
122
+ utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'visible');
123
+ } else {
124
+ utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'visible');
125
+ }
126
+ },
127
+
128
+ verifyCorrectAnswerSectionNotExist: () => {
129
+ chartsCommonComponent.previewTabChartWrapper()
130
+ .eq(1)
131
+ .should('not.exist');
132
+ }
133
+ }
134
+
135
+ export const chartsCommonComponent = {
136
+ ...selectors,
137
+ steps
138
+ }
@@ -11,6 +11,7 @@ const selectors = {
11
11
  errorMessage: () => cy.get('.error-text-message:visible'),
12
12
  nextGenCreateItemWrapper: () => cy.get('#nextgen-assess-create-item'),
13
13
  dropdownList: () => cy.get('.dropdown-list'),
14
+ dropdownListOption: () => cy.get('.dropdown-menu-item'),
14
15
  dragHandleButton: () => cy.get('.dragicon-button'),
15
16
  deleteButton: () => cy.get('button[aria-label*="Delete option"]'),
16
17
  tickIconForOptionButtons: () => cy.get('.ngie-toggle-button-tick-icon'),
@@ -9,7 +9,7 @@ const threeOptions = ['option 1', 'option 2', 'option 3'];
9
9
 
10
10
  //TODO update option container selectors when https://redmine.zeuslearning.com/issues/563159 is resolved
11
11
  const selectors = {
12
- draggableOption: () => cy.get('[class*="DraggableItems"][class*="style__ItemWrapper"]'),
12
+ draggableOption: () => cy.get('[class*="DraggableItems"][class*="__ItemWrapper"]'),
13
13
  optionsContainerSpecifyCorrectAnswerSection: () => cy.get('.option-drag-and-drop'),
14
14
  optionsContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .option-drag-and-drop'),
15
15
  groupedOptionsTitleSpecifyCorrectAnswerSection: () => cy.get('[class*="GroupTitleWrapper"]'),
@@ -470,6 +470,7 @@ const tests = {
470
470
 
471
471
  it('When the user enters text in options input fields then the entered text should be displayed in the respective draggable options in a group in the options container of the specify correct answer section', () => {
472
472
  optionsWrapperComponent.steps.addInputToOptionsInputField(options);
473
+ cy.wait(200) //Added wait as this is failing due to page updating
473
474
  draggableOptionContainer.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, options);
474
475
  });
475
476
 
@@ -244,7 +244,7 @@ const steps = {
244
244
  equationEditorFlyout.categoryCharacters('Comma')
245
245
  .click();
246
246
  equationEditorFlyout.previewInputField()
247
- .type('What is the value of x?');
247
+ .type('What is the value of x');
248
248
  equationEditorFlyout.categoryCharacters('QuestionMark')
249
249
  .click();
250
250
  equationEditorFlyout.previewInputField()
@@ -383,9 +383,10 @@ const tests = {
383
383
 
384
384
  verifyEquationEditorFlyoutSymbolCategoriesTabs: (categoryName) => {
385
385
  it(`On clicking the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category in the Equation Editor flyout, then the ${equationEditorCategoriesAndSymbols[categoryName].displayName} category tab should get selected`, () => {
386
- equationEditorFlyout.categoryTab()
386
+ equationEditorFlyout.categoryTabTitle()
387
387
  .contains(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`, { matchCase: false })
388
388
  .click()
389
+ .parents('.tool-wrapper')
389
390
  .within(() => {
390
391
  equationEditorFlyout.categoryTabTitle()
391
392
  .verifyInnerText(`${equationEditorCategoriesAndSymbols[categoryName].displayName}`)
@@ -369,8 +369,14 @@ const steps = {
369
369
  essayResponseCommonComponents.customizeFormattingOptionsTiles()
370
370
  .each(($button, count) => {
371
371
  cy.wrap($button)
372
- .should('have.attr', 'title', customizeOptions[count])
373
- .and('have.attr', 'data-aria-pressed', stateOfFormattingOption[count])
372
+ .invoke('attr', 'aria-label')
373
+ .then((ariaLabel) => {
374
+ const normalizedAriaLabel = ariaLabel.trim();
375
+ const isOptionIncluded = customizeOptions.some(option => normalizedAriaLabel.includes(option));
376
+ expect(isOptionIncluded).to.be.true;
377
+ cy.wrap($button)
378
+ .and('have.attr', 'data-aria-pressed', stateOfFormattingOption[count])
379
+ });
374
380
  });
375
381
  },
376
382
 
@@ -683,6 +683,7 @@ const tests = {
683
683
  utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsDropdownCommonComponent.dropdownLabelSpecifyCorrectAnswerSection(), 1), 'Dropdown 2');
684
684
  });
685
685
 
686
+ //Note: Need to find a solution for this, not working
686
687
  it('When user expands and collapses the dropdown without selecting any option, \'Error: Please set a correct answer.\' error message should be displayed', () => {
687
688
  fillInTheGapsDropdownCommonComponent.steps.expandAndCollapseDropdownInSpecifyCorrectAnswerSection(0);
688
689
  utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
@@ -568,7 +568,8 @@ const steps = {
568
568
  imageCanvasComponent.responseAreaStyle()
569
569
  .eq(index)
570
570
  .trigger('mouseover', { force: true });
571
- utilities.verifyInnerText(commonComponents.tooltipText(), dropzonePointer);
571
+ commonComponents.tooltipText()
572
+ .should('have.text', dropzonePointer, { matchCase: true });
572
573
  imageCanvasComponent.responseAreaStyle()
573
574
  .eq(index)
574
575
  .trigger('mouseout', { force: true });
@@ -645,11 +646,11 @@ const tests = {
645
646
  },
646
647
 
647
648
  verifyCanvasResponseAreaContents: () => {
648
- it('When user clicks inside canvas, then one response container should be added with pointer, close button and numeration.', () => {
649
+ it('When user clicks inside canvas, then one response container should be added with close button, numeration and without pointer.', () => {
649
650
  imageCanvasComponent.steps.insertResponseArea(80);
650
651
  utilities.verifyElementCount(imageCanvasComponent.responseAreaWrapper(), 1);
651
652
  utilities.verifyElementVisibilityState(imageCanvasComponent.responseArea(), 'visible');
652
- utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaPointer(), 'visible');
653
+ utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaPointer(), 'notExist');
653
654
  utilities.verifyElementVisibilityState(imageCanvasComponent.removeResponseAreaButton(), 'visible');
654
655
  utilities.verifyInnerText(imageCanvasComponent.responseAreaNumerationText(), '1');
655
656
  utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaNumerationText(), 'visible');
@@ -822,7 +823,7 @@ const tests = {
822
823
  it('\'Cancel\' and \'Ok\' buttons should be displayed', () => {
823
824
  utilities.verifyInnerText(colorPopupComponent.cancelButton(), 'Cancel');
824
825
  utilities.verifyElementVisibilityState(colorPopupComponent.cancelButton(), 'visible');
825
- utilities.verifyInnerText(colorPopupComponent.okButton(), 'OK');
826
+ utilities.verifyInnerText(colorPopupComponent.okButton(), 'Ok');
826
827
  utilities.verifyElementVisibilityState(colorPopupComponent.okButton(), 'visible');
827
828
  });
828
829
 
@@ -63,4 +63,12 @@ export * from './specifyRowsAndColumnsComponent'
63
63
  export * from './toolsAndControlsComponent';
64
64
  export * from './resetPopupComponent';
65
65
  export * from './setPointsPopupBase';
66
+ export * from './styleAndLayoutCustomizationAccordionComponent';
66
67
  export * from './defaultToolDropdown';
68
+ export * from './layoutSectionComponent';
69
+ export * from './barAndLineChartComponent';
70
+ export * from './chartsCommonComponent';
71
+ export * from './numberLineCommonComponent';
72
+ export * from './limitNumberOfRetakeComponent';
73
+ export * from './allowTeachersToDownloadStudentResponseComponent';
74
+ export * from './singleMultipleSelectionModeComponent';