itemengine-cypress-automation 1.0.189-e2e-execution-crash-83cdbd4.0 → 1.0.190-7thMayFixes-fcaf7b8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +81 -0
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +620 -0
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +402 -0
  4. package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +596 -0
  5. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +162 -0
  6. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +792 -0
  7. package/cypress/e2e/ILC/AudioPlayerNew/studentViewSettings.js +253 -0
  8. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +313 -0
  9. package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +1 -22
  10. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -2
  11. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  12. package/cypress/e2e/ILC/AudioResponseNew/editAndPreviewTabScoringSection.js +1 -1
  13. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +1 -0
  14. package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +4 -20
  15. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  16. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +2 -11
  17. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
  18. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +181 -0
  19. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +283 -0
  20. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +625 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +1 -1
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  23. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
  24. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +0 -3
  25. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
  26. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +0 -4
  27. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +0 -1
  28. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -8
  29. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +4 -24
  30. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -9
  31. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +418 -29
  32. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  33. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +0 -2
  34. package/cypress/e2e/ILC/EssayResponse/headerSection.js +3 -18
  35. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +0 -1
  36. package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +0 -1
  37. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +0 -5
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +0 -4
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +3 -3
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +5 -5
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +0 -4
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  53. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  54. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
  55. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  56. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +1 -2
  57. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
  58. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -3
  59. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  60. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  61. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  62. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  63. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -1
  64. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  65. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -6
  66. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
  67. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
  68. package/cypress/e2e/ILC/GridFill/headerSection.js +4 -5
  69. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  70. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +2 -2
  71. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +143 -0
  72. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +132 -0
  73. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +143 -0
  74. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +144 -0
  75. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +143 -0
  76. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +131 -0
  77. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +87 -0
  78. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +446 -0
  79. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  80. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +276 -0
  81. package/cypress/e2e/ILC/ImageHighlight/checkAnswerFunctionalityForAllViews.smoke.js +141 -0
  82. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +150 -0
  83. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +194 -0
  84. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +195 -0
  85. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +274 -0
  86. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +48 -0
  87. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +144 -0
  88. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +252 -0
  89. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +102 -0
  90. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +256 -0
  91. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +253 -0
  92. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +308 -0
  93. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +151 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +196 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +227 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/additionalSettings.js +91 -0
  98. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +230 -0
  99. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +124 -0
  100. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +221 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/editTabScoring.js +203 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +71 -0
  103. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +197 -0
  104. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +201 -0
  105. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +115 -0
  106. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +183 -0
  107. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
  108. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
  109. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +273 -0
  110. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  111. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +128 -0
  112. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +279 -0
  113. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +109 -0
  114. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +278 -0
  115. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +278 -0
  116. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +335 -0
  117. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +250 -0
  118. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +161 -0
  119. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +216 -0
  120. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +252 -0
  121. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +118 -0
  122. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
  123. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
  124. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +155 -0
  125. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +195 -0
  126. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +78 -0
  127. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +69 -0
  128. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
  129. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
  130. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +112 -0
  131. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +244 -0
  132. package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
  133. package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
  134. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  135. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
  136. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  137. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +209 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +23 -21
  139. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +5 -3
  140. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +8 -6
  141. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
  142. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +1 -1
  143. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
  144. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +1 -1
  145. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +1 -1
  146. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +60 -3
  147. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
  148. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +2 -9
  149. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  150. package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -4
  151. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +33 -0
  152. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +50 -0
  153. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +2 -2
  154. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -1
  155. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +3 -3
  156. package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
  157. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +1 -1
  158. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +697 -0
  159. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +173 -0
  160. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +211 -0
  161. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +75 -0
  162. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +204 -0
  163. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +231 -0
  164. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +231 -0
  165. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +231 -0
  166. package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +169 -0
  167. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +274 -0
  168. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +433 -0
  169. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +274 -0
  170. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +274 -0
  171. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +249 -0
  172. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +135 -0
  173. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +210 -0
  174. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +248 -0
  175. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +115 -0
  176. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +289 -0
  177. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +154 -0
  178. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +326 -0
  179. package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +234 -0
  180. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +164 -0
  181. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +80 -0
  182. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +204 -0
  183. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +79 -0
  184. package/cypress/e2e/ILC/NumberLineLabel/minimumScoringPenaltyPointsAndRoundingDropdown.js +85 -0
  185. package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +51 -0
  186. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +120 -0
  187. package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +74 -0
  188. package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +183 -0
  189. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +76 -0
  190. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +292 -0
  191. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/checkAnswerFunctionalityForAllViews.smoke.js +155 -0
  192. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +166 -0
  193. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +360 -0
  194. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +80 -0
  195. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +111 -0
  196. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  197. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
  198. package/cypress/e2e/ILC/ShortTextResponseNew/editTabScoringSection.js +1 -1
  199. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -7
  200. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -2
  201. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  202. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -2
  203. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
  204. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
  205. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
  206. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
  207. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
  208. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
  209. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
  210. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  211. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
  212. package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
  213. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +6 -7
  214. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +179 -0
  215. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
  216. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
  217. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
  218. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
  219. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
  220. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
  221. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  222. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  223. package/cypress/e2e/ILC/VideoResponseNew/additionalSettingsBasic.js +77 -0
  224. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +313 -0
  225. package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +99 -0
  226. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +171 -0
  227. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +179 -0
  228. package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +79 -0
  229. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +201 -0
  230. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +567 -0
  231. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +192 -0
  232. package/cypress/fixtures/constants.js +1 -1
  233. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  234. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  235. package/cypress/fixtures/theme/ilc.json +22 -18
  236. package/cypress/pages/audioPlayerPage.js +669 -445
  237. package/cypress/pages/audioResponsePage.js +10 -80
  238. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  239. package/cypress/pages/chartsBarPage.js +517 -0
  240. package/cypress/pages/chartsDotPlotPage.js +8 -0
  241. package/cypress/pages/chartsLinePage.js +42 -0
  242. package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +58 -0
  243. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +19 -26
  244. package/cypress/pages/components/autoScoredStudentViewSettings.js +7 -7
  245. package/cypress/pages/components/barAndLineChartComponent.js +123 -0
  246. package/cypress/pages/components/chartsCommonComponent.js +138 -0
  247. package/cypress/pages/components/commonComponents.js +1 -0
  248. package/cypress/pages/components/draggableOptionContainer.js +2 -1
  249. package/cypress/pages/components/equationEditorFlyout.js +3 -2
  250. package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
  251. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  252. package/cypress/pages/components/imageCanvasComponent.js +5 -4
  253. package/cypress/pages/components/index.js +8 -0
  254. package/cypress/pages/components/layoutSectionComponent.js +1156 -0
  255. package/cypress/pages/components/limitNumberOfRetakeComponent.js +90 -0
  256. package/cypress/pages/components/numberLineCommonComponent.js +685 -0
  257. package/cypress/pages/components/optionsWrapperComponent.js +13 -2
  258. package/cypress/pages/components/playbackControlsBaseComponent.js +20 -13
  259. package/cypress/pages/components/questionInputFieldComponent.js +2 -1
  260. package/cypress/pages/components/questionInstructionsComponent.js +3 -19
  261. package/cypress/pages/components/resetPopupComponent.js +7 -3
  262. package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -17
  263. package/cypress/pages/components/singleMultipleSelectionModeComponent.js +16 -0
  264. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
  265. package/cypress/pages/components/toolSettingsComponent.js +6 -0
  266. package/cypress/pages/contentBlocksPage.js +19 -3
  267. package/cypress/pages/createItemPage.js +75 -8
  268. package/cypress/pages/dialogBoxBase.js +2 -2
  269. package/cypress/pages/dragAndDropIntoCategoriesPage.js +22 -24
  270. package/cypress/pages/drawingResponsePage.js +25 -4
  271. package/cypress/pages/feedbackScalePage.js +3 -0
  272. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -0
  273. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  274. package/cypress/pages/graphingPage.js +19 -1
  275. package/cypress/pages/gridFillPage.js +47 -59
  276. package/cypress/pages/imageHighlightPage.js +364 -0
  277. package/cypress/pages/index.js +6 -1
  278. package/cypress/pages/itemPreviewSettingsPage.js +4 -0
  279. package/cypress/pages/listOrderingPage.js +561 -555
  280. package/cypress/pages/matchingPage.js +3 -2
  281. package/cypress/pages/multipleSelectionPage.js +23 -1
  282. package/cypress/pages/numberLineLabelPage.js +1093 -0
  283. package/cypress/pages/numberLinePage.js +696 -78
  284. package/cypress/pages/protractorPage.js +1 -1
  285. package/cypress/pages/readingRulerPage.js +1 -1
  286. package/cypress/pages/rulerPage.js +9 -5
  287. package/cypress/pages/textEntryMathPage.js +2 -2
  288. package/cypress/pages/textSelectionPage.js +461 -23
  289. package/cypress/pages/videoResponsePage.js +396 -83
  290. package/package.json +1 -1
  291. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
  292. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -0,0 +1,625 @@
1
+ import { chartsBarPage, itemPreviewPage } 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 previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
7
+ const views = utilities.getViews(previewContentViews);
8
+ var itemReferenceID = "";
9
+ const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
10
+
11
+ describe('Create item page: Charts - Bar - Preview contents in all views', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ views.forEach((view) => {
17
+ describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
18
+ abortEarlySetup();
19
+ before(() => {
20
+ switch (view) {
21
+ case 'Question preview':
22
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
23
+ cy.barsPreLoaderWait();
24
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
25
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
26
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
27
+ chartsBarPage.steps.setGraphTitle('Graph of profits');
28
+ chartsBarPage.steps.setYAxisLabel('Profit');
29
+ chartsBarPage.steps.setXAxisLabel('Year');
30
+ chartsBarPage.steps.setMaxYValue(20);
31
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 20 });
32
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 20 });
33
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 20 });
34
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 20 });
35
+ chartsBarPage.steps.lockBar(1);
36
+ chartsBarPage.steps.allotPoints(10);
37
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 20 });
38
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 20 });
39
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 20 });
40
+ chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
41
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 8, range: 20 });
42
+ chartsBarPage.steps.switchToPreviewTab();
43
+ break;
44
+ case 'Item view':
45
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
46
+ break;
47
+ case 'Item preview':
48
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
49
+ chartsBarPage.steps.switchToPreviewTab();
50
+ break;
51
+ case 'Student view':
52
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
53
+ break;
54
+ default:
55
+ throw new Error('Invalid view');
56
+ }
57
+ });
58
+
59
+ after(() => {
60
+ if (view === 'Question preview') {
61
+ chartsBarPage.steps.clickOnSaveQuestionButton();
62
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
63
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
64
+ }
65
+ });
66
+
67
+ it('Question instructions should be visible', () => {
68
+ utilities.verifyInnerText(chartsBarPage.questionInstructionsText(), 'Set the bar on the chart for the profits of the years');
69
+ utilities.verifyElementVisibilityState(chartsBarPage.questionInstructionsText(), 'visible');
70
+ });
71
+
72
+ it('The toolbar options - Add bar, Undo, Redo and Reset should be displayed in the preview tab and only Add bar button should be enabled', () => {
73
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsAddBarOrPointButton(), 'visible');
74
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
75
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsUndoButton(), 'visible');
76
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
77
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsRedoButton(), 'visible');
78
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
79
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsResetButton(), 'visible');
80
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
81
+ });
82
+
83
+ it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
84
+ utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
85
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
86
+ utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
87
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabYAxisLabelButton(), 'visible');
88
+ utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Year');
89
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabXAxisLabelButton(), 'visible');
90
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
91
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 1), 'Bar 2');
92
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 2), 'Bar 3');
93
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Bar 4');
94
+ });
95
+
96
+ it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
97
+ utilities.verifyTextContent(utilities.getNthElement(chartsBarPage.previewTabYAxisCoordinate(), 0), 20);
98
+ utilities.verifyElementCount(chartsBarPage.previewTabChartRowHeaderContainer(), 21);
99
+ });
100
+
101
+ it('User should be able to edit the Y axis and X axis labels in preview tab', () => {
102
+ chartsBarPage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
103
+ utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Edited Y axis label');
104
+ chartsBarPage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
105
+ utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Edited X axis label');
106
+ });
107
+
108
+ it('The charts and graphs should be visible as set by the user in select chart type section', () => {
109
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 1, range: 20 });
110
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
111
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 20 });
112
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 20 });
113
+ });
114
+
115
+ it('The locked bar should be displayed in the locked state in preview tab and it should not have a drag handle', () => {
116
+ chartsBarPage.steps.verifyBarIsLockedInPreviewTab(1);
117
+ });
118
+
119
+ it('User should not be able to edit the locked bar height', () => {
120
+ chartsBarPage.steps.verifyLockedBarIsUneditableInPreviewTab(1);
121
+ });
122
+
123
+ it('User should be able to increase the bar height in preview tab', () => {
124
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 20, range: 20 });
125
+ });
126
+
127
+ it('User should be able to decrease the height of the bar in preview tab', () => {
128
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 0, range: 20 });
129
+ });
130
+
131
+ it('When bar is at the topmost value and the user still tries to increase its value, then the bar value should not increase', () => {
132
+ chartsBarPage.steps.keyBoardUpBarInPreviewTab(0);
133
+ chartsBarPage.steps.keyBoardUpBarInPreviewTab(0);
134
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 20, range: 20 });
135
+ });
136
+
137
+ it('When bar is at the bottommost value and the user still tries to decrease its value, then the bar value should not decrease', () => {
138
+ chartsBarPage.steps.keyBoardDownBarInPreviewTab(2);
139
+ chartsBarPage.steps.keyBoardDownBarInPreviewTab(2);
140
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 0, range: 20 });
141
+ });
142
+
143
+ chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('0', barBackgroundColor[0], 'Bar 1');
144
+
145
+ chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
146
+
147
+ it('User should be able to edit the label a bar', () => {
148
+ chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
149
+ chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
150
+ });
151
+
152
+ it('CSS of preview tab contents', { tags: 'css' }, () => {
153
+ utilities.verifyCSS(chartsBarPage.previewTabToolsAddBarOrPointButton(), {
154
+ 'background-color': css.color.activeButtons
155
+ });
156
+ utilities.verifyCSS(chartsBarPage.previewTabGraphTitle(), {
157
+ 'color': css.color.text,
158
+ 'font-size': css.fontSize.default,
159
+ 'font-weight': css.fontWeight.bold
160
+ });
161
+ utilities.verifyCSS(chartsBarPage.previewTabYAxisLabelButton(), {
162
+ 'color': css.color.activeButtons,
163
+ 'font-size': css.fontSize.default,
164
+ 'font-weight': css.fontWeight.bold
165
+ });
166
+ utilities.verifyCSS(chartsBarPage.previewTabXAxisLabelButton(), {
167
+ 'color': css.color.activeButtons,
168
+ 'font-size': css.fontSize.default,
169
+ 'font-weight': css.fontWeight.bold
170
+ });
171
+ utilities.verifyCSS(chartsBarPage.previewTabBarLabel(), {
172
+ 'color': css.color.text,
173
+ 'font-size': css.fontSize.default,
174
+ 'font-weight': css.fontWeight.semibold
175
+ });
176
+ utilities.verifyCSS(chartsBarPage.previewTabYAxisCoordinate(), {
177
+ 'color': css.color.text,
178
+ 'font-size': css.fontSize.normal,
179
+ 'font-weight': css.fontWeight.semibold
180
+ });
181
+ utilities.verifyCSS(chartsBarPage.previewTabBarDragHandle().find('svg'), {
182
+ 'background-color': css.color.defaultBackground
183
+ });
184
+ utilities.verifyCSS(chartsBarPage.previewTabBarDragHandle().find('path').eq(1), {
185
+ 'fill': css.color.secondaryBtn
186
+ });
187
+ utilities.verifyCSS(chartsBarPage.previewTabBar().eq(0), {
188
+ 'background-color': barBackgroundColor[0]
189
+ });
190
+ utilities.verifyCSS(chartsBarPage.previewTabBar().eq(1), {
191
+ 'background-color': barBackgroundColor[1]
192
+ });
193
+ utilities.verifyCSS(chartsBarPage.previewTabBar().eq(2), {
194
+ 'background-color': barBackgroundColor[2]
195
+ });
196
+ utilities.verifyCSS(chartsBarPage.previewTabBar().eq(3), {
197
+ 'background-color': barBackgroundColor[3]
198
+ });
199
+ utilities.verifyCSS(chartsBarPage.barLockIcon(), {
200
+ 'background-color': css.color.defaultBackground,
201
+ });
202
+ });
203
+
204
+ it('Accessibility of preview tab contents', { tags: 'a11y' }, () => {
205
+ cy.checkAccessibility(chartsBarPage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
206
+ });
207
+ });
208
+ });
209
+
210
+ views.forEach((view) => {
211
+ describe(`Preview tab contents - Add and delete bar ${view}`, { tags: 'smoke' }, () => {
212
+ abortEarlySetup();
213
+ before(() => {
214
+ switch (view) {
215
+ case 'Question preview':
216
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
217
+ cy.barsPreLoaderWait();
218
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
219
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
220
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
221
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
222
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
223
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
224
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
225
+ chartsBarPage.steps.allotPoints(10);
226
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 10 });
227
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 4, range: 10 });
228
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 10 });
229
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 10 });
230
+ chartsBarPage.steps.switchToPreviewTab();
231
+ break;
232
+ case 'Item view':
233
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
234
+ break;
235
+ case 'Item preview':
236
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
237
+ chartsBarPage.steps.switchToPreviewTab();
238
+ break;
239
+ case 'Student view':
240
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
241
+ break;
242
+ default:
243
+ throw new Error('Invalid view');
244
+ }
245
+ });
246
+
247
+ after(() => {
248
+ if (view === 'Question preview') {
249
+ chartsBarPage.steps.clickOnSaveQuestionButton();
250
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
251
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
252
+ }
253
+ });
254
+
255
+ it('When user hovers on the enabled add bar button, then tooltip \'Add bar\' should be displayed', () => {
256
+ chartsBarPage.previewTabToolsAddBarOrPointButton()
257
+ .verifyTooltip('Add bar');
258
+ });
259
+
260
+ it('CSS of the tooltip text', { tags: 'css' }, () => {
261
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsAddBarOrPointButton());
262
+ utilities.verifyCSS(chartsBarPage.tooltipText(), {
263
+ 'color': css.color.whiteText,
264
+ 'font-size': css.fontSize.small,
265
+ 'font-weight': css.fontWeight.regular,
266
+ 'background-color': css.color.tooltipBg
267
+ });
268
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsAddBarOrPointButton());
269
+ });
270
+
271
+ it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
272
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsAddBarOrPointButton());
273
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
274
+ cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
275
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsAddBarOrPointButton());
276
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
277
+ });
278
+
279
+ it('User should be able to add a bar in chart and the added bar should be displayed at 0 height with the label \'Bar 5\'', () => {
280
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
281
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 5);
282
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 4, barValue: 0, range: 20 });
283
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 4), 'Bar 5');
284
+ });
285
+
286
+ it('CSS of newly added bar in preview tab', { tags: 'css' }, () => {
287
+ utilities.verifyCSS(chartsBarPage.previewTabBar().eq(4), {
288
+ 'background-color': barBackgroundColor[4]
289
+ });
290
+ });
291
+
292
+ it('Accessibility of newly added bar in preview tab', { tags: 'a11y' }, () => {
293
+ cy.checkAccessibility(chartsBarPage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
294
+ });
295
+
296
+ it('When add bar limit is set to 1 and user has added a bar, then the add bar toolbar button should be disabled', () => {
297
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
298
+ });
299
+
300
+ it('When user deletes a bar, then that bar should be deleted and the add bar button should be enabled again', () => {
301
+ chartsBarPage.steps.deleteBarInPreviewTab(3);
302
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
303
+ utilities.verifyElementVisibilityState(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 4), 'notExist');
304
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
305
+ });
306
+
307
+ it('When user has deleted 2 bars and adds a bar, then the add bar button should still be enabled', () => {
308
+ chartsBarPage.steps.deleteBarInPreviewTab(2);
309
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
310
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
311
+ });
312
+
313
+ it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
314
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
315
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
316
+ });
317
+ });
318
+ });
319
+
320
+ views.forEach((view) => {
321
+ describe(`Preview tab contents - Undo, Redo and Reset buttons ${view}`, { tags: 'smoke' }, () => {
322
+ abortEarlySetup();
323
+ before(() => {
324
+ switch (view) {
325
+ case 'Question preview':
326
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
327
+ cy.barsPreLoaderWait();
328
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
329
+ chartsBarPage.steps.selectAddBarOrPointToolbarOption();
330
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
331
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
332
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
333
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
334
+ chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
335
+ chartsBarPage.steps.setMaxBarCountValue(2);
336
+ chartsBarPage.steps.allotPoints(10);
337
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 10 });
338
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 4, range: 10 });
339
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 10 });
340
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 10 });
341
+ chartsBarPage.steps.switchToPreviewTab();
342
+ break;
343
+ case 'Item view':
344
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
345
+ break;
346
+ case 'Item preview':
347
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
348
+ chartsBarPage.steps.switchToPreviewTab();
349
+ break;
350
+ case 'Student view':
351
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
352
+ break;
353
+ default:
354
+ throw new Error('Invalid view');
355
+ }
356
+ });
357
+
358
+ after(() => {
359
+ if (view === 'Question preview') {
360
+ chartsBarPage.steps.clickOnSaveQuestionButton();
361
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
362
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
363
+ }
364
+ });
365
+
366
+ //Bar labels
367
+ it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
368
+ chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
369
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
370
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
371
+ });
372
+
373
+ it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
374
+ chartsBarPage.previewTabToolsUndoButton()
375
+ .verifyTooltip('Undo');
376
+ chartsBarPage.previewTabToolsResetButton()
377
+ .verifyTooltip('Reset');
378
+ });
379
+
380
+ it('CSS of the tooltip text', { tags: 'css' }, () => {
381
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsUndoButton());
382
+ utilities.verifyCSS(chartsBarPage.tooltipText(), {
383
+ 'color': css.color.whiteText,
384
+ 'font-size': css.fontSize.small,
385
+ 'font-weight': css.fontWeight.regular,
386
+ 'background-color': css.color.tooltipBg
387
+ });
388
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsUndoButton());
389
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsResetButton());
390
+ utilities.verifyCSS(chartsBarPage.tooltipText(), {
391
+ 'color': css.color.whiteText,
392
+ 'font-size': css.fontSize.small,
393
+ 'font-weight': css.fontWeight.regular,
394
+ 'background-color': css.color.tooltipBg
395
+ });
396
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsResetButton());
397
+ });
398
+
399
+ it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
400
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsUndoButton());
401
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
402
+ cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
403
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsUndoButton());
404
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
405
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsResetButton());
406
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
407
+ cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
408
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsResetButton());
409
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
410
+ });
411
+
412
+ it('When user clicks on a undo button, then the previously performed action should be reverted', () => {
413
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
414
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
415
+ });
416
+
417
+ it('When user has clicked on undo button, then the redo button should be enabled', () => {
418
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
419
+ });
420
+
421
+ it('When user hovers on the enabled redo button, then tooltip \'Redo\' should be displayed', () => {
422
+ chartsBarPage.previewTabToolsRedoButton()
423
+ .verifyTooltip('Redo');
424
+ });
425
+
426
+ it('CSS of the tooltip text', { tags: 'css' }, () => {
427
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsRedoButton());
428
+ utilities.verifyCSS(chartsBarPage.tooltipText(), {
429
+ 'color': css.color.whiteText,
430
+ 'font-size': css.fontSize.small,
431
+ 'font-weight': css.fontWeight.regular,
432
+ 'background-color': css.color.tooltipBg
433
+ });
434
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsRedoButton());
435
+ });
436
+
437
+ it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
438
+ utilities.triggerMouseover(chartsBarPage.previewTabToolsRedoButton());
439
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
440
+ cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
441
+ utilities.triggerMouseout(chartsBarPage.previewTabToolsRedoButton());
442
+ utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
443
+ });
444
+
445
+ it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
446
+ chartsBarPage.steps.clickOnRedoButtonPreviewTab();
447
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Edited bar 1');
448
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
449
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
450
+ });
451
+
452
+ it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
453
+ cy.log('Pre-step: Reset the chart');
454
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
455
+ chartsBarPage.steps.confirmReset();
456
+ chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
457
+ chartsBarPage.steps.editBarLabelInPreviewTab(1, 'Edited bar 2');
458
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
459
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
460
+ });
461
+
462
+ it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
463
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
464
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
465
+ });
466
+
467
+ //Bar value/height
468
+ it('When user updates a bar value and clicks on undo button, then the previously performed action should be reverted', () => {
469
+ cy.log('Pre-step: Reset the chart');
470
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
471
+ chartsBarPage.steps.confirmReset();
472
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 4, range: 10 });
473
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
474
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 3, range: 10 });
475
+ });
476
+
477
+ it('When user has clicked on undo button, then the redo button should be enabled', () => {
478
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
479
+ });
480
+
481
+ it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
482
+ chartsBarPage.steps.clickOnRedoButtonPreviewTab();
483
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 4, range: 10 });
484
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
485
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
486
+ });
487
+
488
+ it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
489
+ cy.log('Reset the chart');
490
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
491
+ chartsBarPage.steps.confirmReset();
492
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
493
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
494
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
495
+ });
496
+
497
+ it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
498
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
499
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
500
+ });
501
+
502
+ //Add bar
503
+ it('When user adds a bar and and clicks on undo button, then the previously performed action should be reverted', () => {
504
+ cy.log('Pre-step: Reset the chart');
505
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
506
+ chartsBarPage.steps.confirmReset();
507
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
508
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
509
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
510
+ });
511
+
512
+ it('When user has clicked on undo button, then the redo button should be enabled', () => {
513
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
514
+ });
515
+
516
+ it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
517
+ chartsBarPage.steps.clickOnRedoButtonPreviewTab();
518
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 5);
519
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
520
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
521
+ });
522
+
523
+ it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
524
+ cy.log('Reset the chart');
525
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
526
+ chartsBarPage.steps.confirmReset();
527
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
528
+ chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
529
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
530
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
531
+ });
532
+
533
+ it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
534
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
535
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
536
+ });
537
+
538
+ //Delete bar
539
+ it('When user deletes a bar and clicks on a undo button, then the previously performed action should be reverted', () => {
540
+ cy.log('Pre-step: Reset the chart');
541
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
542
+ chartsBarPage.steps.confirmReset();
543
+ chartsBarPage.steps.deleteBarInPreviewTab(0);
544
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
545
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
546
+ });
547
+
548
+ it('When user has clicked on undo button, then the redo button should be enabled', () => {
549
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
550
+ });
551
+
552
+ it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
553
+ chartsBarPage.steps.clickOnRedoButtonPreviewTab();
554
+ utilities.verifyElementCount(chartsBarPage.previewTabBar(), 3);
555
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
556
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
557
+ });
558
+
559
+ it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
560
+ cy.log('Reset the chart');
561
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
562
+ chartsBarPage.steps.confirmReset();
563
+ chartsBarPage.steps.deleteBarInPreviewTab(0);
564
+ chartsBarPage.steps.deleteBarInPreviewTab(0);
565
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
566
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
567
+ });
568
+
569
+ it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
570
+ chartsBarPage.steps.clickOnUndoButtonPreviewTab();
571
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
572
+ });
573
+
574
+ //Reset button
575
+ it('When the user clicks on Reset button then reset popup should be displayed', () => {
576
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
577
+ utilities.verifyElementVisibilityState(chartsBarPage.dialogBox(), 'visible');
578
+ });
579
+
580
+ chartsBarPage.tests.verifyResetPopupContentWithCSSAndA11y('chart');
581
+
582
+ it('When user clicks on cancel button in reset popup, then reset popup should close and chart should not be reset', () => {
583
+ chartsBarPage.steps.cancelReset();
584
+ chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
585
+ chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
586
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 20, range: 20 });
587
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
588
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 0, range: 20 });
589
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 20 });
590
+ });
591
+
592
+ it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
593
+ chartsBarPage.steps.clickOnResetButtonPreviewTab();
594
+ chartsBarPage.steps.confirmReset();
595
+ utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
596
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsUndoButton(), 'visible');
597
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
598
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsRedoButton(), 'visible');
599
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
600
+ utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsResetButton(), 'visible');
601
+ utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
602
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
603
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 1), 'Bar 2');
604
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 2), 'Bar 3');
605
+ utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Bar 4');
606
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 1, range: 10 });
607
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 10 });
608
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 10 });
609
+ chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 10 });
610
+ });
611
+
612
+ it('CSS of preview tab contents', { tags: 'css' }, () => {
613
+ utilities.verifyCSS(chartsBarPage.previewTabToolsUndoButton().find('svg'), {
614
+ 'fill': css.color.secondaryBtnDisabled
615
+ });
616
+ utilities.verifyCSS(chartsBarPage.previewTabToolsRedoButton().find('svg'), {
617
+ 'fill': css.color.secondaryBtnDisabled
618
+ });
619
+ utilities.verifyCSS(chartsBarPage.previewTabToolsUndoButton().find('svg'), {
620
+ 'fill': css.color.secondaryBtnDisabled
621
+ });
622
+ });
623
+ });
624
+ });
625
+ });
@@ -62,8 +62,8 @@ describe('Drag and drop into categories - Additional settings', () => {
62
62
  cy.barsPreLoaderWait();
63
63
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop into categories');
64
64
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
65
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
66
65
  dragAndDropIntoCategoriesPage.steps.expandAdditionalSettings();
66
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
67
67
  });
68
68
 
69
69
  Object.keys(fontSizes).forEach((option) => {
@@ -327,7 +327,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
327
327
 
328
328
  it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
329
329
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerPreviewTab('Eagle', 0);
330
- dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Whale', 'Platypus', 'Eagle']);
330
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Parrot', 'Whale', 'Eagle']);
331
331
  });
332
332
  });
333
333