itemengine-cypress-automation 1.0.387-IEI-5793-1ae20b6.0 → 1.0.387-IEI-6273-6d750cf.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/Dockerfile +1 -0
  2. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
  3. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -0
  4. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  5. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +356 -0
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +25 -25
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -36
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -36
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -36
  13. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  14. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +26 -25
  15. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +39 -38
  16. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +31 -30
  17. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +35 -34
  18. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +247 -0
  19. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +287 -0
  20. package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +1 -1
  21. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  22. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  23. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +92 -0
  24. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +220 -0
  25. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +25 -25
  26. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -46
  27. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -24
  28. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -24
  29. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  30. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +25 -25
  31. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +24 -23
  32. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +21 -20
  33. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +48 -46
  34. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +249 -0
  35. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +247 -0
  36. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
  37. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  38. package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +94 -0
  39. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -2
  40. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
  41. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
  42. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
  43. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
  44. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +3 -3
  45. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
  46. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
  47. package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
  48. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +63 -4
  49. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +116 -7
  50. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
  51. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
  52. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +3 -3
  53. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
  54. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +3 -0
  55. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -7
  56. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  57. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  58. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
  59. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
  60. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -3
  61. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
  62. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -11
  63. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
  64. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  65. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +3 -3
  66. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  67. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +3 -3
  68. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
  69. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -1
  70. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +4 -4
  71. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -4
  72. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +1 -1
  73. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +4 -0
  74. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
  75. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
  76. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -3
  77. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  78. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  79. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  80. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  81. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +213 -2
  82. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  83. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  84. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  85. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  86. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  87. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  88. package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +28 -0
  89. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  90. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +210 -0
  91. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
  92. package/cypress/e2e/ILC/GridFill/headerSection.js +4 -4
  93. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  94. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  95. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  96. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  97. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  98. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  99. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  100. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
  101. package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +1 -0
  102. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
  103. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
  104. package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +1 -1
  105. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +3 -3
  106. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  107. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  108. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  109. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  110. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -4
  111. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  112. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +237 -1
  113. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  114. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +26 -0
  115. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  116. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +2 -1
  117. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -4
  118. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +7 -12
  119. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +10 -14
  120. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  121. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +215 -0
  122. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  123. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +36 -9
  124. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +2 -0
  125. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +7 -23
  126. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  127. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  128. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  129. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  130. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +309 -0
  131. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  132. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  133. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  134. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +38 -3
  135. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +38 -41
  136. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  137. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
  138. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  139. package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -5
  140. package/cypress/e2e/ILC/Matching/draggableOptions.js +7 -0
  141. package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +3 -2
  142. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  143. package/cypress/e2e/ILC/Matching/headerSection.js +38 -12
  144. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  145. package/cypress/e2e/ILC/Matching/studentViewSettings.js +3 -1
  146. package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
  147. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +7 -6
  148. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
  149. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
  150. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
  151. package/cypress/e2e/ILC/MultipleSelection/editTabBasicSection.js +1 -1
  152. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +3 -3
  153. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
  154. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +2 -2
  155. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +3 -3
  156. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
  157. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
  158. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  159. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  160. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  161. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  162. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +213 -0
  163. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  164. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  165. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  166. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +249 -0
  167. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  168. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  169. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  170. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  171. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  172. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +266 -0
  173. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  174. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  175. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  176. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  177. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +268 -0
  178. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  179. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +186 -0
  180. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +33 -49
  181. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  182. package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
  183. package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
  184. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +2 -2
  185. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +3 -3
  186. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
  187. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
  188. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
  189. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  190. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  191. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  192. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  193. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +9 -2
  194. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  195. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
  196. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  197. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
  198. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
  199. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
  200. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
  201. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
  202. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  203. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -2
  204. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  205. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  206. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  207. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
  208. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  209. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  210. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  211. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
  212. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
  213. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +263 -0
  214. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +219 -0
  215. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  216. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  217. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
  218. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  219. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +263 -0
  220. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -1
  221. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  222. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +1 -0
  223. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
  224. package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +2 -2
  225. package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -3
  226. package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
  227. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -0
  228. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
  229. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
  230. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
  231. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
  232. package/cypress/e2e/ILC/ThinkSphere/gradingViewPlanTabSection.js +334 -0
  233. package/cypress/e2e/ILC/ThinkSphere/gradingViewSolveTabSection.js +65 -0
  234. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
  235. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
  236. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  237. package/cypress/e2e/ILC/ThinkSphere/previewTabSolveSection.js +41 -0
  238. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
  239. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  240. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  241. package/cypress/e2e/ILC/ThinkSphere/studentViewSolveSection.js +53 -0
  242. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
  243. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  244. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  245. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
  246. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  247. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +248 -0
  248. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  249. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +27 -28
  250. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
  251. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +24 -24
  252. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +39 -37
  253. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +22 -23
  254. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
  255. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +25 -24
  256. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +31 -31
  257. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +18 -19
  258. package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +96 -0
  259. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  260. package/cypress/e2e/Sessions/saveResponseScores.js +2 -2
  261. package/cypress/fixtures/thinkSphereWhiteboardTools.js +66 -0
  262. package/cypress/pages/audioPlayerPage.js +25 -0
  263. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  264. package/cypress/pages/chartsBarPage.js +45 -0
  265. package/cypress/pages/chartsDotPlotPage.js +25 -0
  266. package/cypress/pages/chartsLinePage.js +28 -3
  267. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
  268. package/cypress/pages/components/chartsCommonComponent.js +21 -2
  269. package/cypress/pages/components/ckEditorEquationEditorComponent.js +1 -0
  270. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  271. package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
  272. package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
  273. package/cypress/pages/components/colorPopupComponent.js +6 -0
  274. package/cypress/pages/components/createQuestionBasePage.js +19 -6
  275. package/cypress/pages/components/desmosToolComponent.js +1 -1
  276. package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
  277. package/cypress/pages/components/equationEditorSectionCommonComponent.js +14 -29
  278. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +31 -3
  279. package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
  280. package/cypress/pages/components/imageCanvasComponent.js +11 -5
  281. package/cypress/pages/components/questionInstructionsComponent.js +2 -0
  282. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
  283. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +16 -0
  284. package/cypress/pages/contentBlocksPage.js +2 -0
  285. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  286. package/cypress/pages/desmosGeometryPage.js +184 -4
  287. package/cypress/pages/drawingResponsePage.js +9 -2
  288. package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -8
  289. package/cypress/pages/gradingGridViewPage.js +4 -4
  290. package/cypress/pages/graphingPage.js +29 -9
  291. package/cypress/pages/gridFillPage.js +27 -9
  292. package/cypress/pages/imageHighlightPage.js +115 -15
  293. package/cypress/pages/listOrderingPage.js +46 -2
  294. package/cypress/pages/matchingPage.js +29 -10
  295. package/cypress/pages/numberLineLabelPage.js +31 -8
  296. package/cypress/pages/numberLinePage.js +19 -7
  297. package/cypress/pages/singleSelectionPage.js +1 -1
  298. package/cypress/pages/textEntryMathPage.js +27 -8
  299. package/cypress/pages/textSelectionPage.js +2 -2
  300. package/cypress/pages/thinkSpherePage.js +1118 -87
  301. package/cypress/pages/uploadResponsePage.js +17 -1
  302. package/cypress/pages/videoResponsePage.js +3 -0
  303. package/cypress/support/commands.js +9 -0
  304. package/cypress/support/helpers/createItem.js +22 -3
  305. package/cypress/support/helpers/utilities.js +14 -1
  306. package/package.json +1 -1
  307. /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
  308. /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -0,0 +1,334 @@
1
+ import uuid from 'react-uuid';
2
+ import { thinkSpherePage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
4
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
5
+ import utilities from "../../../support/helpers/utilities";
6
+ const css = Cypress.env('css');
7
+
8
+ describe('Grading view : ThinkSphere Question - Plan Section', () => {
9
+ const uuidString = uuid();
10
+
11
+ before(() => {
12
+ cy.loginAs('admin');
13
+ cy.createThinkSphereItem(uuidString, true);
14
+ cy.visit('/item-engine/thinksphere/browse-items');
15
+ browseItemsPage.steps.clickOnActionButton();
16
+ browseItemsPage.steps.clickOnActionMenuItem(0);
17
+ thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
18
+ thinkSpherePage.steps.stepsBeforeGradingView();
19
+ });
20
+
21
+ describe('\'Question instruction\' section', () => {
22
+ abortEarlySetup();
23
+ it('\'Question instruction\' section should be present', () => {
24
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'visible');
25
+ utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'question instruction text');
26
+ });
27
+
28
+ it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
29
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
30
+ 'border-radius': '12px',
31
+ 'background-color': css.color.questionInstructionBG,
32
+ 'padding': '10px 170px 10px 27px',
33
+ 'font-size': css.fontSize.default,
34
+ 'font-weight': css.fontWeight.regular,
35
+ });
36
+ });
37
+
38
+ it('Question instruction image should visible in the preview', () => {
39
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
40
+ });
41
+
42
+ it('CSS of question instruction image section', { tags: 'css' }, () => {
43
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
44
+ 'width': '143px',
45
+ 'height': '110px',
46
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
47
+ 'background-color': css.color.primaryBtn,
48
+ });
49
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
50
+ 'width': '24px',
51
+ 'height': '24px',
52
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
53
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
54
+ 'border-radius': '4px',
55
+ 'background-color': css.color.primaryBtn,
56
+ });
57
+ });
58
+
59
+ it('When user clicks on expand question instruction image then it should open in the popup', () => {
60
+ thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
61
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
62
+ thinkSpherePage.steps.verifyQuestionImagePopup();
63
+ });
64
+
65
+ it('CSS of question instruction image popup', { tags: 'css' }, () => {
66
+ utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
67
+ 'border-radius': '8px',
68
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
69
+ 'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
70
+ });
71
+ utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
72
+ 'background-color': css.color.primaryBtn,
73
+ 'font-size': css.fontSize.normal,
74
+ 'font-weight': css.fontWeight.semibold,
75
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
76
+ 'color': css.color.primaryBtnBorder,
77
+ });
78
+ });
79
+
80
+ it('Accessibility of question instruction image popup', { tags: 'a11y' }, () => {
81
+ cy.checkAccessibility(thinkSpherePage.dialogBoxRoot());
82
+ cy.checkAccessibility(thinkSpherePage.closeExpandImagePopupButton());
83
+ });
84
+
85
+ it('When user clicks on close expand image popup button then it should remove the popup', () => {
86
+ thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
87
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
88
+ });
89
+ });
90
+
91
+ describe('\'Choose your strategies\' section', () => {
92
+ abortEarlySetup();
93
+ it('\'Choose your strategies\' section and title should be present', () => {
94
+ utilities.verifyInnerText(thinkSpherePage.strategiesPreviewHeader(), 'Choose your strategies');
95
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategiesPreviewHeader(), 'visible');
96
+ });
97
+
98
+ it('\'Add new strategy\' button should be present', () => {
99
+ utilities.verifyInnerText(thinkSpherePage.addNewStrategyButton(), 'Add new strategy');
100
+ utilities.verifyElementVisibilityState(thinkSpherePage.addNewStrategyButton(), 'visible');
101
+ });
102
+
103
+ it('CSS of strategies header and add new strategy button', { tags: 'css' }, () => {
104
+ utilities.verifyCSS(thinkSpherePage.strategiesPreviewHeader(), {
105
+ 'font-size': css.fontSize.heading,
106
+ 'font-weight': css.fontWeight.semibold,
107
+ 'color': css.color.primaryBtnBorder,
108
+ });
109
+ utilities.verifyCSS(thinkSpherePage.addNewStrategyButton(), {
110
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
111
+ 'padding': '12px 16px',
112
+ 'border-radius': '8px',
113
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
114
+ });
115
+ utilities.verifyCSS(thinkSpherePage.addNewStrategyTextWrapper(), {
116
+ 'color': css.color.primaryBtnBorder,
117
+ 'font-size': css.fontSize.default,
118
+ 'font-weight': css.fontWeight.regular,
119
+ });
120
+ });
121
+
122
+ it('CSS of strategies list', { tags: 'css' }, () => {
123
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0), {
124
+ 'padding': '8px 16px 8px 24px',
125
+ 'border': `2px solid ${css.color.transparent}`,
126
+ 'background-color': css.color.progressBarRemainingFill,
127
+ 'border-radius': '12px',
128
+ });
129
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
130
+ 'color': css.color.strategyTextDisabled,
131
+ 'margin-right': '40px',
132
+ 'font-size': '18px',
133
+ 'font-weight': '600',
134
+ });
135
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 1), {
136
+ 'color': css.color.primaryBtnBg,
137
+ 'font-size': '18px',
138
+ 'font-weight': '600',
139
+ });
140
+ });
141
+
142
+ it('When the user clicks on add new strategy button in grading view, no popup should be displayed and the button should not be accessible with keyboard', () => {
143
+ thinkSpherePage.steps.verifyAddStrategiesButtonDisabled()
144
+ });
145
+
146
+ it('Strategies list buttons should be in disabled state', () => {
147
+ thinkSpherePage.steps.verifyStrategiesListButtonDisabled()
148
+ });
149
+
150
+ it('CSS of strategies list in selected state', { tags: 'css' }, () => {
151
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 1), {
152
+ 'border': `2px solid ${css.color.toggleButtonSelectedBg}`,
153
+ 'background-color': css.color.transparent,
154
+ });
155
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 1), {
156
+ 'color': css.color.primaryBtnBg,
157
+ });
158
+ });
159
+
160
+ it('Video icon for should present by default besides the strategy name', () => {
161
+ utilities.verifyElementVisibilityState(utilities.getNthElement(thinkSpherePage.videoIconWrapper(), 0), 'visible');
162
+ });
163
+
164
+ it('When user clicks on video icon then video should be played in the popup', () => {
165
+ thinkSpherePage.steps.clickOnVideoIcon();
166
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
167
+ thinkSpherePage.steps.verifyVideoPopupDialogBox();
168
+ thinkSpherePage.steps.closeVideoPopup();
169
+ });
170
+ });
171
+
172
+ describe('\'Planning journal\' Section', () => {
173
+ abortEarlySetup();
174
+ it('\'Planning journal\' section should be present', () => {
175
+ utilities.verifyElementVisibilityState(thinkSpherePage.PlanningPreviewWrapper(), 'visible');
176
+ });
177
+
178
+ it('\'Planning journal\' section heading should be present', () => {
179
+ utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
180
+ utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
181
+ });
182
+
183
+ it('\'Sentence starters\' label and dropdown should be displayed and the dropdown should be disabled', () => {
184
+ utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterLabel(), 'visible');
185
+ utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterDropdown(), 'visible');
186
+ utilities.verifyInnerText(thinkSpherePage.chooseStarterLabel(), 'Sentence starter');
187
+ });
188
+
189
+ it('CSS of \'Sentence starter\' dropdown - default state', { tags: 'css' }, () => {
190
+ utilities.verifyCSS(thinkSpherePage.chooseStarterLabel(), {
191
+ 'color': css.color.sectionHeading,
192
+ 'font-size': css.fontSize.normal,
193
+ 'font-weight': css.fontWeight.semibold,
194
+ });
195
+ utilities.verifyCSS(thinkSpherePage.chooseStarterDropdown(), {
196
+ 'color': css.color.liText,
197
+ 'font-size': css.fontSize.default,
198
+ 'font-weight': css.fontWeight.regular
199
+ });
200
+ });
201
+
202
+ it('\'Planning journal\' write wrapper should be present', () => {
203
+ utilities.verifyElementVisibilityState(thinkSpherePage.planningWriteWrapper(), 'visible');
204
+ });
205
+
206
+ it('\'The problem is asking me to\' section should be present', () => {
207
+ utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingWrapper(), 'visible');
208
+ });
209
+
210
+ it('\'The problem is asking me to\' subheading should be present', () => {
211
+ thinkSpherePage.steps.verifyProblemAskingHeading();
212
+ });
213
+
214
+ it('Text area with placeholder \'Enter your text here\' should be present under \'The problem is asking me to\' section', () => {
215
+ thinkSpherePage.steps.verifyProblemAskingTextArea();
216
+ });
217
+
218
+ it('Mic button should be present under \'The problem is asking me to\' section and it should be disabled', () => {
219
+ thinkSpherePage.steps.verifyProblemAskingMicSection(true);
220
+ });
221
+
222
+ it('User should not be able to write in the \'Enter your text here\' textarea under \'The problem is asking me to\' section', () => {
223
+ thinkSpherePage.steps.verifyDisabledProblemTextContainer('This is a test text for the problem.');
224
+ });
225
+
226
+ it('\'Add strategies to plan\' section should be present', () => {
227
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategiesToPlanWrapper(), 'visible');
228
+ });
229
+
230
+ it('\'Add strategies to plan\' subheading should be present', () => {
231
+ thinkSpherePage.steps.verifyStrategiesToPlanHeading();
232
+ });
233
+
234
+ it('\'Write your plan\' section should be present', () => {
235
+ utilities.verifyElementVisibilityState(thinkSpherePage.writePlanWrapper(), 'visible');
236
+ });
237
+
238
+ it('\'Write your plan\' subheading should be present', () => {
239
+ thinkSpherePage.steps.verifyWritePlanHeading();
240
+ });
241
+
242
+ it('Text area with placeholder \'Enter your plan here\' should be present under \'Write your plan\' section', () => {
243
+ thinkSpherePage.steps.verifyWritePlanTextArea();
244
+ });
245
+
246
+ it('Mic button should be present under \'Write your plan\' section', () => {
247
+ thinkSpherePage.steps.verifyWritePlanMicSection(true);
248
+ });
249
+
250
+ it('User should not be able to write in the \'Enter your plan here\' textarea under \'Write your plan\' section', () => {
251
+ thinkSpherePage.steps.verifyDisabledWriteYourPlanTextContainer('First, I will look for a pattern ');
252
+ });
253
+
254
+ it('The strategy chip selected by the student should display inside \'Add strategies to plan\' wrapper in the form of chip', () => {
255
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyChipWrapper(), 'visible');
256
+ utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'visible');
257
+ utilities.verifyInnerText(thinkSpherePage.strategyChip(), 'Look for a pattern');
258
+ });
259
+
260
+ it('CSS of strategy chip when it is not selected', { tags: 'css' }, () => {
261
+ utilities.verifyCSS(thinkSpherePage.strategyChip(), {
262
+ 'border': `1px solid ${css.color.primaryBtnBg}`,
263
+ 'color': css.color.sectionHeading,
264
+ 'border-radius': '20px',
265
+ 'font-size': css.fontSize.normal,
266
+ 'font-weight': css.fontWeight.regular,
267
+ 'background-color': css.color.secondaryBtnBorder,
268
+ });
269
+ });
270
+
271
+ it('The user should not be able to click on strategy chip', () => {
272
+ thinkSpherePage.steps.verifyDisabledStrategyChip();
273
+ });
274
+
275
+ it('CSS of planning journal section', { tags: 'css' }, () => {
276
+ utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
277
+ 'color': css.color.primaryBtnBorder,
278
+ 'font-size': css.fontSize.heading,
279
+ 'font-weight': css.fontWeight.semibold,
280
+ });
281
+
282
+ utilities.verifyCSS(thinkSpherePage.planningWriteWrapper(), {
283
+ 'border': `1px solid ${css.color.secondaryBtnBorderDisabled}`,
284
+ 'border-radius': '12px'
285
+ });
286
+
287
+ utilities.verifyCSS(thinkSpherePage.problemAskingWrapper(), {
288
+ 'padding': '16px 16px 14px',
289
+ 'border-bottom': `1px solid ${css.color.secondaryBtnBorderDisabled}`
290
+ });
291
+
292
+ utilities.verifyCSS(thinkSpherePage.strategiesToPlanWrapper(), {
293
+ 'padding': '16px',
294
+ 'border-bottom': `1px solid ${css.color.secondaryBtnBorderDisabled}`
295
+ });
296
+
297
+ utilities.verifyCSS(thinkSpherePage.writePlanWrapper(), {
298
+ 'padding': '16px'
299
+ });
300
+
301
+ thinkSpherePage.problemAskingWrapper()
302
+ .within(() => {
303
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
304
+ 'color': css.color.primaryBtnBorder,
305
+ 'font-size': css.fontSize.normal,
306
+ 'font-weight': css.fontWeight.bold,
307
+ });
308
+ });
309
+
310
+ thinkSpherePage.strategiesToPlanWrapper()
311
+ .within(() => {
312
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
313
+ 'color': css.color.primaryBtnBorder,
314
+ 'font-size': css.fontSize.normal,
315
+ 'font-weight': css.fontWeight.bold,
316
+ });
317
+ });
318
+
319
+ thinkSpherePage.writePlanWrapper()
320
+ .within(() => {
321
+ utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
322
+ 'color': css.color.primaryBtnBorder,
323
+ 'font-size': css.fontSize.normal,
324
+ 'font-weight': css.fontWeight.bold,
325
+ });
326
+ });
327
+ });
328
+
329
+ it('Accessibility of planning journal', { tags: 'a11y' }, () => {
330
+ cy.checkAccessibility(thinkSpherePage.PlanningPreviewWrapper());
331
+ });
332
+ });
333
+
334
+ });
@@ -0,0 +1,65 @@
1
+ import uuid from 'react-uuid';
2
+ import { thinkSpherePage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
4
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
5
+ import utilities from "../../../support/helpers/utilities";
6
+ import { editSectionWhiteBoardToolButtons, whiteBoardTools } from '../../../fixtures/thinkSphereWhiteboardTools';
7
+ const css = Cypress.env('css');
8
+
9
+ describe('Grading view : ThinkSphere Question - Solve Section', () => {
10
+ before(() => {
11
+ cy.loginAs('admin');
12
+ thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
13
+ cy.barsPreLoaderWait();
14
+ thinkSpherePage.steps.switchToEditTab();
15
+ thinkSpherePage.steps.addTextInQuestionInstructionsInputField('question instruction text');
16
+ thinkSpherePage.steps.clickOnSolvePhaseAccordionIcon();
17
+ thinkSpherePage.steps.expandCustomizeToolsAndControls();
18
+ editSectionWhiteBoardToolButtons.forEach((toolName) => {
19
+ thinkSpherePage.steps.selectOptionFromToolsAndControls(toolName);
20
+ })
21
+ thinkSpherePage.steps.clickOnSaveButton();
22
+ cy.visit('/item-engine/thinksphere/browse-items');
23
+ browseItemsPage.steps.clickOnActionButton();
24
+ browseItemsPage.steps.clickOnActionMenuItem(0);
25
+ thinkSpherePage.steps.clickOnSolveTab();
26
+ thinkSpherePage.steps.submitResponseAndGotoGradingView();
27
+ thinkSpherePage.steps.clickOnSolveTab();
28
+ });
29
+
30
+ describe('\'Question instruction\' section', () => {
31
+ abortEarlySetup();
32
+ it('\'Question instruction\' section should be present', () => {
33
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'visible');
34
+ utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'question instruction text');
35
+ });
36
+
37
+ });
38
+
39
+ describe('Whiteboard and its sections should be present', () => {
40
+ abortEarlySetup();
41
+ thinkSpherePage.tests.verifyWhiteBoardAndSections();
42
+ });
43
+
44
+ describe('Whiteboard tools and sub tools should be present', () => {
45
+ abortEarlySetup();
46
+ const allToolIds = whiteBoardTools.map(tool => tool.dataTestId);
47
+ const defaultToolIds = whiteBoardTools.filter(tool => tool.isDefault).map(tool => tool.dataTestId);
48
+ thinkSpherePage.tests.verifyDisabledWhiteboardTools(defaultToolIds, allToolIds);
49
+ });
50
+
51
+ describe('Verify the Your plan Button', () => {
52
+ abortEarlySetup();
53
+ it('Your Plan button should be visible and display the correct disabled styles', () => {
54
+ utilities.verifyElementVisibilityState(thinkSpherePage.yourPlanButton(), 'visible');
55
+ utilities.verifyCSS(thinkSpherePage.yourPlanButton(), {
56
+ 'background-color' : css.color.boxShadow,
57
+ 'color': css.color.primaryBtnDisabled,
58
+ });
59
+ });
60
+
61
+ it('Your Plan button should have disabled attribute', () => {
62
+ thinkSpherePage.steps.verifyYourPlanButtonInDisableState();
63
+ });
64
+ });
65
+ });
@@ -18,6 +18,28 @@ const sentenceStartersTextDefault = [
18
18
  'I will check my work by',
19
19
  'If my strategy is not working, I will'
20
20
  ];
21
+ const preAuthoredStrategyVideos = [
22
+ {
23
+ displayName: 'Create_a_model',
24
+ duration: '00:24',
25
+ },
26
+ {
27
+ displayName: 'Look_for_a_pattern',
28
+ duration: '00:18',
29
+ },
30
+ {
31
+ displayName: 'Guess_check_and_revise',
32
+ duration: '00:17',
33
+ },
34
+ {
35
+ displayName: 'Try_with_friendlier_numbers',
36
+ duration: '00:26',
37
+ },
38
+ {
39
+ displayName: 'Show_with_an_equation',
40
+ duration: '00:22',
41
+ }
42
+ ];
21
43
  describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
22
44
  before(() => {
23
45
  cy.loginAs('admin');
@@ -55,19 +77,37 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
55
77
  });
56
78
  });
57
79
 
80
+ describe('\'Plan Phase\' Section Strategies list component - Pre-authored Videos', () => {
81
+ abortEarlySetup();
82
+ it('Strategies list options should have Pre-authored Videos', () => {
83
+ thinkSpherePage.steps.verifyPreAuthoredVideoTitles(preAuthoredStrategyVideos.map(video => video.displayName));
84
+ })
85
+ it('When the user clicks on the video, the respective video should play', () => {
86
+ thinkSpherePage.steps.verifyPreAuthoredVideos(preAuthoredStrategyVideos);
87
+ });
88
+ });
89
+
58
90
  describe('\'Plan Phase\' Video Preview Component', () => {
59
91
  const playbackSpeedOptions = ['1x', '1.25x', '1.5x', '2x'];
60
92
  const playbackSpeedMultiplier = [1, 1.25, 1.5, 2];
93
+ before(()=>{
94
+ thinkSpherePage.steps.addOption('strategy');
95
+ thinkSpherePage.steps.addOptionText('strategy', 5, "Custom strategy");
96
+ })
97
+
98
+ after(() => {
99
+ thinkSpherePage.steps.deleteOption(5);
100
+ })
61
101
 
62
102
  it('When the video is uploaded it should display the video and its buttons correctly', () => {
63
- thinkSpherePage.videoLinkComponent()
103
+ thinkSpherePage.videoLinkComponent(5)
64
104
  .within(() => {
65
105
  thinkSpherePage.uploadVideoLinkButton()
66
106
  .click();
67
107
  });
68
108
  thinkSpherePage.steps.uploadVideoFile('uploads/sample.mp4');
69
109
  cy.wait(10000);
70
- thinkSpherePage.videoLinkComponent()
110
+ thinkSpherePage.videoLinkComponent(5)
71
111
  .within(() => {
72
112
  thinkSpherePage.uploadVideoLinkButton()
73
113
  .click();
@@ -151,7 +191,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
151
191
 
152
192
  it('When video player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
153
193
  thinkSpherePage.videoPopupCloseButton().click();
154
- thinkSpherePage.videoLinkComponent()
194
+ thinkSpherePage.videoLinkComponent(5)
155
195
  .within(() => {
156
196
  thinkSpherePage.uploadVideoLinkButton()
157
197
  .click();
@@ -296,7 +336,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
296
336
 
297
337
  it('When the user hovers over the playback speed button, a tooltip \'Playback speed\' should be displayed and on hovering away from the button, the tooltip should disappear', () => {
298
338
  thinkSpherePage.videoPopupCloseButton().click();
299
- thinkSpherePage.videoLinkComponent()
339
+ thinkSpherePage.videoLinkComponent(5)
300
340
  .within(() => {
301
341
  thinkSpherePage.uploadVideoLinkButton()
302
342
  .click();
@@ -496,7 +536,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
496
536
 
497
537
  thinkSpherePage.tests.verifyResetToDefaultFunctionality(strategiesTextDefault, 'strategy');
498
538
 
499
- thinkSpherePage.tests.verifyVideoLinkComponent();
539
+ thinkSpherePage.tests.verifyVideoLinkComponent(5);
500
540
 
501
541
  it('Accessibility of \'Plan Phase\' Section Strategies list component', { tags: 'a11y' }, () => {
502
542
  cy.checkAccessibility(thinkSpherePage.planStrategySection());
@@ -24,11 +24,14 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
24
24
  thinkSpherePage.steps.switchToPreviewTab();
25
25
  });
26
26
 
27
+ after(() => {
28
+ cy.deleteThinkSphereItem('~zzz item name');
29
+ });
30
+
27
31
  describe('\'Question instruction\' section', () => {
28
32
  abortEarlySetup();
29
33
  it('\'Question instruction\' section should be present', () => {
30
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'visible');
31
- utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'question instruction text');
34
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
32
35
  });
33
36
 
34
37
  it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
@@ -46,8 +49,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
46
49
  cy.wait(1000);
47
50
  thinkSpherePage.steps.uploadFile('uploads/image.png');
48
51
  thinkSpherePage.steps.switchToPreviewTab();
49
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageWrapper(), 'visible');
50
- utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageExpandButton(), 'visible');
52
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
51
53
  });
52
54
 
53
55
  it('CSS of question instruction image section', { tags: 'css' }, () => {
@@ -279,7 +281,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
279
281
 
280
282
  it('\'Planning journal\' section heading should be present', () => {
281
283
  utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
282
- utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planing journal');
284
+ utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
283
285
  });
284
286
 
285
287
  it('\'Sentence starters\' label and dropdown should be displayed', () => {
@@ -473,14 +475,12 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
473
475
  });
474
476
  });
475
477
 
476
- it('CSS of strategy chip when it is selected', { tags: 'css' }, () => {
478
+ it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
477
479
  utilities.verifyCSS(thinkSpherePage.strategyChip(), {
478
480
  'background-color': css.color.secondaryBtnBorder,
479
481
  'border': `1px solid ${css.color.primaryBtnBg}`,
480
482
  });
481
- });
482
483
 
483
- it('CSS of planning journal section', { tags: 'css' }, () => {
484
484
  utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
485
485
  'color': css.color.primaryBtnBorder,
486
486
  'font-size': css.fontSize.heading,
@@ -0,0 +1,97 @@
1
+ import { thinkSpherePage } from "../../../pages";
2
+ import { browseItemsPage } from "../../../pages/components/browseItemsPage";
3
+ import { commonComponents } from "../../../pages/components/commonComponents";
4
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
5
+ import utilities from "../../../support/helpers/utilities";
6
+ const css = Cypress.env('css');
7
+
8
+ const sentenceStartersTextDefault = [
9
+ 'The strategy I’m going to use is',
10
+ 'First, I will',
11
+ 'Secondly, I will',
12
+ 'I will check my work by',
13
+ 'If my strategy is not working, I will'
14
+ ];
15
+
16
+ describe('Preview question : ThinkSphere Question - Plan Section - preview tab', () => {
17
+ before(() => {
18
+ cy.loginAs('admin');
19
+ cy.deleteThinkSphereItem('~zzz item name review test');
20
+ cy.createThinkSphereItem('~zzz item name review test', true);
21
+ cy.visit('/item-engine/thinksphere/browse-items');
22
+ browseItemsPage.steps.clickOnItemReferenceId('~zzz item name review test');
23
+ browseItemsPage.steps.clickOnAddReviewItem();
24
+ thinkSpherePage.steps.createReviewQuestion();
25
+ thinkSpherePage.steps.clickOnEditQuestionIcon();
26
+ thinkSpherePage.steps.switchToPreviewTab();
27
+ thinkSpherePage.steps.clickOnReviewTab();
28
+ });
29
+
30
+ after(() => {
31
+ cy.deleteThinkSphereItem('~zzz item name review test');
32
+ });
33
+
34
+ describe('\'Question instruction\' section', () => {
35
+ abortEarlySetup();
36
+ it('\'Question instruction\' section should be present', () => {
37
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
38
+ });
39
+
40
+ it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
41
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
42
+ 'border-radius': '12px',
43
+ 'background-color': css.color.questionInstructionBG,
44
+ 'padding': '10px 170px 10px 27px',
45
+ 'font-size': css.fontSize.default,
46
+ 'font-weight': css.fontWeight.regular,
47
+ });
48
+ });
49
+
50
+ it('Question instruction image should visibile in the preview', () => {
51
+ thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
52
+ });
53
+
54
+ it('CSS of question instruction image section', { tags: 'css' }, () => {
55
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
56
+ 'width': '143px',
57
+ 'height': '110px',
58
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
59
+ 'background-color': css.color.primaryBtn,
60
+ });
61
+ utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
62
+ 'width': '24px',
63
+ 'height': '24px',
64
+ 'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
65
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
66
+ 'border-radius': '4px',
67
+ 'background-color': css.color.primaryBtn,
68
+ });
69
+ });
70
+
71
+ it('When user clicks on expand question instruction image then it should open in the popup', () => {
72
+ thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
73
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
74
+ thinkSpherePage.steps.verifyQuestionImagePopup();
75
+ });
76
+
77
+ it('CSS of question instruction image popup', { tags: 'css' }, () => {
78
+ utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
79
+ 'border-radius': '8px',
80
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
81
+ 'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
82
+ });
83
+ utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
84
+ 'background-color': css.color.primaryBtn,
85
+ 'font-size': css.fontSize.normal,
86
+ 'font-weight': css.fontWeight.semibold,
87
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
88
+ 'color': css.color.primaryBtnBorder,
89
+ });
90
+ });
91
+
92
+ it('When user clicks on close expand image popup button then it should remove the popup', () => {
93
+ thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
94
+ utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
95
+ });
96
+ });
97
+ });