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
@@ -6,7 +6,7 @@ import { equationEditorFlyout } from "./equationEditorFlyout";
6
6
  const css = Cypress.env('css');
7
7
 
8
8
  const selectors = {
9
- optionsLabel: () => cy.get('.options-label'),
9
+ optionsLabel: () => cy.get('.options-label-wrapper .options-label'),
10
10
  optionsSectionWrapper: () => cy.get('[data-rbd-droppable-id="assessment-option-item-options"]'),
11
11
  optionWrapper: () => cy.get('[data-rbd-draggable-id*="option-draggable"]'),
12
12
  addOptionButton: () => cy.get('.add-option-wrapper-cls button').contains('Add option'),
@@ -140,6 +140,17 @@ const steps = {
140
140
  .should('have.text', '​​​​​​​This is a bold option');
141
141
  },
142
142
 
143
+ /**
144
+ * @param {number} index of the option input field
145
+ * @description this function add input to options input field which contains an image
146
+ */
147
+ addTextInputToOptionsInputFieldWithImage: (index) => {
148
+ optionsWrapperComponent.optionsInputField()
149
+ .eq(index)
150
+ .type('Petals')
151
+ .should('have.text', '​​​​​​​Petals');
152
+ },
153
+
143
154
  /**
144
155
  * @param {number} index of option
145
156
  * @description this function verifies bold text in options input fields
@@ -416,7 +427,7 @@ const tests = {
416
427
  utilities.triggerMouseover(commonComponents.dragHandleButton());
417
428
  });
418
429
  utilities.verifyElementVisibilityState(commonComponents.tooltipText(), 'visible')
419
- cy.checkAccessibility(commonComponents.tooltipText());
430
+ cy.checkAccessibility(commonComponents.nextGenCreateItemWrapper());
420
431
  optionsWrapperComponent.optionWrapper()
421
432
  .eq(0)
422
433
  .within(() => {
@@ -174,10 +174,13 @@ const steps = {
174
174
  .should('be.disabled');
175
175
  },
176
176
 
177
- verifyPlaybackSpeedListOptions: () => {
178
- const playbackSpeedOptions = ['1x', '1.25x', '1.5x', '2x'];
177
+ /**
178
+ * Verify the playback speed list options
179
+ * @param {string[]} playbackSpeedOptions Array of playback speed list options
180
+ */
181
+ verifyPlaybackSpeedListOptions: (playbackSpeedOptions) => {
179
182
  playbackSpeedOptions.forEach((option, optionIndex) => {
180
- utilities.verifyInnerText(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), optionIndex), option);
183
+ utilities.verifyInnerText(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), optionIndex), `${option}x`);
181
184
  });
182
185
  },
183
186
 
@@ -188,7 +191,7 @@ const steps = {
188
191
  */
189
192
  verifyPlaybackSpeedOptionSelectedState: (speed) => {
190
193
  playbackControlsBaseComponent.playbackSpeedOption(speed)
191
- .should('have.class', 'selected-speed-option')
194
+ .should('have.attr', 'aria-label', `${speed} selected`);
192
195
  },
193
196
 
194
197
  /**
@@ -272,30 +275,34 @@ const tests = {
272
275
  });
273
276
  },
274
277
 
275
- verifyPlaybackSpeedContents: () => {
276
- it('When the user hovers overs the playback button, a list of 4 playback speed options - 1x, 1.25x, 1.5x, 2x should be displayed and by default 1x should be in selected state', () => {
278
+ /**
279
+ * Verify the contents of playback speed list and button
280
+ * @param {string[]} playbackSpeedOptions Array of playback speed list options
281
+ */
282
+ verifyPlaybackSpeedContents: (playbackSpeedOptions) => {
283
+ it(`When the user hovers overs the playback button, a list of ${playbackSpeedOptions.length} playback speed options - ${playbackSpeedOptions.join(' ')} should be displayed and by default 1x should be in selected state`, () => {
277
284
  playbackControlsBaseComponent.playbackSpeedButton()
278
285
  .trigger('mouseover');
279
- utilities.verifyElementVisibilityState(playbackControlsBaseComponent.playbackSpeedOptionsList(), 'visible');
280
- utilities.verifyElementCount(playbackControlsBaseComponent.playbackSpeedOption(), 4);
281
- playbackControlsBaseComponent.steps.verifyPlaybackSpeedListOptions();
286
+ utilities.verifyElementVisibilityState(playbackControlsBaseComponent.playbackSpeedOption(), 'visible');
287
+ utilities.verifyElementCount(playbackControlsBaseComponent.playbackSpeedOption(), playbackSpeedOptions.length);
288
+ playbackControlsBaseComponent.steps.verifyPlaybackSpeedListOptions(playbackSpeedOptions);
282
289
  playbackControlsBaseComponent.steps.verifyPlaybackSpeedOptionSelectedState('1x');
283
290
  playbackControlsBaseComponent.steps.selectPlaybackSpeed('1x');
284
291
  });
285
292
 
286
293
  it('CSS of playback speed options', { tags: 'css' }, () => {
287
294
  utilities.hoverOverElement(playbackControlsBaseComponent.playbackSpeedButton());
288
- utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedButton().find('[id="playback-speed"] path'), {
295
+ utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedButton().find('path').eq(1), {
289
296
  'fill': css.color.activeButtons
290
297
  });
291
- utilities.verifyCSS(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), 0), {
298
+ utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedOption().contains('1x'), {
292
299
  'color': css.color.liText,
293
300
  'background-color': css.color.liTextSelectedBg,
294
301
  'font-size': css.fontSize.small
295
302
  });
296
- utilities.verifyCSS(utilities.getNthElement(playbackControlsBaseComponent.playbackSpeedOption(), 1), {
303
+ utilities.verifyCSS(playbackControlsBaseComponent.playbackSpeedOption().last(), {
297
304
  'color': css.color.liText,
298
- 'background-color': css.color.defaultBackground,
305
+ 'background-color': css.color.transparent,
299
306
  'font-size': css.fontSize.small
300
307
  });
301
308
  });
@@ -138,7 +138,8 @@ const tests = {
138
138
  questionInputFieldComponent.steps.clearQuestionInputField();
139
139
  questionInputFieldComponent.steps.verifyQuestionInputFieldPlaceholder();
140
140
  questionInputFieldComponent.steps.addInputToQuestionInputField('Lorem Ipsum');
141
- utilities.verifyTextContent(questionInputFieldComponent.questionInputField(), '​​​​​​​Lorem Ipsum');
141
+ questionInputFieldComponent.questionInputField()
142
+ .contains('Lorem Ipsum');
142
143
  questionInputFieldComponent.steps.verifyQuestionInputFieldPlaceholderNotDisplayed();
143
144
  });
144
145
  },
@@ -82,29 +82,13 @@ const tests = {
82
82
  questionInstructionsComponent.steps.verifyQuestionInstructionsPlaceholderText();
83
83
  });
84
84
 
85
- it('When user focus in and out of the \'Question Instructions\' input field without typing anything, an error message should be thrown', () => {
85
+ it('When user focus in and out of the \'Question Instructions\' input field without typing anything, an error message should not be thrown', () => {
86
86
  questionInstructionsComponent.steps.focusInAndOutOfQuestionInstructionsInputField();
87
- questionInstructionsComponent.steps.verifyQuestionInstructionsErrorMessage()
87
+ questionInstructionsComponent.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed()
88
88
  });
89
89
 
90
- it('CSS of question instructions error message', { tags: 'css' }, () => {
91
- questionInstructionsComponent.questionInstructionsWrapper()
92
- .within(() => {
93
- utilities.verifyCSS(commonComponents.errorMessage(), {
94
- 'color': css.color.errorText,
95
- 'font-size': css.fontSize.small,
96
- 'font-weight': css.fontWeight.regular
97
- });
98
- });
99
- });
100
-
101
- it('Accessibility of question instructions error message', { tags: 'a11y' }, () => {
102
- cy.checkAccessibility(questionInstructionsComponent.questionInstructionsWrapper());
103
- });
104
-
105
- it('The user should be able to add the Question Instructions and \'Error :Question Instructions are required.\' error message should disappear', () => {
90
+ it('The user should be able to add the Question Instructions', () => {
106
91
  questionInstructionsComponent.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.');
107
- questionInstructionsComponent.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
108
92
  });
109
93
 
110
94
  it('When user adds Question instruction the placeholder text should not be displayed', () => {
@@ -20,14 +20,18 @@ const steps = {
20
20
  }
21
21
 
22
22
  const tests = {
23
- verifyResetPopupContentWithCSSAndA11y: () => {
23
+ /**
24
+ * @description Verify reset popup content with css and accessibility
25
+ * @param {("graph"|"chart")} representation
26
+ */
27
+ verifyResetPopupContentWithCSSAndA11y: (representation) => {
24
28
  it('When the user clicks on the \'Reset\' button then a dialog box should appear with title \'Reset\'', () => {
25
29
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
26
30
  utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Reset');
27
31
  });
28
32
 
29
- it('The dialog box should have content \'Are you sure you want to reset the graph? This will clear all objects and revert all settings to their default values.\' with \'Cancel\' and \'Confirm reset\' buttons should be displayed', () => {
30
- utilities.verifyInnerText(dialogBoxBase.dialogBoxContent(), 'Are you sure you want to reset the graph? This will clear all objects and revert all settings to their default values.');
33
+ it(`The dialog box should have content \'Are you sure you want to reset the ${representation}? This will clear all objects and revert all settings to their default values.\' with \'Cancel\' and \'Confirm reset\' buttons should be displayed`, () => {
34
+ utilities.verifyInnerText(dialogBoxBase.dialogBoxContent(), `Are you sure you want to reset the ${representation}? This will clear all objects and revert all settings to their default values.`);
31
35
  utilities.verifyInnerText(resetPopupComponent.resetPopupConfirmResetButton(), 'Confirm reset');
32
36
  utilities.verifyInnerText(resetPopupComponent.resetPopupCancelButton(), 'Cancel');
33
37
  });
@@ -123,7 +123,10 @@ const steps = {
123
123
  },
124
124
 
125
125
  verifyPointsFieldErrorMessageIsNotDisplayed: () => {
126
- utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
126
+ scoringSectionBaseEditTab.pointsWrapper()
127
+ .within(() => {
128
+ utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
129
+ });
127
130
  },
128
131
 
129
132
  /**
@@ -248,25 +251,11 @@ const tests = {
248
251
  scoringSectionBaseEditTab.pointsInputField()
249
252
  .focus()
250
253
  .blur();
251
- utilities.verifyInnerText(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'Error: Please enter points.');
252
- utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'visible');
253
- });
254
-
255
- it('CSS of points field error message', { tags: 'css' }, () => {
256
- utilities.verifyCSS(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), {
257
- 'color': css.color.errorText,
258
- 'font-size': css.fontSize.small,
259
- 'font-weight': css.fontWeight.regular
260
- });
261
- });
262
-
263
- it('Accessibility of points field error message', { tags: 'a11y' }, () => {
264
- cy.checkAccessibility(commonComponents.errorMessage());
254
+ utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
265
255
  });
266
256
 
267
- it('When the user enters point in Points input field then the \'Please enter points.\' validation text should disappear', () => {
257
+ it('User should be able to enter points in the points input fields', () => {
268
258
  scoringSectionBaseEditTab.steps.allotPoints(10);
269
- utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
270
259
  });
271
260
  },
272
261
 
@@ -0,0 +1,16 @@
1
+ const selectors = {
2
+ multipleSelectionToggleButton: () => cy.get('.response-toggle-wrapper button[aria-label*="Multiple selection"]'),
3
+ singleSelectionToggleButton: () => cy.get('.response-toggle-wrapper button[aria-label*="Single selection"]'),
4
+ }
5
+
6
+ const steps = {
7
+ selectMultipleSelectionToggle: () => {
8
+ singleMultipleSelectionModeComponent.multipleSelectionToggleButton()
9
+ .click();
10
+ }
11
+ }
12
+
13
+ export const singleMultipleSelectionModeComponent = {
14
+ ...selectors,
15
+ steps
16
+ }
@@ -0,0 +1,46 @@
1
+ import utilities from "../../support/helpers/utilities";
2
+
3
+ const css = Cypress.env('css');
4
+
5
+ const selectors = {
6
+ styleAndLayoutCustomizationAccordion: () => cy.get('.style-and-layout-customization-wrapper .MuiAccordionSummary-root'),
7
+ }
8
+
9
+ const steps = {
10
+ expandStyleAndLayoutCustomizationAccordion: () => {
11
+ styleAndLayoutCustomizationAccordionComponent.styleAndLayoutCustomizationAccordion()
12
+ .click()
13
+ .should('have.attr', 'aria-expanded', 'true');
14
+ },
15
+ }
16
+
17
+ const tests = {
18
+ verifyStyleAndLayoutCustomizationAccordionProperties: () => {
19
+ it('By default \'Style and layout customization\' accordion should be collapsed and by clicking on the \'Style and layout customization\' accordion, user should be able to expand the accordion', () => {
20
+ styleAndLayoutCustomizationAccordionComponent.styleAndLayoutCustomizationAccordion()
21
+ .should('have.attr', 'aria-expanded', 'false');
22
+ styleAndLayoutCustomizationAccordionComponent.steps.expandStyleAndLayoutCustomizationAccordion();
23
+ });
24
+
25
+ it('CSS of \'Style and layout customization\' accordion', { tags: 'css' }, () => {
26
+ utilities.verifyCSS(styleAndLayoutCustomizationAccordionComponent.styleAndLayoutCustomizationAccordion().find('.accordion_label'), {
27
+ 'color': css.color.accordionLabel,
28
+ 'font-size': css.fontSize.default,
29
+ 'font-weight': css.fontWeight.bold
30
+ });
31
+ utilities.verifyCSS(styleAndLayoutCustomizationAccordionComponent.styleAndLayoutCustomizationAccordion().find('svg'), {
32
+ 'fill': css.color.activeButtons
33
+ });
34
+ });
35
+
36
+ it('Accessibility of \'Style and layout customization\' accordion', { tags: 'a11y' }, () => {
37
+ cy.checkAccessibility(styleAndLayoutCustomizationAccordionComponent.styleAndLayoutCustomizationAccordion().parents('.style-and-layout-customization-wrapper'));
38
+ });
39
+ }
40
+ }
41
+
42
+ export const styleAndLayoutCustomizationAccordionComponent = {
43
+ ...selectors,
44
+ steps,
45
+ tests
46
+ }
@@ -13,6 +13,7 @@ const selectors = {
13
13
  toolLabel: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__ButtonLabel"]'),
14
14
  toolDragHandleButton: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__DragIconWrapper"]'),
15
15
  toolEditIcon: () => cy.get('.tool-settings-customization-wrapper [class*="DragItemstyles__ItemContainer"] .icon-pencil'),
16
+ okButton: () => cy.get('.action-button').eq(1)
16
17
  }
17
18
 
18
19
  const steps = {
@@ -87,6 +88,11 @@ const steps = {
87
88
  clickOnToolEditIcon: (toolIndex) => {
88
89
  utilities.getNthElement(toolSettingsComponent.toolEditIcon(), toolIndex)
89
90
  .click();
91
+ },
92
+
93
+ clickOnOkButton: () => {
94
+ toolSettingsComponent.okButton()
95
+ .click();
90
96
  }
91
97
  }
92
98
 
@@ -6,6 +6,7 @@ const css = Cypress.env('css');
6
6
  const selectors = {
7
7
  ...commonComponents,
8
8
  ...createQuestionBasePage,
9
+ ...createItemPage,
9
10
  headerLabel: () => cy.get('[class*="ContentBlocksstyles__LabelContent"]'),
10
11
  titleLabel: () => cy.get('.inline-text-property-label').eq(0),
11
12
  titleInputField: () => cy.get('.input-field input').eq(0),
@@ -55,7 +56,7 @@ const selectors = {
55
56
  groupDividerPreviewTab: () => cy.get('.content-wrapper .group-divider'),
56
57
  previousPageButton: () => cy.get('.pagination-button[data-at="previous"]'),
57
58
  nextPageButton: () => cy.get('.pagination-button[data-at="next"]'),
58
- noPreviewText: () => cy.get('[class*="PassagePreviewstyles__NoPreview"]'),
59
+ noPreviewText: () => cy.get('[class*="__NoPreview"]'),
59
60
  paginationText: () => cy.get('.pagination-text'),
60
61
  previewWrapper: () => cy.get('[class*="TabsComponentstyles__PreviewWrapper"]'),
61
62
  sliderButtonPreviewTab: () => cy.get('.slider-indicators button'),
@@ -591,10 +592,25 @@ const steps = {
591
592
  .within(() => {
592
593
  utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
593
594
  utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
594
- utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), questionInstructions);
595
- utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab().eq(questionIndex), 'visible');
595
+ utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab(), questionInstructions);
596
+ utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab(), 'visible');
596
597
  });
597
598
  },
599
+
600
+ /**
601
+ * @param {number} panel denotes panel number
602
+ * @param {string} questionInstruction denotes question instruction
603
+ * @description verify question content
604
+ */
605
+ verifyContentBlockContentsPreviewPreviewTab: ({ questionInstructions, panel = 0 }) => {
606
+ createItemPage.panelWrapper()
607
+ .eq(panel)
608
+ .within(() => {
609
+ utilities.verifyElementVisibilityState(createItemPage.questionTitle(), 'notExist');
610
+ utilities.verifyInnerText(contentBlocksPage.contentWrapperPreviewTab(), questionInstructions);
611
+ utilities.verifyElementVisibilityState(contentBlocksPage.contentWrapperPreviewTab(), 'visible');
612
+ });
613
+ }
598
614
  }
599
615
 
600
616
  export const contentBlocksPage = {
@@ -21,6 +21,7 @@ const selectors = {
21
21
  rowQuestionWrapper: () => cy.get('[class*="Widgetstyles__RowWrapper"]'),
22
22
  columnQuestionWrapper: () => cy.get('[class*="ColumnComponentstyles__WidgetsWrapper"]'),
23
23
  panelWrapper: () => cy.get('.column-tab-without-scroll'),
24
+ itemContainer: () => cy.get('.item-layout-columns-wrapper-without-scroll'),
24
25
  questionTitle: () => cy.get('.question-type-text'),
25
26
  sectionsTitleWrapper: () => cy.get('[class*="TabsComponentstyles__TabListWrapper"]'),
26
27
  sectionsTitleBoxWrapper: () => cy.get('[class*="TabsComponentstyles__TabListWrapper"] .ngie-tablist-box-wrapper'),
@@ -29,6 +30,7 @@ const selectors = {
29
30
  selectedSectionUnderline: () => cy.get('[class*="MuiTabs-indicator"]').eq(1),
30
31
  sectionsNumber1Label: () => cy.get('.tablist-numbered-label').eq(0),
31
32
  sectionsNumber2Label: () => cy.get('.tablist-numbered-label').eq(1),
33
+ noPreviewText: () => cy.get('[class*="__NoPreview"]')
32
34
  }
33
35
 
34
36
  const steps = {
@@ -166,22 +168,39 @@ const steps = {
166
168
  .click();
167
169
  },
168
170
 
171
+ /**
172
+ * @param {number} panel denotes panel number
173
+ * @param {number} questionNumber denotes question number
174
+ * @param {string} questionTitle denotes question title
175
+ * @param {string} questionInstruction denotes question instruction
176
+ * @description verify question content
177
+ */
178
+ verifyBasicQuestionContentsPreview: ({ questionIndex, questionTitle, questionInstructions, panel = 0 }) => {
179
+ createItemPage.panelWrapper()
180
+ .eq(panel)
181
+ .within(() => {
182
+ utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
183
+ utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
184
+ utilities.verifyInnerText(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), questionInstructions);
185
+ utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), 'exist');
186
+ });
187
+ },
188
+
169
189
  /**
170
190
  * @param {number} panel denotes panel number
171
- * @param {number} questionNumber denotes question number
172
- * @param {string} questionTitle denotes question title
191
+ * @param {number} questionIndex denotes question number
192
+ * @param {string} totalPoints denotes total points
173
193
  * @param {string} questionInstruction denotes question instruction
174
194
  * @description verify question content
175
195
  */
176
196
 
177
- verifyBasicQuestionContentsPreview: ({ questionIndex, questionTitle, questionInstructions, panel = 0 }) => {
197
+ verifyBasicQuestionContentsPreviewPreviewTab: ({ questionIndex, questionInstructions, panel = 0 }) => {
178
198
  createItemPage.panelWrapper()
179
199
  .eq(panel)
180
200
  .within(() => {
181
- utilities.verifyInnerText(createItemPage.questionTitle().eq(questionIndex), questionTitle);
182
- utilities.verifyElementVisibilityState(createItemPage.questionTitle().eq(questionIndex), 'visible');
201
+ utilities.verifyElementVisibilityState(createItemPage.questionTitle(), 'notExist');
183
202
  utilities.verifyInnerText(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), questionInstructions);
184
- utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), 'visible');
203
+ utilities.verifyElementVisibilityState(questionInstructionsComponent.questionInstructionsText().eq(questionIndex), 'exist');
185
204
  });
186
205
  },
187
206
 
@@ -433,9 +452,9 @@ const steps = {
433
452
 
434
453
  verifyNumberedSectionNavigationStyle: () => {
435
454
  utilities.verifyInnerText(createItemPage.sectionsNumber1Label(), '1');
436
- utilities.verifyElementVisibilityState(createItemPage.sectionsNumber1Label(), 'visible');
455
+ utilities.verifyElementVisibilityState(createItemPage.sectionsNumber1Label(), 'exist');
437
456
  utilities.verifyInnerText(createItemPage.sectionsNumber2Label(), '2');
438
- utilities.verifyElementVisibilityState(createItemPage.sectionsNumber2Label(), 'visible');
457
+ utilities.verifyElementVisibilityState(createItemPage.sectionsNumber2Label(), 'exist');
439
458
  },
440
459
 
441
460
  /**
@@ -504,7 +523,55 @@ const steps = {
504
523
  });
505
524
  },
506
525
 
526
+ /**
527
+ * This function verifies the Panel width is half of the item width
528
+ * @param {number} panelIndex index of the panel
529
+ */
530
+ verifyPanelWidthIsHalfOfItemWidth: (panelIndex) => {
531
+ createItemPage.itemContainer()
532
+ .then(($el) => {
533
+ const itemWidth = $el[0].clientWidth;
534
+ const expectedPanelWidth = itemWidth / 2
535
+ createItemPage.panelWrapper()
536
+ .eq(panelIndex)
537
+ .then(($el) => {
538
+ const panelWidth = $el[0].clientWidth;
539
+ expect(expectedPanelWidth).to.be.closeTo(Math.floor(panelWidth), 1);
540
+ });
541
+ });
542
+ },
507
543
 
544
+ verifyPanelWidthEqualToItemWidth: () => {
545
+ createItemPage.itemContainer()
546
+ .then(($el) => {
547
+ const itemWidth = $el[0].clientWidth;
548
+ createItemPage.panelWrapper()
549
+ .then(($el) => {
550
+ const panelWidth = $el[0].clientWidth;
551
+ expect(itemWidth).to.be.eq(panelWidth);
552
+ });
553
+ });
554
+ },
555
+
556
+ verifyPanelWidthAndSectionWidthEqualToItemWidth: () => {
557
+ createItemPage.itemContainer()
558
+ .then(($item) => {
559
+ const itemWidth = $item[0].clientWidth;
560
+ let panelWidth = 0;
561
+ let sectionWidth = 0;
562
+ cy.get('[class*="ColumnComponentstyles__TabsComponentWrapper"]')
563
+ .then(($section) => {
564
+ sectionWidth = $section[0].clientWidth;
565
+ })
566
+ cy.get('[class*="ColumnComponentstyles__WidgetsWrapper"]')
567
+ .then(($panelWidth) => {
568
+ panelWidth = $panelWidth[0].clientWidth;
569
+ })
570
+ .then(() => {
571
+ expect(panelWidth + sectionWidth).to.be.closeTo(itemWidth, 1);
572
+ });
573
+ });
574
+ }
508
575
  }
509
576
 
510
577
  export const createItemPage = {
@@ -6,8 +6,8 @@ const selectors = {
6
6
  dialogBox: () => cy.get('[aria-labelledby="alert-dialog-title"]'),
7
7
  dialogBoxTitle: () => cy.get('.dialog-title'),
8
8
  dialogBoxContent: () => cy.get('[class*="dialog-content"]'),
9
- buttonReject: () => cy.get('.save-action-btn-wrapper button').eq(0),
10
- buttonAccept: () => cy.get('.save-action-btn-wrapper button').eq(1),
9
+ buttonReject: () => cy.get('[data-testid="reject-button"]'),
10
+ buttonAccept: () => cy.get('[data-testid="accept-button"]'),
11
11
  buttonClose: () => cy.get('[aria-label="CLOSE"]')
12
12
  }
13
13
 
@@ -28,21 +28,20 @@ const selectors = {
28
28
  cellSubheadingTextArea: () => cy.get('.heading-field-wrapper [role="textbox"]'),
29
29
  cellTextTextArea: () => cy.get('.matrix-text-field [role="textbox"]'),
30
30
  tableCellContainer: () => cy.get('[class*="DragAndDropTablestyles__CellContainer"]'),
31
- //Note: remove :visible after https://redmine.zeuslearning.com/issues/556304 gets fixed
32
- dropzoneCellSpecifyCorrectAnswerSection: () => cy.get('[class*="DragAndDropMatrixstyles__CellContainer"][class*="dropzone-cell"]:visible'),
31
+ dropzoneCellSpecifyCorrectAnswerSection: () => cy.get('[class*="CellDropZonestyles__CellContainer"][class*="dropzone-cell"]'),
33
32
  //Note: Items render twice in student view, need to remove .first()
34
- dropzoneCellPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DragAndDropMatrixstyles__CellContainer"][class*="dropzone-cell"]'),
33
+ dropzoneCellPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="CellDropZonestyles__CellContainer"][class*="dropzone-cell"]'),
35
34
  dropzoneCellNumeration: () => cy.get('.answer-numeration-number-box'),
36
- correctAnswerDropzoneCell: () => cy.get('[class*="DragAndDropMatrixstyles__AnswerCell"]'),
37
- correctAnswerDropzoneCellTickIcon: () => cy.get('[class*="DragAndDropMatrixstyles__GreenBlock"]'),
35
+ correctAnswerDropzoneCell: () => cy.get('[class*="Matrixstyles__AnswerCell"]'),
36
+ correctAnswerDropzoneCellTickIcon: () => cy.get('[class*="Matrixstyles__GreenBlock"]'),
38
37
  correctAnswersLabel: () => cy.get('.correct-answers-label'),
39
- correctAnswerOption: () => cy.get('[class*="DragAndDropMatrixstyles__AnswerWrapper"]'),
38
+ correctAnswerOption: () => cy.get('[class*="Matrixstyles__AnswerWrapper"]'),
40
39
  //Note: Items render twice in student view, need to remove .first()
41
- categoryGridPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DragAndDropMatrixstyles__TableWrapper"]').first(),
42
- optionsWrapper: () => cy.get('[class*="DragAndDropMatrixstyles__DraggableItemWrapper"]'),
40
+ categoryGridPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__TableWrapper"]').first(),
41
+ optionsWrapper: () => cy.get('[class*="CellDropZonestyles__DraggableItemWrapper"]'),
43
42
  correctIncorrectAnswerBlock: () => cy.get('[class*="correct-answer-block"]'),
44
- correctIncorrectStatusMessageText: () => cy.get('[class*="DragAndDropMatrixstyles__AnswerStatusText"]'),
45
- correctIncorrectAnswerLabel: () => cy.get('[class*="DragAndDropMatrixstyles__CorrectIncorrectLabel"]'),
43
+ correctIncorrectStatusMessageText: () => cy.get('[class*="Matrixstyles__AnswerStatusText"]'),
44
+ correctIncorrectAnswerLabel: () => cy.get('[class*="Matrixstyles__CorrectIncorrectLabel"]'),
46
45
  correctAnswerContainer: () => cy.get('[class*="_CorrectAnswerWrapper"]'),
47
46
 
48
47
  //Specify columns and rows
@@ -57,8 +56,8 @@ const selectors = {
57
56
  rightArrowNavigationButton: () => cy.get('[class*="DragAndDropTablestyles__PaginationRightControl"]'),
58
57
 
59
58
  //Specify correct answer matrix
60
- tableCellContainerSpecifyCorrectAnswerSection: () => cy.get('[class*="DragAndDropMatrixstyles__CellContainer"]'),
61
- tableRowContainerSpecifyCorrectAnswerSection: () => cy.get('[class*="DragAndDropMatrixstyles__RowContainer"]'),
59
+ tableCellContainerSpecifyCorrectAnswerSection: () => cy.get('[class*="Matrixstyles__CellContainer"]'),
60
+ tableRowContainerSpecifyCorrectAnswerSection: () => cy.get('[class*="Matrixstyles__RowContainer"]'),
62
61
  leftArrowNavigationButtonSpecifyCorrectAnswerSection: () => cy.get('.classification-set-correct-answer-wrapper [aria-label="Left Pagination Button"]'),
63
62
  rightArrowNavigationButtonSpecifyCorrectAnswerSection: () => cy.get('.classification-set-correct-answer-wrapper [aria-label="Right Pagination Button"]'),
64
63
  tableCellLabel: () => cy.get('.cell-label'),
@@ -67,11 +66,11 @@ const selectors = {
67
66
  dropzoneAriaLabelInputField: () => cy.get('[type="text"][aria-label*="Enter ARIA label"]'),
68
67
 
69
68
  //Preview tab table
70
- tableRowContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DragAndDropMatrixstyles__RowContainer"]'),
71
- leftArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Left Pagination Button"][class*="DragAndDropMatrixstyles__PaginationControl"]'),
72
- rightArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Right Pagination Button"][class*="DragAndDropMatrixstyles__PaginationControl"]'),
73
- cellContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DragAndDropMatrixstyles__CellContainer"]'),
74
- cellContainerSpecifyCorrectAnswer: () => cy.get('[class*="DragAndDropMatrixstyles__CellContainer"]'),
69
+ tableRowContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__RowContainer"]'),
70
+ leftArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Left Pagination Button"][class*="Matrixstyles__PaginationControl"]'),
71
+ rightArrowNavigationButtonPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [aria-label="Right Pagination Button"][class*="Matrixstyles__PaginationControl"]'),
72
+ cellContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__CellContainer"]'),
73
+ cellContainerSpecifyCorrectAnswer: () => cy.get('[class*="Matrixstyles__CellContainer"]'),
75
74
  incorrectOptionWrapper: () => cy.get('[class*="question-preview-wrapper"] .incorrect-answer-item'),
76
75
  correctOptionWrapper: () => cy.get('[class*="question-preview-wrapper"] .correct-answer-item'),
77
76
  perDropzoneRadioButton: () => cy.get('input[aria-label="per dropzone"]'),
@@ -88,10 +87,9 @@ const selectors = {
88
87
  penaltyPointsForIncorrectOptionInputField: () => cy.get('input[aria-label="penalty points for each incorrect option"]'),
89
88
  penaltyPointsForEachIncorrectOptionOrDropzoneLabel: () => cy.get('[class*="PenaltyScoreForEachIncorrectstyles__PointsLabel"]'),
90
89
  tableOuterBorder: () => cy.get('.table-border'),
91
- categoryGridSpecifyCorrectAnswerSection: () => cy.get('[class*="DragAndDropMatrixstyles__TableWrapper"]'),
92
- maxLimitInEachDropzoneHelpText: () => cy.get('[class*="DragAndDropMatrixstyles__MaxLimitWrapper"]'),
93
- dropzoneGridSpecifyCorrectAnswerSection: () => cy.get('[class*="DragAndDropMatrixstyles__TableWrapper"]'),
94
- dropzoneGridPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DragAndDropMatrixstyles__TableWrapper"]'),
90
+ maxLimitInEachDropzoneHelpText: () => cy.get('[class*="Matrixstyles__MaxLimitWrapper"]'),
91
+ dropzoneGridSpecifyCorrectAnswerSection: () => cy.get('[class*="Matrixstyles__TableWrapper"]'),
92
+ dropzoneGridPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="Matrixstyles__TableWrapper"]'),
95
93
  }
96
94
 
97
95
  const steps = {
@@ -618,7 +616,7 @@ const steps = {
618
616
  dragAndDropIntoCategoriesPage.tableRowContainerPreviewTab()
619
617
  .eq(0)
620
618
  .within(($element) => {
621
- utilities.verifyElementCount(cy.wrap($element).find('[class*="DragAndDropMatrixstyles__CellContainer"]'), numberOfColumns);
619
+ utilities.verifyElementCount(cy.wrap($element).find('[class*="Matrixstyles__CellContainer"]'), numberOfColumns);
622
620
  });
623
621
  },
624
622
 
@@ -638,7 +636,7 @@ const steps = {
638
636
  dragAndDropIntoCategoriesPage.tableRowContainerPreviewTab()
639
637
  .eq(0)
640
638
  .within(($element) => {
641
- utilities.verifyElementCount(cy.wrap($element).find('[class*="DragAndDropMatrixstyles__CellContainer"]'), numberOfColumns);
639
+ utilities.verifyElementCount(cy.wrap($element).find('[class*="Matrixstyles__CellContainer"]'), numberOfColumns);
642
640
  });
643
641
  },
644
642
 
@@ -1149,7 +1147,7 @@ const steps = {
1149
1147
  },
1150
1148
 
1151
1149
  clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection: (optionText) => {
1152
- dragAndDropIntoCategoriesPage.categoryGridSpecifyCorrectAnswerSection()
1150
+ dragAndDropIntoCategoriesPage.dropzoneGridSpecifyCorrectAnswerSection()
1153
1151
  .within(() => {
1154
1152
  draggableOptionContainer.draggableOption()
1155
1153
  .contains(optionText)