itemengine-cypress-automation 1.0.343 → 1.0.344-graph-and-chart-r2-8153722.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 (260) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
  4. package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
  5. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
  6. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  13. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  14. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  20. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  21. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
  22. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
  23. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  24. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  25. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  29. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  30. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  31. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  32. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  33. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  34. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  35. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
  36. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
  37. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  38. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  41. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
  42. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -0
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +1 -1
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  66. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
  67. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
  68. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  69. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  70. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  71. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  72. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  73. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  74. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  75. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  76. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  77. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  78. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  79. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  80. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  81. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  82. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  83. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  84. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  85. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  86. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  87. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  88. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  89. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  90. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  91. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  92. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  93. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  98. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  99. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  100. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  103. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  104. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  105. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  106. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
  107. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  108. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  109. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  110. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  111. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  112. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  113. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  114. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  115. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  116. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  117. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  118. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  119. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  120. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  121. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  122. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  123. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  124. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
  125. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
  126. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  127. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
  128. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
  129. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  130. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
  131. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
  132. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
  133. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  134. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
  135. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
  136. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  137. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  139. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  140. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  141. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  142. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  143. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  144. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  145. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  146. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  147. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  148. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  149. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  150. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  151. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  152. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
  153. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  154. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  155. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  156. package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
  157. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  158. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  159. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  160. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  161. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  162. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +84 -0
  163. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +84 -0
  164. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  165. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
  166. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +2 -2
  167. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  168. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -3
  169. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +62 -0
  170. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +62 -0
  171. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  172. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -4
  173. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
  174. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  175. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  176. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  177. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  178. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  179. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
  180. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  181. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +8 -6
  182. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  183. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  184. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  185. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
  186. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
  187. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
  188. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
  189. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  190. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
  191. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  192. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
  193. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  194. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  195. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  196. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  197. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  198. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  199. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  200. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  201. package/cypress/e2e/Sessions/scores.js +9 -5
  202. package/cypress/e2e/applitools.config.js +3 -3
  203. package/cypress/fixtures/theme/ilc.json +14 -1
  204. package/cypress/fixtures/uploads/sample.webm +0 -0
  205. package/cypress/fixtures/uploads/sample.wmv +0 -0
  206. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  207. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  208. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  209. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  210. package/cypress/pages/audioPlayerPage.js +22 -22
  211. package/cypress/pages/chartsBarPage.js +20 -0
  212. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  213. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  214. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  215. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
  216. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  217. package/cypress/pages/components/browseItemsPage.js +998 -7
  218. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  219. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  220. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  221. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  222. package/cypress/pages/components/commonComponents.js +8 -1
  223. package/cypress/pages/components/createQuestionBasePage.js +8 -1
  224. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  225. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  226. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  227. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
  228. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -35
  229. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  230. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  231. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  232. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  233. package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -4
  234. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  235. package/cypress/pages/desmosGeometryPage.js +184 -4
  236. package/cypress/pages/dialogBoxBase.js +2 -1
  237. package/cypress/pages/drawingResponsePage.js +16 -15
  238. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  239. package/cypress/pages/gradingViewPage.js +8 -0
  240. package/cypress/pages/graphingPage.js +27 -8
  241. package/cypress/pages/gridFillPage.js +15 -6
  242. package/cypress/pages/index.js +2 -1
  243. package/cypress/pages/listOrderingPage.js +32 -1
  244. package/cypress/pages/matchingPage.js +26 -7
  245. package/cypress/pages/multipleSelectionPage.js +10 -39
  246. package/cypress/pages/numberLineLabelPage.js +31 -8
  247. package/cypress/pages/numberLinePage.js +19 -7
  248. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  249. package/cypress/pages/singleSelectionPage.js +0 -37
  250. package/cypress/pages/textEntryMathPage.js +21 -0
  251. package/cypress/pages/thinkSpherePage.js +1874 -0
  252. package/cypress/pages/uploadResponsePage.js +2 -1
  253. package/cypress/pages/videoResponsePage.js +3 -0
  254. package/cypress/support/commands.js +7 -4
  255. package/cypress/support/e2e.js +1 -0
  256. package/cypress/support/helpers/createItem.js +1181 -1
  257. package/cypress/support/helpers/utilities.js +75 -1
  258. package/package.json +4 -4
  259. package/scripts/dataApi.mjs +3 -0
  260. package/scripts/sorry-cypress.mjs +13 -0
@@ -0,0 +1,368 @@
1
+ import { browseItemsPage } from '../../../pages/components/browseItemsPage';
2
+ import utilities from "../../../support/helpers/utilities";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ const css = Cypress.env('css');
5
+ import { common } from '../../../pages/common';
6
+ const tableHeader = ['ThinkSphere Item'];
7
+ const sortDisable = ['not.have.class'];
8
+ const sortOptions = ['Item', 'Last updated', 'Created on'];
9
+
10
+ describe('Navigate to Think Sphere Browse Items page and view the page contents', () => {
11
+ before(() => {
12
+ cy.loginAs('admin');
13
+ cy.deleteThinkSphereItem('~zzz item name');
14
+ cy.createThinkSphereItem('~zzz item name');
15
+ cy.visit('/item-engine/thinksphere/browse-items');
16
+ cy.interceptGraphql('getItems');
17
+ });
18
+
19
+ after(() => {
20
+ cy.deleteThinkSphereItem('~zzz item name');
21
+ });
22
+
23
+ describe('\'Browse ThinkSphere Items\' page desktop and mobile view icons section', () => {
24
+ abortEarlySetup();
25
+ it('Desktop icon should be present on the page and should be in selected state', () => {
26
+ browseItemsPage.steps.verifyDesktopIcon();
27
+ });
28
+
29
+ browseItemsPage.tests.verifyDesktopIconSelected(true);
30
+
31
+ it('CSS of \'Browse ThinkSphere Items\' desktop icon', { tags: 'css' }, () => {
32
+ utilities.verifyCSS(browseItemsPage.buttonDesktopViewToggle().find('svg'), {
33
+ 'fill': css.color.optionColor,
34
+ 'height': '20px',
35
+ 'width': '20px'
36
+ });
37
+ });
38
+
39
+ it('Mobile icon should be present on the page and should be in selected state', () => {
40
+ browseItemsPage.steps.verifyMobileIcon();
41
+ });
42
+
43
+ browseItemsPage.tests.verifyMobileIconSelected(false);
44
+
45
+ it('CSS of \'Browse ThinkSphere Items\' mobile icon', { tags: 'css' }, () => {
46
+ utilities.verifyCSS(browseItemsPage.buttonMobileViewToggle().find('svg'), {
47
+ 'fill': css.color.optionColor,
48
+ 'height': '20px',
49
+ 'width': '20px'
50
+ });
51
+ });
52
+
53
+ it('When user hover on the desktop and mobile icon tooltip should be visible', () => {
54
+ browseItemsPage.steps.triggerMouseOverOnViewModeIcon('desktop');
55
+ browseItemsPage.steps.verifyTooltipPresent();
56
+ browseItemsPage.steps.verifyTooltipText('Desktop View');
57
+ browseItemsPage.steps.triggerMouseOutOnViewModeIcon('desktop');
58
+ browseItemsPage.steps.triggerMouseOverOnViewModeIcon('mobile');
59
+ browseItemsPage.steps.verifyTooltipPresent();
60
+ browseItemsPage.steps.verifyTooltipText('Mobile View');
61
+ browseItemsPage.steps.triggerMouseOutOnViewModeIcon('mobile');
62
+ });
63
+
64
+ it('CSS of desktop and mobile view mode icon tooltip', { tags: 'css' }, () => {
65
+ browseItemsPage.steps.triggerMouseOverOnViewModeIcon('desktop');
66
+ utilities.verifyCSS(browseItemsPage.tooltipText(), {
67
+ 'background-color': css.color.sectionHeading,
68
+ 'color': css.color.primaryBtn,
69
+ 'font-size': css.fontSize.small,
70
+ 'font-weight': css.fontWeight.regular
71
+ });
72
+ browseItemsPage.steps.triggerMouseOutOnViewModeIcon('desktop');
73
+
74
+ cy.log('CSS of desktop and mobile view mode icon in hover state');
75
+ browseItemsPage.steps.hoverOnViewModeButton('desktop');
76
+ utilities.verifyCSS(browseItemsPage.buttonDesktopViewToggle(), {
77
+ 'background-color': css.color.tableRowHoverColor,
78
+ });
79
+ browseItemsPage.steps.hoverOnViewModeButton('mobile');
80
+ utilities.verifyCSS(browseItemsPage.buttonMobileViewToggle(), {
81
+ 'background-color': css.color.tableRowHoverColor,
82
+ });
83
+ });
84
+
85
+ it('When user click on the mobile view icon then it should get selected and main wrapper width should change', () => {
86
+ browseItemsPage.steps.clickOnViewModeIcon('mobile');
87
+ browseItemsPage.steps.verifyMainWrapperWidth('320px');
88
+ });
89
+
90
+ browseItemsPage.tests.verifyMobileIconSelected(true);
91
+ browseItemsPage.tests.verifyDesktopIconSelected(false);
92
+ });
93
+
94
+ describe('\'Browse ThinkSphere Items\' list page wrapper section', () => {
95
+ abortEarlySetup();
96
+ it('If the user clicks on the \'Browse ThinkSphere Items\' option from the menu bar, user should be navigated to the Think Sphere Browse Items page', () => {
97
+ browseItemsPage.steps.clickOnBrowseThinkSphereItemsMenuBarOption();
98
+ browseItemsPage.steps.verifyPageUrl('/item-engine/thinksphere/browse-items');
99
+ browseItemsPage.steps.verifyBrowseThinkSphereItemsMenuBarOptionSelected();
100
+ });
101
+
102
+ it('\'Browse ThinkSphere Items\' Item list page wrapper section should present', () => {
103
+ browseItemsPage.steps.verifyBrowseItemsPageWrapperSection();
104
+ });
105
+
106
+ it('CSS of \'Browse ThinkSphere Items\' option', { tags: 'css' }, () => {
107
+ utilities.verifyCSS(browseItemsPage.browseThinksphereItemsMenuBarOption(), {
108
+ 'color': css.color.codeBlockText,
109
+ 'font-size': css.fontSize.normal,
110
+ 'font-weight': css.fontWeight.medium
111
+ });
112
+ utilities.verifyCSS(browseItemsPage.browseItemPageWrapper(), {
113
+ 'background-color': css.color.primaryBtn,
114
+ 'border-radius': '4px',
115
+ 'border': `1px solid ${css.color.borderColor}`,
116
+ 'padding-bottom': '16px'
117
+ });
118
+ });
119
+ });
120
+
121
+ describe('\'Browse ThinkSphere Items\' page header section', () => {
122
+ abortEarlySetup();
123
+ it('\'Browse ThinkSphere Items\' page header section present', () => {
124
+ utilities.verifyElementVisibilityState(browseItemsPage.browseItemPageHeaderActionWrapper(), 'exist')
125
+ utilities.verifyInnerText(browseItemsPage.browseItemPageHeader(), 'Browse ThinkSphere items');
126
+ utilities.verifyInnerText(browseItemsPage.createItemButtonTypography(), 'Create item');
127
+ });
128
+
129
+ it('When user click on \'Browse ThinkSphere Items\' create item button, then it should navigate to think sphere create item page', () => {
130
+ browseItemsPage.steps.clickOnCreateItemButton();
131
+ browseItemsPage.steps.verifyPageUrl('/item-engine/thinksphere/create-item');
132
+ browseItemsPage.steps.clickWindowsBack();
133
+ cy.interceptGraphql('getItems');
134
+ cy.wait(2000);
135
+ });
136
+
137
+ it('CSS of \'Browse ThinkSphere Items\' page header section', { tags: 'css' }, () => {
138
+ utilities.verifyCSS(browseItemsPage.browseItemPageHeaderActionWrapper(), {
139
+ 'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`,
140
+ 'padding': '16px 0px'
141
+ });
142
+ utilities.verifyCSS(browseItemsPage.browseItemPageHeader(), {
143
+ 'color': css.color.secondaryBtn,
144
+ 'font-size': css.fontSize.heading,
145
+ 'font-weight': css.fontWeight.bold
146
+ });
147
+ utilities.verifyCSS(browseItemsPage.buttonCreateItem(), {
148
+ 'background-color': css.color.primaryBtnBg,
149
+ 'padding': '12px 16px'
150
+ });
151
+ utilities.verifyCSS(browseItemsPage.createItemButtonTypography(), {
152
+ 'color': css.color.primaryBtn,
153
+ 'font-size': css.fontSize.default,
154
+ 'font-weight': css.fontWeight.semibold
155
+ });
156
+
157
+ cy.log('CSS of \'Browse ThinkSphere Items\' page header section create button in hover state');
158
+ browseItemsPage.steps.hoverOnCreateItemButton();
159
+ utilities.verifyCSS(browseItemsPage.buttonCreateItem(), {
160
+ 'background-color': css.color.buttonHoverColor,
161
+ 'box-shadow': `${css.color.secondaryBtn} 0px 3px 0px 0px`
162
+ });
163
+ utilities.verifyCSS(browseItemsPage.createItemButtonTypography(), {
164
+ 'color': css.color.primaryBtn
165
+ });
166
+ });
167
+
168
+ it('Accessibility of create item button', { tags: 'a11y' }, () => {
169
+ cy.checkAccessibility(browseItemsPage.headerActionButtonWrapper());
170
+ });
171
+ });
172
+
173
+ describe('\'Browse ThinkSphere Items\' list table section columns headers', () => {
174
+ abortEarlySetup();
175
+ it('The column headers should be present in the listing table header', () => {
176
+ browseItemsPage.steps.verifyColumnHeadersInListingTable(tableHeader);
177
+ });
178
+
179
+ it('The column headers should have sort disable', () => {
180
+ browseItemsPage.steps.verifySortEnableDisableForTableColumnHeader(sortDisable);
181
+ });
182
+
183
+ it('When only one search result is present, then column sort should be disabled', () => {
184
+ browseItemsPage.steps.addTextInSearchBar('~zzz item name');
185
+ browseItemsPage.steps.clickOnSearchIcon();
186
+ browseItemsPage.steps.verifyPaginationCount('1 - 1 of');
187
+ browseItemsPage.steps.verifyMobileViewSortDropdownEnableDisableState(false);
188
+ browseItemsPage.steps.clearSearchBar();
189
+ });
190
+
191
+ it('CSS of \'Browse ThinkSphere Items\' list table section', { tags: 'css' }, () => {
192
+ tableHeader.forEach((_, count) => {
193
+ utilities.verifyCSS(browseItemsPage.tableColumnHeaderBrowseItemWrapperDiv(count), {
194
+ 'color': css.color.primaryBtnBorder,
195
+ 'font-size': css.fontSize.default,
196
+ 'font-weight': css.fontWeight.bold
197
+ });
198
+ utilities.verifyCSS(browseItemsPage.tableColumnHeader(count).parent().parent(), {
199
+ 'background-color': css.color.optionsBg,
200
+ });
201
+ });
202
+ });
203
+ });
204
+
205
+ describe('\'Browse ThinkSphere Items\' list table rows section', () => {
206
+ abortEarlySetup();
207
+ browseItemsPage.tests.verifyItemListTableRows();
208
+ browseItemsPage.tests.verifyItemReferenceId('~zzz item name', true);
209
+ browseItemsPage.tests.verifyQuestionInstruction('question instruction text');
210
+ });
211
+
212
+ describe('\'Browse ThinkSphere Items\' sort dropdown section', () => {
213
+ abortEarlySetup();
214
+ it('Sort dropdown should be present on the page', () => {
215
+ browseItemsPage.steps.verifySortDropdown();
216
+ browseItemsPage.steps.verifySortDropdownLabel('Sort by: Last updated');
217
+ browseItemsPage.steps.verifySortDescendingIcon();
218
+ });
219
+
220
+ it('When user click on sort dropdown, then sort options should be display', () => {
221
+ browseItemsPage.steps.clickOnSortDropdown();
222
+ browseItemsPage.steps.verifySortDropdownOptions(sortOptions);
223
+ });
224
+
225
+ it('When user click on \'ngie-popover-container\', then it should close sort options menu', () => {
226
+ browseItemsPage.steps.clickOnNgiePopoverContainer();
227
+ utilities.verifyElementVisibilityState(browseItemsPage.mobileViewSortbyDropdownOptionsList(), 'notExist');
228
+ });
229
+
230
+ it('When user click on each sort dropdown option, then items should sort Ascending and in descending order', () => {
231
+ sortOptions.forEach((_, count) => {
232
+ browseItemsPage.steps.clickOnSortDropdown();
233
+ browseItemsPage.steps.clickOnSortOption(count);
234
+ browseItemsPage.steps.clickOnSortDropdown();
235
+ browseItemsPage.steps.sortDropdownOptionSelected(count);
236
+ browseItemsPage.steps.clickOnNgiePopoverContainer();
237
+ });
238
+ browseItemsPage.steps.clickOnSortDropdown();
239
+ browseItemsPage.steps.clickOnSortOption(1);
240
+ browseItemsPage.steps.clickOnMobileViewSortAscendingIcon();
241
+ });
242
+
243
+ it('CSS of \'Browse ThinkSphere Items\' sort dropdown section', { tags: 'css' }, () => {
244
+ utilities.verifyCSS(browseItemsPage.mobileViewSortByDropdown(), {
245
+ 'border': `1px solid ${css.color.liTextSelectedBg}`,
246
+ 'box-shadow': `${css.color.liTextSelectedBg} 0px 5px 0px 0px`,
247
+ 'padding': '12px 16px'
248
+ });
249
+ utilities.verifyCSS(browseItemsPage.mobileViewSortByDropdownLabelWrapper(), {
250
+ 'color': css.color.highlightedTableCell,
251
+ 'font-size': css.fontSize.default,
252
+ 'font-weight': css.fontWeight.regular
253
+ });
254
+ utilities.verifyCSS(browseItemsPage.mobileViewSortByDropdownLabel(), {
255
+ 'color': css.color.highlightedTableCell,
256
+ 'font-size': css.fontSize.default,
257
+ 'font-weight': css.fontWeight.bold
258
+ });
259
+
260
+ cy.log('CSS of \'Browse ThinkSphere Items\' sort dropdown section in hover state');
261
+ browseItemsPage.steps.hoverOnSortDropdown();
262
+ utilities.verifyCSS(browseItemsPage.mobileViewSortByDropdown(), {
263
+ 'border': `1px solid ${css.color.primaryBtnBg}`,
264
+ 'box-shadow': `${css.color.primaryBtnBg} 0px 3px 0px 0px`
265
+ });
266
+ });
267
+ });
268
+
269
+ describe('\'Browse ThinkSphere Items\' search section', () => {
270
+ abortEarlySetup();
271
+ it('Search bar component should be present', () => {
272
+ browseItemsPage.steps.verifySearchBarComponent();
273
+ browseItemsPage.steps.verifySearchIcon();
274
+ browseItemsPage.steps.verifyCloseIcon();
275
+ });
276
+
277
+ it('CSS of search bar component', { tags: 'css' }, () => {
278
+ utilities.verifyCSS(browseItemsPage.searchBar().parent(), {
279
+ 'background-color': css.color.progressBarRemainingFill,
280
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
281
+ 'border-radius': '50px',
282
+ 'padding': '0px 8px'
283
+ });
284
+ utilities.verifyCSS(browseItemsPage.buttonSearchSVG(), {
285
+ 'fill': css.color.primaryBtnBorder,
286
+ 'height': '18px',
287
+ 'width': '18px'
288
+ });
289
+ });
290
+
291
+ it('When user type title/tags/content in search component and search, then it should search', () => {
292
+ browseItemsPage.steps.addTextInSearchBar('~zzz');
293
+ browseItemsPage.steps.clickOnSearchIcon();
294
+ browseItemsPage.steps.verifyPaginationCount('1 - 1 of');
295
+ });
296
+
297
+ it('User should be able to clear the searchbar',()=>{
298
+ browseItemsPage.steps.clearSearchBar();
299
+ });
300
+
301
+ browseItemsPage.tests.verifyItemReferenceId('~zzz item name', true);
302
+
303
+ it('CSS of search bar in hover state', { tags: 'css' }, () => {
304
+ browseItemsPage.steps.hoverOnSearchBarComponent();
305
+ utilities.verifyCSS(browseItemsPage.searchBar().parent(), {
306
+ 'background-color': css.color.primaryBtn,
307
+ });
308
+ });
309
+
310
+ // skip this because axeDevtools is showing zero errors still this case is showing one accessibility issue
311
+ it.skip('Accessibility of search bar component', { tags: 'a11y' }, () => {
312
+ cy.checkAccessibility(browseItemsPage.itemListFilterWrapper());
313
+ });
314
+ });
315
+
316
+ describe('\'Browse ThinkSphere Items\' pagination section', () => {
317
+ abortEarlySetup();
318
+ it('Pagination section should be present', () => {
319
+ browseItemsPage.steps.verifyPaginationSection();
320
+ browseItemsPage.steps.verifyPaginationCount('1 - 20 of');
321
+ browseItemsPage.steps.verifyItemsOnPage(20);
322
+ });
323
+
324
+ it('CSS of \'Browse ThinkSphere Items\' pagination section', { tags: 'css' }, () => {
325
+ utilities.verifyCSS(utilities.getNthElement(browseItemsPage.paginationCountText(), 0), {
326
+ 'color': css.color.labels,
327
+ 'font-size': css.fontSize.small,
328
+ 'font-weight': css.fontWeight.regular
329
+ });
330
+ utilities.getNthElement(browseItemsPage.paginationBlock(), 0)
331
+ .within(() => {
332
+ utilities.verifyCSS(browseItemsPage.buttonNext(), {
333
+ 'box-shadow': `${css.color.secondaryBtnBorder} 0px 5px 0px 0px`,
334
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
335
+ 'color': css.color.secondaryBtn,
336
+ 'padding': '7px'
337
+ });
338
+ utilities.verifyCSS(browseItemsPage.buttonPrevious(), {
339
+ 'opacity': '0.5',
340
+ 'border': `1px solid ${css.color.secondaryBtnBorder}`,
341
+ 'color': css.color.secondaryBtn,
342
+ 'padding': '7px'
343
+ });
344
+ });
345
+ });
346
+
347
+ it('When user click on the next page button, then it should display the next page data', () => {
348
+ browseItemsPage.steps.clickOnNextPageButton();
349
+ browseItemsPage.steps.verifyPaginationCount('21 - 40 of');
350
+ });
351
+
352
+ it('When user click on the prev page button, then it should display the prev page data', () => {
353
+ browseItemsPage.steps.clickOnPreviousPageButton();
354
+ browseItemsPage.steps.verifyPaginationCount('1 - 20 of');
355
+ });
356
+
357
+ it('CSS of pagination section next button in hover state', { tags: 'css' }, () => {
358
+ browseItemsPage.steps.hoverOnNextPageButton();
359
+ utilities.getNthElement(browseItemsPage.paginationBlock(), 0)
360
+ .within(() => {
361
+ utilities.verifyCSS(browseItemsPage.buttonNext(), {
362
+ 'border-color': css.color.primaryBtnBg,
363
+ 'box-shadow': `${css.color.primaryBtnBg} 0px 3px 0px 0px`
364
+ });
365
+ });
366
+ });
367
+ });
368
+ });
@@ -0,0 +1,33 @@
1
+ import { chartsBarPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - Charts Bar', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: Auto Scored Without Points', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
13
+ cy.barsPreLoaderWait();
14
+ chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
15
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
16
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
17
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 3, range: 10 });
18
+ chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 5, range: 10 });
19
+ chartsBarPage.steps.switchToPreviewTab();
20
+ });
21
+
22
+ it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
23
+ chartsBarPage.steps.checkManuallyScoredScoringLabel();
24
+ });
25
+
26
+ it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
27
+ chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
28
+ chartsBarPage.steps.switchToGradingView();
29
+ chartsBarPage.steps.verifyAnswerStatusBannerExist();
30
+ chartsBarPage.steps.verifyCorrectAnswerSectionExist();
31
+ });
32
+ });
33
+ });
@@ -6,6 +6,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Charts - Bar: Partial different weights scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -27,8 +28,7 @@ describe('Create item page - Charts - Bar: Partial different weights', () => {
27
28
  chartsBarPage.steps.switchToPreviewTab();
28
29
  });
29
30
 
30
- //Need to remove skip once https://redmine.zeuslearning.com/issues/577535 is resolved
31
- it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
31
+ it('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
32
32
  chartsBarPage.steps.switchToGradingView();
33
33
  chartsBarPage.steps.verifyPreviewScore(0, 20);
34
34
  chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When alternate answer points are more than correct answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Bar: Partial different weights scoring wit
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -0,0 +1,37 @@
1
+ import { chartsBarPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Charts Bar', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('User should be able to edit incomplete authored question', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
13
+ cy.barsPreLoaderWait();
14
+ chartsBarPage.steps.saveAQuestionWithIncompleteAuthoring();
15
+ chartsBarPage.steps.editItem();
16
+ });
17
+
18
+ it('Warning icons should be displayed on the required input fields', () => {
19
+ chartsBarPage.steps.verifyWarningIconOnRequiredFields([
20
+ 'Please set points',
21
+ ]);
22
+ });
23
+
24
+ it('When required input fields are filled then warning icons should disappear', () => {
25
+ chartsBarPage.steps.allotPoints(10);
26
+ chartsBarPage.steps.verifyErrorMessageIsNotDisplayed();
27
+ });
28
+
29
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
30
+ chartsBarPage.steps.saveAQuestionAndVerifySnackbar();
31
+ });
32
+
33
+ it('Warning icon should not be visible', () => {
34
+ chartsBarPage.steps.verifyWarningIconNotExist();
35
+ });
36
+ });
37
+ });
@@ -1,8 +1,11 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { chartsBarPage, dialogBoxBase } from "../../../pages";
2
+ import { chartsBarPage, dialogBoxBase, itemPreviewPage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const css = Cypress.env('css');
5
6
 
7
+ var itemReferenceID = "";
8
+
6
9
  describe('Create item page - Charts - Bar: Header section and saving question', () => {
7
10
  before(() => {
8
11
  cy.loginAs('admin');
@@ -94,7 +97,22 @@ describe('Create item page - Charts - Bar: Header section and saving question',
94
97
  cy.barsPreLoaderWait();
95
98
  });
96
99
 
97
- chartsBarPage.tests.verifyCreateItemWrapperContentsA11y();
100
+ describe('Validation error messages', () => {
101
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
102
+
103
+ it('Validation error messages should be displayed below required input fields', () => {
104
+ chartsBarPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
105
+ chartsBarPage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
106
+ chartsBarPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
107
+ });
108
+
109
+ it('Validation error messages should disappear when required input fields are filled', () => {
110
+ chartsBarPage.steps.allotPoints(10);
111
+ chartsBarPage.steps.verifyErrorMessageIsNotDisplayed();
112
+ });
113
+
114
+ chartsBarPage.tests.verifyCreateItemWrapperContentsA11y();
115
+ });
98
116
 
99
117
  describe('Saving a question', () => {
100
118
  it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
@@ -103,5 +121,35 @@ describe('Create item page - Charts - Bar: Header section and saving question',
103
121
 
104
122
  chartsBarPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
105
123
  });
124
+
125
+ describe('Saving a question with incomplete authoring', () => {
126
+ abortEarlySetup();
127
+ before(() => {
128
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
129
+ cy.barsPreLoaderWait();
130
+ });
131
+
132
+ it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
133
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
134
+ chartsBarPage.steps.saveAQuestionWithIncompleteAuthoring();
135
+ });
136
+ chartsBarPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
137
+ });
138
+ });
139
+
140
+ describe('Save as you go - Browse item page contents', () => {
141
+ abortEarlySetup();
142
+ before(() => {
143
+ chartsBarPage.steps.navigateToCreateQuestion('charts');
144
+ cy.barsPreLoaderWait();
145
+ chartsBarPage.steps.saveAQuestionWithIncompleteAuthoring();
146
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
147
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
148
+ browseItemsPage.steps.navigateToBrowseItemsPage();
149
+ });
150
+
151
+ it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
152
+ browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
153
+ });
106
154
  });
107
155
  });
@@ -6,6 +6,7 @@ describe('Create item page - Charts - Line: Partial different weights', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Charts - Line: Partial different weights scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When alternate answer points are more than correct answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line: Partial different weights scoring wi
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - Charts - Line: Partial different weights scoring wi
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -6,6 +6,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
6
6
  cy.loginAs('admin');
7
7
  });
8
8
 
9
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5954
9
10
  describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
10
11
  abortEarlySetup();
11
12
  before(() => {
@@ -95,11 +95,28 @@ describe('Create item page - Charts - Bar: Header section and saving question',
95
95
  before(() => {
96
96
  chartsLinePage.steps.navigateToCreateQuestion('charts');
97
97
  cy.barsPreLoaderWait();
98
+ chartsLinePage.steps.selectLineButton();
98
99
  });
99
100
 
100
- chartsLinePage.tests.verifyCreateItemWrapperContentsA11y();
101
+ describe('Validation error messages', () => {
102
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
103
+
104
+ it('Validation error messages should be displayed below required input fields', () => {
105
+ chartsLinePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
106
+ chartsLinePage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
107
+ chartsLinePage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
108
+ });
109
+
110
+ it('Validation error messages should disappear when required input fields are filled', () => {
111
+ chartsLinePage.steps.allotPoints(10);
112
+ chartsLinePage.steps.verifyErrorMessageIsNotDisplayed();
113
+ });
114
+
115
+ chartsLinePage.tests.verifyCreateItemWrapperContentsA11y();
116
+ });
101
117
 
102
118
  describe('Saving a question', () => {
119
+
103
120
  it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
104
121
  chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
105
122
  });