itemengine-cypress-automation 1.0.189-e2e-execution-crash-83cdbd4.0 → 1.0.189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +79 -0
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +647 -0
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +429 -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 +1 -1
  11. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  12. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  13. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +2 -11
  14. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +359 -0
  15. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  16. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -8
  17. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +417 -28
  18. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  19. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  30. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  31. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  35. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  36. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  37. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  38. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  39. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  40. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
  41. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
  42. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  43. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +2 -2
  44. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +143 -0
  45. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +132 -0
  46. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +143 -0
  47. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +144 -0
  48. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +143 -0
  49. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +131 -0
  50. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +87 -0
  51. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +446 -0
  52. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  53. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +194 -0
  54. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +195 -0
  55. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +274 -0
  56. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +48 -0
  57. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +144 -0
  58. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +252 -0
  59. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +102 -0
  60. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +256 -0
  61. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +253 -0
  62. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +308 -0
  63. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
  64. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +151 -0
  65. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +196 -0
  66. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +227 -0
  67. package/cypress/e2e/ILC/ListOrderingDropdown/additionalSettings.js +91 -0
  68. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +230 -0
  69. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +124 -0
  70. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +221 -0
  71. package/cypress/e2e/ILC/ListOrderingDropdown/editTabScoring.js +203 -0
  72. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +71 -0
  73. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +197 -0
  74. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +201 -0
  75. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +115 -0
  76. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +183 -0
  77. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
  78. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
  79. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +273 -0
  80. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  81. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +128 -0
  82. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +279 -0
  83. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +109 -0
  84. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +278 -0
  85. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +278 -0
  86. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +335 -0
  87. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +250 -0
  88. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +161 -0
  89. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +216 -0
  90. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +252 -0
  91. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +118 -0
  92. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
  93. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  94. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +155 -0
  95. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +195 -0
  96. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +78 -0
  97. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +69 -0
  98. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  99. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
  100. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +112 -0
  101. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +244 -0
  102. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  103. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
  104. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  105. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +209 -0
  106. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
  107. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
  108. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  109. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
  110. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +1 -1
  111. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
  112. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +1 -1
  113. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +1 -1
  114. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +58 -2
  115. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  116. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +1 -1
  117. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  118. package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -1
  119. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +33 -0
  120. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +50 -0
  121. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +2 -2
  122. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -1
  123. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +2 -2
  124. package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
  125. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +1 -1
  126. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +696 -0
  127. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +173 -0
  128. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +211 -0
  129. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +75 -0
  130. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +204 -0
  131. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +229 -0
  132. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +229 -0
  133. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +229 -0
  134. package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +169 -0
  135. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +274 -0
  136. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +433 -0
  137. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +274 -0
  138. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +274 -0
  139. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +249 -0
  140. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +135 -0
  141. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +210 -0
  142. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +248 -0
  143. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +115 -0
  144. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +288 -0
  145. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +153 -0
  146. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +326 -0
  147. package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +234 -0
  148. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +164 -0
  149. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +80 -0
  150. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +204 -0
  151. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +79 -0
  152. package/cypress/e2e/ILC/NumberLineLabel/minimumScoringPenaltyPointsAndRoundingDropdown.js +85 -0
  153. package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +51 -0
  154. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +120 -0
  155. package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +74 -0
  156. package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +183 -0
  157. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +76 -0
  158. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +292 -0
  159. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/checkAnswerFunctionalityForAllViews.smoke.js +155 -0
  160. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +166 -0
  161. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +360 -0
  162. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +80 -0
  163. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +111 -0
  164. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  165. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
  166. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  167. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  168. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  169. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
  170. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
  171. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
  172. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
  173. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
  174. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
  175. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  176. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
  177. package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
  178. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +6 -7
  179. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +179 -0
  180. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
  181. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
  182. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
  183. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
  184. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
  185. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
  186. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  187. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  188. package/cypress/e2e/ILC/VideoResponseNew/additionalSettingsBasic.js +77 -0
  189. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +313 -0
  190. package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +99 -0
  191. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +171 -0
  192. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +179 -0
  193. package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +79 -0
  194. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +201 -0
  195. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +567 -0
  196. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +194 -0
  197. package/cypress/fixtures/constants.js +1 -1
  198. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  199. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  200. package/cypress/fixtures/theme/ilc.json +22 -18
  201. package/cypress/pages/audioPlayerPage.js +668 -446
  202. package/cypress/pages/audioResponsePage.js +8 -80
  203. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  204. package/cypress/pages/chartsBarPage.js +231 -0
  205. package/cypress/pages/chartsDotPlotPage.js +8 -0
  206. package/cypress/pages/chartsLinePage.js +42 -0
  207. package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +58 -0
  208. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -23
  209. package/cypress/pages/components/autoScoredStudentViewSettings.js +6 -6
  210. package/cypress/pages/components/barAndLineChartComponent.js +120 -0
  211. package/cypress/pages/components/chartsCommonComponent.js +105 -0
  212. package/cypress/pages/components/commonComponents.js +1 -0
  213. package/cypress/pages/components/draggableOptionContainer.js +2 -1
  214. package/cypress/pages/components/equationEditorFlyout.js +3 -2
  215. package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
  216. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  217. package/cypress/pages/components/imageCanvasComponent.js +2 -1
  218. package/cypress/pages/components/index.js +7 -0
  219. package/cypress/pages/components/layoutSectionComponent.js +1156 -0
  220. package/cypress/pages/components/limitNumberOfRetakeComponent.js +90 -0
  221. package/cypress/pages/components/numberLineCommonComponent.js +685 -0
  222. package/cypress/pages/components/optionsWrapperComponent.js +13 -2
  223. package/cypress/pages/components/playbackControlsBaseComponent.js +20 -13
  224. package/cypress/pages/components/questionInstructionsComponent.js +3 -19
  225. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
  226. package/cypress/pages/components/toolSettingsComponent.js +6 -0
  227. package/cypress/pages/contentBlocksPage.js +18 -2
  228. package/cypress/pages/createItemPage.js +75 -8
  229. package/cypress/pages/dialogBoxBase.js +2 -2
  230. package/cypress/pages/drawingResponsePage.js +24 -4
  231. package/cypress/pages/feedbackScalePage.js +3 -0
  232. package/cypress/pages/graphingPage.js +19 -1
  233. package/cypress/pages/gridFillPage.js +47 -59
  234. package/cypress/pages/index.js +5 -1
  235. package/cypress/pages/itemPreviewSettingsPage.js +4 -0
  236. package/cypress/pages/listOrderingPage.js +561 -555
  237. package/cypress/pages/matchingPage.js +1 -1
  238. package/cypress/pages/multipleSelectionPage.js +23 -1
  239. package/cypress/pages/numberLineLabelPage.js +1086 -0
  240. package/cypress/pages/numberLinePage.js +696 -78
  241. package/cypress/pages/rulerPage.js +6 -2
  242. package/cypress/pages/textSelectionPage.js +461 -23
  243. package/cypress/pages/videoResponsePage.js +393 -81
  244. package/package.json +1 -1
@@ -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
  });
@@ -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', () => {
@@ -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),
@@ -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
 
@@ -59,8 +59,8 @@ const selectors = {
59
59
  }
60
60
  },
61
61
  previewTabToolbarOptionTooltip: () => cy.get('.edit-question-preview-wrapper [role="tooltip"][class*="Tooltipstyles__TooltipContent"]'),
62
- previewTabLowerCanvas: () => cy.get('.edit-question-preview-wrapper .lower-canvas'),
63
- previewTabUpperCanvas: () => cy.get('.edit-question-preview-wrapper .upper-canvas'),
62
+ previewTabLowerCanvas: () => cy.get('.question-preview-wrapper .lower-canvas'),
63
+ previewTabUpperCanvas: () => cy.get('.question-preview-wrapper .upper-canvas'),
64
64
  previewTabSecondaryToolbarOptionLabel: () => cy.get('.edit-question-preview-wrapper .drawing-tool__secondary-toolbar__tool-name'),
65
65
  previewTabSecondaryToolbarOption: (ariaLabel = null) => {
66
66
  if (ariaLabel) {
@@ -198,7 +198,7 @@ const selectors = {
198
198
  editTabColorPickerPopupOpacityPalette: () => cy.get('.react-colorful__last-control .react-colorful__interactive'),
199
199
  editTabColorPickerPopupOpacityPicker: () => cy.get('.react-colorful__last-control .react-colorful__pointer'),
200
200
  editTabColorPickerPopupCancelButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(0),
201
- editTabColorPickerPopupOkButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(2),
201
+ editTabColorPickerPopupOkButton: () => cy.get('.compact-popup-action-button-wrapper button').eq(1),
202
202
 
203
203
  //TODO: Student view: Need to remove once https://redmine.zeuslearning.com/issues/556302 is fixed
204
204
  studentAndGradingViewDrawingToolbarOption: (drawingOption = null) => {
@@ -208,7 +208,8 @@ const selectors = {
208
208
  return cy.get('.drawing-tool__button')
209
209
  }
210
210
  },
211
- studentViewUpperCanvas: () => cy.get('.upper-canvas').eq(0)
211
+ studentViewUpperCanvas: () => cy.get('.upper-canvas').eq(0),
212
+ gradingViewPlayFeatureButton: () => cy.get('[class*="DrawingResponsePreviewstyles__PlayBtnWrapper"] button')
212
213
  }
213
214
 
214
215
  const steps = {
@@ -1225,6 +1226,25 @@ const steps = {
1225
1226
  });
1226
1227
  });
1227
1228
  },
1229
+
1230
+ /**
1231
+ * This function sets basic question and saves it
1232
+ * @param {string} inputQuestion input for the question instruction
1233
+ * @param {number} points for the question
1234
+ */
1235
+ createBasicDrawingResponseQuestion: (inputQuestion, points) => {
1236
+ drawingResponsePage.questionInstructionsInputField()
1237
+ .type(inputQuestion);
1238
+ drawingResponsePage.pointsInputField()
1239
+ .type(points);
1240
+ drawingResponsePage.saveQuestionButton()
1241
+ .click();
1242
+ },
1243
+
1244
+ clickOnPlayButtonInGradingView: () => {
1245
+ drawingResponsePage.gradingViewPlayFeatureButton()
1246
+ .click();
1247
+ }
1228
1248
  }
1229
1249
 
1230
1250
  const tests = {
@@ -1,11 +1,13 @@
1
1
  import { additionalSettingsPanel, commonComponents, createQuestionBasePage, questionInstructionsComponent, autoScoredScoringPreviewTab, studentViewSettingsLabelComponent } from "./components"
2
2
  import utilities from "../support/helpers/utilities";
3
+ import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
3
4
  const css = Cypress.env('css');
4
5
 
5
6
  const selectors = {
6
7
  ...questionInstructionsComponent,
7
8
  ...commonComponents,
8
9
  ...additionalSettingsPanel,
10
+ ...selectQuestionResourceToolPage,
9
11
  specifyFeedbackScaleOptionsLabel: () => cy.get('[class*="FeedbackScalestyles__SpecifyFeedbackLabel"]'),
10
12
  feedbackScaleStyleDropdownLabel: () => cy.get('#feedback-scale-style-dropdown-label'),
11
13
  feedbackScaleStyleDropdown: () => cy.get('#feedback-scale-style-select'),
@@ -103,6 +105,7 @@ const steps = {
103
105
  ...additionalSettingsPanel.steps,
104
106
  ...questionInstructionsComponent.steps,
105
107
  ...autoScoredScoringPreviewTab.steps,
108
+ ...selectQuestionResourceToolPage.steps,
106
109
  /**
107
110
  * Adds legend text to a specific option in the Legend Text accordion.
108
111
  * @param {number} optionIndex - The index of the option in the Legend Text accordion.
@@ -1554,7 +1554,7 @@ const steps = {
1554
1554
  */
1555
1555
  selectGraphToolOptionPreviewTab: (toolOption) => {
1556
1556
  graphingPage.graphToolOptionPreviewTab(toolOption)
1557
- .click();
1557
+ .dblclick();
1558
1558
  },
1559
1559
 
1560
1560
  /**
@@ -1664,6 +1664,24 @@ const steps = {
1664
1664
 
1665
1665
  verifyCorrectAnswerSectionNotExist: () => {
1666
1666
  utilities.verifyElementVisibilityState(utilities.getNthElement(graphingPage.graphCorrectAnswerSection(), 1), 'notExist');
1667
+ },
1668
+
1669
+ /**
1670
+ * This function sets basic question and saves it
1671
+ * @param {string} inputQuestion input for the question instruction
1672
+ * @param {number} points for the question
1673
+ */
1674
+ createBasicGraphingResponseQuestion: (inputQuestion, points) => {
1675
+ graphingPage.questionInstructionsInputField()
1676
+ .type(inputQuestion);
1677
+ graphingPage.pointsInputField()
1678
+ .type(points);
1679
+ graphingPage.steps.selectGraphToolOptionEditTab('Line');
1680
+ graphingPage.steps.plotPointsOnGraphEditTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
1681
+ graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Line');
1682
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -4, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 4, yRange: 20 }]);
1683
+ graphingPage.saveQuestionButton()
1684
+ .click();
1667
1685
  }
1668
1686
  }
1669
1687