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
@@ -0,0 +1,244 @@
1
+
2
+ import { listOrderingPage } from "../../../pages";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ import utilities from "../../../support/helpers/utilities";
5
+ const css = Cypress.env('css');
6
+ const options = ['sprout', 'plant', 'flower', 'seed'];
7
+
8
+ describe('Create Item page - List ordering : Student view settings', () => {
9
+ before(() => {
10
+ cy.loginAs('admin');
11
+ });
12
+
13
+ describe('Randomize options : Edit tab', () => {
14
+ abortEarlySetup();
15
+ before(() => {
16
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
17
+ cy.barsPreLoaderWait();
18
+ listOrderingPage.steps.addTextInQuestionInstructionsInputField('list ordering');
19
+ listOrderingPage.steps.addInputToOptionsInputField(options);
20
+ listOrderingPage.steps.allotPoints(5);
21
+ });
22
+
23
+ listOrderingPage.tests.verifyStudentViewSettingsLabelAndCSS();
24
+
25
+ it('\'Randomize options\' checkbox and label should be displayed and by default it should be unchecked', () => {
26
+ utilities.verifyInnerText(listOrderingPage.randomizeOptionsLabel(), 'Randomize options');
27
+ utilities.verifyElementVisibilityState(listOrderingPage.randomizeOptionsCheckbox(), 'exist');
28
+ listOrderingPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
29
+ });
30
+
31
+ listOrderingPage.tests.verifyRandomizeOptionsCheckboxAndLabelUncheckedCSS();
32
+
33
+ it('When the \'Randomize options\' functionality is disabled, the options in the specify correct answer section should be displayed in the order in which the user has set them in the \'Options\' section', () => {
34
+ listOrderingPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
35
+ listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(options);
36
+ });
37
+
38
+ it('When the user enables the \'Randomize options\' functionality, then the options in the specify correct answer section should be in the order in which the user has set them in the \'Options\' section', () => {
39
+ listOrderingPage.steps.checkRandomizeOptionsCheckbox();
40
+ listOrderingPage.steps.verifyOptionsOrderInSpecifyCorrectAnswerSection(options);
41
+ });
42
+
43
+ listOrderingPage.tests.verifyRandomizeOptionsCheckboxCheckedCSSAndA11y();
44
+ });
45
+
46
+ describe('Randomize options : Preview tab', () => {
47
+ let optionsArray = [];
48
+ abortEarlySetup();
49
+ before(() => {
50
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
51
+ cy.barsPreLoaderWait();
52
+ listOrderingPage.steps.addInputToOptionsInputField(options);
53
+ listOrderingPage.steps.allotPoints(5);
54
+ });
55
+
56
+ it('When the \'Randomize options\' functionality is disabled, options in the preview tab should be displayed in the order in which the user has set them in the \'Draggable options\' section', () => {
57
+ listOrderingPage.steps.verifyRandomizeOptionsCheckboxUnchecked();
58
+ listOrderingPage.steps.switchToPreviewTab();
59
+ listOrderingPage.steps.verifyOptionsOrderInPreviewTab(options);
60
+ });
61
+
62
+ it('When the user enables the \'Randomize options\' functionality, then options in preview tab should be displayed in a random order', () => {
63
+ listOrderingPage.steps.switchToEditTab();
64
+ listOrderingPage.steps.checkRandomizeOptionsCheckbox();
65
+ listOrderingPage.steps.switchToPreviewTab();
66
+ listOrderingPage.steps.verifyRandomizeOptionOrder(options);
67
+ optionsArray = listOrderingPage.steps.getOptionsArray();
68
+ });
69
+
70
+ it('When the user switches to \'Edit tab\' and does not modify any question properties, then the order of the options should not change in the preview tab', () => {
71
+ listOrderingPage.steps.resetQuestionPreview();
72
+ listOrderingPage.steps.verifyOptionsOrderInPreviewTab(optionsArray);
73
+ });
74
+
75
+ it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the options should change from the previous random order', () => {
76
+ listOrderingPage.steps.switchToEditTab();
77
+ listOrderingPage.steps.allotPoints(12);
78
+ listOrderingPage.steps.addTextInQuestionInstructionsInputField('Question');
79
+ listOrderingPage.steps.switchToPreviewTab();
80
+ listOrderingPage.steps.verifyRandomizeOptionOrder(options);
81
+ listOrderingPage.steps.verifyOptionsAreReRandomized(optionsArray);
82
+ });
83
+
84
+ it('When the user disables the \'Randomize options\' functionality, then the options in the preview tab should be displayed in the order in which the user has set them in the edit tab', () => {
85
+ listOrderingPage.steps.switchToEditTab()
86
+ listOrderingPage.steps.uncheckRandomizeOptionsCheckbox();
87
+ listOrderingPage.steps.switchToPreviewTab();
88
+ listOrderingPage.steps.verifyOptionsOrderInPreviewTab(options);
89
+ });
90
+ });
91
+
92
+ describe('Enable outer border for question: Edit tab', () => {
93
+ abortEarlySetup();
94
+ before(() => {
95
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
96
+ cy.barsPreLoaderWait();
97
+ });
98
+
99
+ it('\'Enable outer border\' label and checkbox should be displayed. By default, \'Enable outer border for question\' checkbox should be in checked state', () => {
100
+ utilities.verifyInnerText(listOrderingPage.enableOuterBorderForQuestionLabel(), 'Enable outer border for question');
101
+ utilities.verifyElementVisibilityState(listOrderingPage.enableOuterBorderForQuestionLabel(), 'visible');
102
+ utilities.verifyElementVisibilityState(listOrderingPage.enableOuterBorderForQuestionLabel(), 'exist');
103
+ listOrderingPage.steps.verifyEnableOuterBorderForQuestionCheckboxCheckedState();
104
+ });
105
+
106
+ it('CSS of \'Enable outer border\' label and checkbox - checked state', { tags: 'css' }, () => {
107
+ utilities.verifyCSS(listOrderingPage.enableOuterBorderForQuestionLabel(), {
108
+ 'color': css.color.labelText,
109
+ 'font-size': css.fontSize.normal,
110
+ 'font-weight': css.fontWeight.regular
111
+ });
112
+ utilities.verifyCSS(listOrderingPage.enableOuterBorderForQuestionLabel().parent().find('svg g g').eq(0), {
113
+ 'fill': css.color.activeButtons
114
+ });
115
+ });
116
+
117
+ it('The user should be able to uncheck the \'Enable outer border for question\' checkbox', () => {
118
+ listOrderingPage.steps.uncheckEnableOuterBorderForQuestionCheckbox();
119
+ });
120
+
121
+ it('CSS of \'Enable outer border for question\' checkbox - unchecked state', { tags: 'css' }, () => {
122
+ utilities.verifyCSS(listOrderingPage.enableOuterBorderForQuestionCheckbox().parent().find('svg'), {
123
+ 'fill': css.color.uncheckedCheckbox
124
+ });
125
+ });
126
+
127
+ it('Accessibility of \'Enable outer border for question\' checkbox - unchecked state', { tags: 'a11y' }, () => {
128
+ cy.checkAccessibility(listOrderingPage.enableOuterBorderForQuestionCheckbox().parents('[data-ngie-testid*="enable-outer-border-for-question-checkbox"]'));
129
+ });
130
+ });
131
+
132
+ describe('Enable outer border for question: Preview tab', () => {
133
+ abortEarlySetup();
134
+ before(() => {
135
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
136
+ cy.barsPreLoaderWait();
137
+ listOrderingPage.steps.addTextInQuestionInstructionsInputField('list ordering');
138
+ listOrderingPage.steps.switchToPreviewTab();
139
+ });
140
+
141
+ it('When the \'Enable outer border for question\' checkbox is in checked state, an outer border over the question preview should be visible', () => {
142
+ listOrderingPage.steps.verifyOuterBorderOfQuestionPreview();
143
+ });
144
+
145
+ it('CSS of the outer border', { tags: 'css' }, () => {
146
+ utilities.verifyCSS(listOrderingPage.questionBorderPreviewTab(), {
147
+ 'border': `1px solid ${css.color.draggableOptionsContainerBorder}`
148
+ });
149
+ });
150
+
151
+ it('When the user unchecks the \'Enable outer border for question\' checkbox, then the outer border over the question preview should not be displayed', () => {
152
+ listOrderingPage.steps.switchToEditTab();
153
+ listOrderingPage.steps.uncheckEnableOuterBorderForQuestionCheckbox();
154
+ listOrderingPage.steps.switchToPreviewTab()
155
+ listOrderingPage.steps.verifyOuterBorderOfQuestionPreviewNotExists();
156
+ });
157
+ });
158
+
159
+ describe('Allow students to check answer: Edit tab', () => {
160
+ abortEarlySetup();
161
+ before(() => {
162
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
163
+ cy.barsPreLoaderWait();
164
+ listOrderingPage.steps.addTextInQuestionInstructionsInputField('list ordering');
165
+ listOrderingPage.steps.addInputToOptionsInputField(options);
166
+ listOrderingPage.steps.allotPoints(5);
167
+ });
168
+
169
+ listOrderingPage.tests.verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS();
170
+
171
+ listOrderingPage.tests.verifyMaximumAttemptsDropdownDisplayedWhenAllowStudentsToCheckAnswerIsChecked();
172
+
173
+ listOrderingPage.tests.verifyMaxCheckAnswerAttemptsDropdown();
174
+
175
+ listOrderingPage.tests.verifyAllowStudentsToCheckAnswerContentsCSSAndA11y();
176
+ });
177
+
178
+ describe('Allow students to check answer: Preview tab', () => {
179
+ abortEarlySetup();
180
+ before(() => {
181
+ listOrderingPage.steps.navigateToCreateQuestion('list ordering');
182
+ cy.barsPreLoaderWait();
183
+ listOrderingPage.steps.addTextInQuestionInstructionsInputField('list ordering');
184
+ listOrderingPage.steps.addInputToOptionsInputField(options);
185
+ listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
186
+ listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('sprout', 1);
187
+ listOrderingPage.steps.allotPoints(5);
188
+ });
189
+
190
+ it('When the user set correct answer order and allotted points then on checking the \'Allow students to check answer\' checkbox the Check answer button should be displayed in the preview tab', () => {
191
+ listOrderingPage.steps.checkAllowStudentToCheckAnswerCheckbox();
192
+ listOrderingPage.steps.switchToPreviewTab();
193
+ utilities.verifyInnerText(listOrderingPage.checkAnswerButton(), 'Check answer');
194
+ });
195
+
196
+ it('When the user attempts the question and clicks on the \'Check answer\' button, then correct/incorrect icons should be displayed beside the options and the check answer button should be in enabled state', () => {
197
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
198
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('plant', 0);
199
+ listOrderingPage.steps.checkAnswer();
200
+ listOrderingPage.steps.verifyIncorrectOptionIcon('plant');
201
+ listOrderingPage.steps.verifyCorrectOptionIcon('sprout');
202
+ listOrderingPage.steps.verifyIncorrectOptionIcon('seed');
203
+ listOrderingPage.steps.verifyCorrectOptionIcon('flower');
204
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
205
+ });
206
+
207
+ it('When the user selects an option from the Maximum check answer attempts dropdown then the user should be able to check answer only those many times in the preview tab', () => {
208
+ listOrderingPage.steps.switchToEditTab();
209
+ listOrderingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
210
+ listOrderingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('1');
211
+ listOrderingPage.steps.switchToPreviewTab();
212
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
213
+ listOrderingPage.steps.checkAnswer();
214
+ listOrderingPage.steps.verifyCheckAnswerButtonDisabled();
215
+ });
216
+
217
+ listOrderingPage.tests.verifyDisabledCheckAnswerButtonWithCSSAndA11y();
218
+
219
+ it('When the user updates the value of \'Maximum check answer attempts\' dropdown, it should get reflected on the Preview tab', () => {
220
+ listOrderingPage.steps.switchToEditTab();
221
+ listOrderingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
222
+ listOrderingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('3');
223
+ listOrderingPage.steps.switchToPreviewTab();
224
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
225
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
226
+ listOrderingPage.steps.checkAnswer();
227
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
228
+ });
229
+
230
+ it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
231
+ listOrderingPage.steps.switchToEditTab();
232
+ listOrderingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
233
+ listOrderingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
234
+ listOrderingPage.steps.switchToPreviewTab();
235
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
236
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
237
+ listOrderingPage.steps.checkAnswer();
238
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
239
+ listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 3);
240
+ listOrderingPage.steps.checkAnswer();
241
+ listOrderingPage.steps.verifyCheckAnswerButtonEnabled();
242
+ });
243
+ });
244
+ });
@@ -361,7 +361,7 @@ describe('Create Item page - Matching : Student view settings', () => {
361
361
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
362
362
  matchingPage.steps.switchToEditTab();
363
363
  matchingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
364
- matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
364
+ matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
365
365
  matchingPage.steps.switchToPreviewTab();
366
366
  matchingPage.steps.verifyCheckAnswerButtonEnabled();
367
367
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Petals', dropzoneIndex: 0 }]);
@@ -7,6 +7,7 @@ describe('Create item page - Multiple selection: All or nothing with alternative
7
7
  cy.loginAs('admin');
8
8
  });
9
9
 
10
+ //Need to update once - https://redmine.zeuslearning.com/issues/553666 is resolved
10
11
  describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
11
12
  abortEarlySetup();
12
13
  before(() => {
@@ -172,7 +172,7 @@ describe('Create item page - Multiple selection grid: Student view settings', ()
172
172
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
173
173
  multipleSelectionGridPage.steps.switchToEditTab();
174
174
  multipleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
175
- multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
175
+ multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
176
176
  multipleSelectionGridPage.steps.switchToPreviewTab();
177
177
  multipleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
178
178
  multipleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
@@ -0,0 +1,209 @@
1
+ import { numberLinePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ const range = 20.75;
7
+
8
+ describe('Number line: Layout section', () => {
9
+ before(() => {
10
+ cy.loginAs('admin');
11
+ });
12
+
13
+ describe('Layout section - Contents', () => {
14
+ abortEarlySetup();
15
+ before(() => {
16
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
17
+ cy.barsPreLoaderWait();
18
+ });
19
+
20
+ numberLinePage.tests.verifyLayoutSectionContent("Horizontal");
21
+
22
+ it('\'Stack responses\' label and checkbox should be displayed and by default it should be unchecked', () => {
23
+ utilities.verifyInnerText(numberLinePage.stackResponsesLabel(), 'Stack responses');
24
+ numberLinePage.steps.verifyCheckboxUnchecked('Stack responses')
25
+ });
26
+
27
+ it('Response spacing label and input field should be displayed and by default, input field should have 30 and user should be able to update the value of input field', () => {
28
+ utilities.verifyInnerText(numberLinePage.responseSpacingLabel(), 'Response spacing');
29
+ utilities.verifyElementVisibilityState(numberLinePage.responseSpacingLabel(), 'visible');
30
+ numberLinePage.steps.verifyTextInResponseSpacingInputField(30);
31
+ utilities.verifyElementVisibilityState(numberLinePage.responseSpacingInputField(), 'visible');
32
+ numberLinePage.steps.enterTextInResponseSpacingInputField(25);
33
+ numberLinePage.steps.verifyTextInResponseSpacingInputField(25);
34
+ });
35
+ });
36
+
37
+ describe('Layout section - Edit tab functionality', () => {
38
+ abortEarlySetup();
39
+ before(() => {
40
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
41
+ cy.barsPreLoaderWait();
42
+ });
43
+
44
+ it('When user updates value for Response spacing input field, it should get updated in Number line section and Specify correct answer section', () => {
45
+ numberLinePage.steps.enterTextInResponseSpacingInputField(28);
46
+ numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
47
+ numberLinePage.steps.verifyResponseSpacingSpecifyCorrectAnswerSection("Horizontal", 28);
48
+ });
49
+
50
+ numberLinePage.tests.verifyLayoutSectionEditTabFunctionality("Horizontal");
51
+
52
+ //Note: Unable to check on cypress, added to manual sheet
53
+ it('When user checks Stack responses checkbox, then points should be plotted above the number line in number line section and specify correct answer section', () => {
54
+ numberLinePage.steps.checkCheckbox('Stack responses');
55
+ });
56
+
57
+ it('When user unchecks Stack responses checkbox, then points should be plotted on the number line in number line section and specify correct answer section', () => {
58
+ numberLinePage.steps.uncheckCheckbox('Stack responses');
59
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
60
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2]);
61
+ });
62
+
63
+ it('When Limit number of responses checkbox is checked then input field should be displayed beside the label and input field should have 5 pre-filled in it then user should be able to plot only 5 responses on number line in specify correct answer section', () => {
64
+ numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(5);
65
+ for (let index = 0; index < 6; index++) {
66
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
67
+ };
68
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4]);
69
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [5]);
70
+ });
71
+
72
+ it('When user update the value in Limit number of responses input field then specified number of responses should be updated accordingly for number line in specify correct answer section and when user plots responses more than specified number then error \'Error: Only # answers are permitted.\'', () => {
73
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
74
+ numberLinePage.steps.confirmReset();
75
+ numberLinePage.steps.enterTextInLimitNumberOfResponsesInputField(6);
76
+ numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(6);
77
+ for (let index = 0; index < 7; index++) {
78
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
79
+ };
80
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
81
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [6]);
82
+ utilities.verifyElementVisibilityState(numberLinePage.errorMessage(), 'visible');
83
+ utilities.verifyInnerText(numberLinePage.errorMessage().last(), 'Error: Only 6 answers are permitted.');
84
+ });
85
+
86
+ it('CSS of error message', { tags: 'css' }, () => {
87
+ utilities.verifyCSS(numberLinePage.errorMessage().last(), {
88
+ 'color': css.color.errorText,
89
+ 'font-size': css.fontSize.small,
90
+ 'font-weight': css.fontWeight.regular
91
+ });
92
+ });
93
+
94
+ it('Accessibility of error message', { tags: 'a11y' }, () => {
95
+ cy.checkAccessibility(numberLinePage.errorMessage());
96
+ });
97
+
98
+ it('When user clicks outside the number line then error message should disappear', () => {
99
+ numberLinePage.steps.clickOnToolOptionsSpecifyCorrectAnswer();
100
+ utilities.verifyElementVisibilityState(numberLinePage.errorMessage(), 'notExist');
101
+ });
102
+
103
+ it('When user uncheck Limit number of responses checkbox then Limit number of responses input field should disappear and user should be able to plot any number of responses on number line in specify correct answer section', () => {
104
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
105
+ numberLinePage.steps.confirmReset();
106
+ numberLinePage.steps.uncheckCheckbox('Limit number of responses');
107
+ utilities.verifyElementVisibilityState(numberLinePage.limitNumbersOfResponsesInputField(), 'notExist');
108
+ for (let index = 0; index < 6; index++) {
109
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
110
+ };
111
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
112
+ });
113
+ });
114
+
115
+ describe('Layout section - Preview tab functionality', () => {
116
+ abortEarlySetup();
117
+ before(() => {
118
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
119
+ cy.barsPreLoaderWait();
120
+ });
121
+
122
+ it('When user updates value for Response spacing input field, it should get updated in preview tab', () => {
123
+ numberLinePage.steps.switchToEditTab();
124
+ numberLinePage.steps.enterTextInResponseSpacingInputField(28);
125
+ numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
126
+ numberLinePage.steps.switchToPreviewTab();
127
+ numberLinePage.steps.verifyResponseSpacingPreviewTab('Horizontal', 28);
128
+ });
129
+
130
+ numberLinePage.tests.verifyLayoutSectionPreviewTabFunctionality("Horizontal");
131
+
132
+ //Note: Unable to check on cypress, added to manual sheet
133
+ it('When user checks Stack responses checkbox, then points should be plotted above the number line in preview tab', () => {
134
+ numberLinePage.steps.switchToEditTab();
135
+ numberLinePage.steps.checkCheckbox('Stack responses');
136
+ numberLinePage.steps.switchToPreviewTab();
137
+ });
138
+
139
+ it('When user unchecks Stack responses checkbox, then points should be plotted on the number line in preview tab', () => {
140
+ numberLinePage.steps.switchToEditTab();
141
+ numberLinePage.steps.uncheckCheckbox("Stack responses");
142
+ numberLinePage.steps.switchToPreviewTab();
143
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
144
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab(range, [2]);
145
+ });
146
+
147
+ it('When Limit number of responses checkbox is checked then input field should be displayed beside the label and input field should have 5 pre-filled in it then user should be able to plot only 5 responses on number line in preview tab', () => {
148
+ numberLinePage.steps.switchToEditTab();
149
+ numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(5);
150
+ numberLinePage.steps.switchToPreviewTab();
151
+ for (let index = 0; index < 6; index++) {
152
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, index);
153
+ };
154
+ numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0, 1, 2, 3, 4]);
155
+ numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [5]);
156
+ });
157
+
158
+ it('When user update the value in Limit number of responses input field then specified number of responses should be updated accordingly for number line in preview tab and when user plots responses more than specified number then error \'Only # answers are permitted.\'', () => {
159
+ numberLinePage.steps.switchToEditTab();
160
+ numberLinePage.steps.enterTextInLimitNumberOfResponsesInputField(6);
161
+ numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(6);
162
+ numberLinePage.steps.switchToPreviewTab();
163
+ for (let index = 0; index < 7; index++) {
164
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, index);
165
+ };
166
+ numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0, 1, 2, 3, 4, 5]);
167
+ numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [6]);
168
+ utilities.verifyElementVisibilityState(numberLinePage.warningMessage(), 'visible');
169
+ utilities.verifyInnerText(numberLinePage.warningMessage(), 'Only 6 answers are permitted.');
170
+ });
171
+
172
+ it('CSS of warning message', { tags: 'css' }, () => {
173
+ utilities.verifyCSS(numberLinePage.warningMessage(), {
174
+ 'color': css.color.warningMessage,
175
+ 'font-size': css.fontSize.normal,
176
+ 'font-weight': css.fontWeight.regular
177
+ });
178
+ utilities.verifyCSS(numberLinePage.warningMessageContainer().find('svg'), {
179
+ 'color': css.color.warningMessage,
180
+ });
181
+ utilities.verifyCSS(numberLinePage.warningMessageContainer(), {
182
+ 'border': `1px solid ${css.color.warningContainerBorder}`
183
+ });
184
+ utilities.verifyCSS(numberLinePage.warningMessageContainer(), {
185
+ 'background-color': css.color.warningContainerBackground
186
+ });
187
+ });
188
+
189
+ it('Accessibility of error message', { tags: 'a11y' }, () => {
190
+ cy.checkAccessibility(numberLinePage.warningMessage());
191
+ });
192
+
193
+ it('When user clicks outside the number line then error message should disappear', () => {
194
+ numberLinePage.steps.clickOnToolOptionsPreviewTab();
195
+ utilities.verifyElementVisibilityState(numberLinePage.warningMessage(), 'notExist');
196
+ });
197
+
198
+ it('When user uncheck Limit number of responses checkbox then user should be able to plot any number of responses on number line in specify correct answer section', () => {
199
+ numberLinePage.steps.switchToEditTab();
200
+ numberLinePage.steps.uncheckCheckbox('Limit number of responses');
201
+ utilities.verifyElementVisibilityState(numberLinePage.limitNumbersOfResponsesInputField(), 'notExist');
202
+ numberLinePage.steps.switchToPreviewTab();
203
+ for (let index = 0; index < 6; index++) {
204
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, index);
205
+ numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [index]);
206
+ };
207
+ });
208
+ });
209
+ });
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: All or nothing with alternative answer', () => {
7
7
  before(() => {
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: All or nothing with alternative answer', () => {
7
7
  before(() => {
@@ -3,7 +3,7 @@ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
5
5
  const css = Cypress.env('css');
6
- const range = 20.4472843;
6
+ const range = 20.75;
7
7
 
8
8
  describe('Create Item page - Number line: All or nothing with alternative answer', () => {
9
9
  before(() => {
@@ -176,7 +176,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
176
176
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
177
177
  });
178
178
 
179
- it.only('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
179
+ it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
180
180
  numberLinePage.steps.resetQuestionPreview();
181
181
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Point');
182
182
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
@@ -212,7 +212,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
212
212
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
213
213
  });
214
214
 
215
- it.only('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
215
+ it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
216
216
  numberLinePage.steps.resetQuestionPreview();
217
217
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment right/up hollow pt');
218
218
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, -4);
@@ -235,7 +235,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
235
235
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
236
236
  });
237
237
 
238
- it.only('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
238
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
239
239
  numberLinePage.steps.resetQuestionPreview();
240
240
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
241
241
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: Manually and non scored', () => {
7
7
  before(() => {
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create item page - Number line: Partial equal weights', () => {
7
7
  before(() => {
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: Partial equal weights with alternative answer', () => {
7
7
  before(() => {
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: Partial equal weights with alternative answer', () => {
7
7
  before(() => {
@@ -1,7 +1,7 @@
1
1
  import { numberLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const unselectedToolOption = ['Left/down ray', 'Right/up ray', 'Left/down ray w/ hollow pt', 'Right/up ray w/ hollow pt'];
4
- const range = 20.4472843;
4
+ const range = 20.75;
5
5
 
6
6
  describe('Create Item page - Number line: Partial equal weights with alternative answer', () => {
7
7
  before(() => {