itemengine-cypress-automation 1.0.389-graphAndCharts-04d27f6.0 → 1.0.390-IEI-6314-testScriptForTextEntryMathValidations-dcad527.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 (319) hide show
  1. package/Dockerfile +1 -0
  2. package/cypress/e2e/GradingGridView/gradingGridView.js +156 -0
  3. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
  4. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -0
  5. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  6. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  7. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +3 -3
  8. package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +3 -3
  9. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +6 -6
  10. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +6 -6
  11. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +356 -0
  12. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  13. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  14. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +27 -27
  15. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -37
  16. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -37
  17. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -37
  18. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +26 -25
  19. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +39 -38
  20. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +31 -30
  21. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +35 -34
  22. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +247 -0
  23. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +287 -0
  24. package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +1 -1
  25. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  26. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  27. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +92 -0
  28. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +220 -0
  29. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +25 -26
  30. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -47
  31. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -25
  32. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -25
  33. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +25 -25
  34. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +24 -23
  35. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +21 -20
  36. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +48 -46
  37. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +249 -0
  38. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +247 -0
  39. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
  40. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  41. package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +94 -0
  42. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -2
  43. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
  44. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
  45. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
  46. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
  47. package/cypress/e2e/ILC/CkEditorEquationEditor/selectModeEditorBasic.js +4 -1
  48. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -3
  49. package/cypress/e2e/ILC/CkEditorInsertImage/insertImageBasicFile.js +2 -0
  50. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +8 -8
  51. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
  52. package/cypress/e2e/ILC/CkEditorLink/linkPreview.js +2 -1
  53. package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
  54. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +63 -4
  55. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +116 -7
  56. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +3 -3
  57. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
  58. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +3 -3
  59. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
  60. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +3 -0
  61. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +11 -3
  62. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  63. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
  64. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
  65. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -3
  66. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
  67. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +15 -16
  68. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
  69. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  70. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +3 -3
  71. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  72. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabBasicSection.js +2 -2
  73. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +3 -3
  74. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
  75. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -1
  76. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +4 -4
  77. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -4
  78. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +1 -1
  79. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +4 -0
  80. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
  81. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
  82. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -3
  83. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  84. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  85. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  86. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  87. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +213 -2
  88. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  89. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  90. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  91. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  92. package/cypress/e2e/ILC/Graphing/headerSection.js +37 -4
  93. package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +28 -0
  94. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  95. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +210 -0
  96. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
  97. package/cypress/e2e/ILC/GridFill/headerSection.js +4 -4
  98. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  99. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  100. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  101. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  102. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  103. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  104. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  105. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
  106. package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +1 -0
  107. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
  108. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
  109. package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +1 -1
  110. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +3 -3
  111. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  112. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  113. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  114. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  115. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -4
  116. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  117. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +237 -1
  118. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  119. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +26 -0
  120. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  121. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +2 -1
  122. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -4
  123. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +7 -12
  124. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +10 -14
  125. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  126. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +215 -0
  127. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  128. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +36 -9
  129. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +2 -0
  130. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +7 -23
  131. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  132. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  133. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  134. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  135. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +309 -0
  136. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  137. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  138. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  139. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +38 -3
  140. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +38 -41
  141. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  142. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
  143. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  144. package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -5
  145. package/cypress/e2e/ILC/Matching/draggableOptions.js +7 -0
  146. package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +3 -2
  147. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  148. package/cypress/e2e/ILC/Matching/headerSection.js +38 -12
  149. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  150. package/cypress/e2e/ILC/Matching/studentViewSettings.js +3 -1
  151. package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
  152. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +7 -6
  153. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
  154. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
  155. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
  156. package/cypress/e2e/ILC/MultipleSelection/editTabBasicSection.js +1 -1
  157. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +3 -3
  158. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
  159. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +2 -2
  160. package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +3 -3
  161. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
  162. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
  163. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  164. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  165. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  166. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  167. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +213 -0
  168. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  169. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  170. package/cypress/e2e/ILC/NumberLine/headerSection.js +34 -4
  171. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +249 -0
  172. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  173. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  174. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  175. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  176. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +0 -1
  177. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +266 -0
  178. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  179. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  180. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -4
  181. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  182. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +268 -0
  183. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  184. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +186 -0
  185. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +4 -3
  186. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  187. package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
  188. package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
  189. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +2 -2
  190. package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +3 -3
  191. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
  192. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
  193. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
  194. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  195. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  196. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  197. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  198. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +9 -2
  199. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  200. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
  201. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  202. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
  203. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
  204. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
  205. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
  206. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
  207. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  208. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -2
  209. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  210. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  211. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  212. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
  213. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  214. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  215. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  216. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
  217. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
  218. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +263 -0
  219. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +219 -0
  220. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  221. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  222. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
  223. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +310 -1
  224. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +205 -1
  225. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  226. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +263 -0
  227. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -1
  228. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  229. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +1 -0
  230. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
  231. package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +2 -2
  232. package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -3
  233. package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
  234. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -0
  235. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
  236. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
  237. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
  238. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
  239. package/cypress/e2e/ILC/ThinkSphere/gradingViewPlanTabSection.js +334 -0
  240. package/cypress/e2e/ILC/ThinkSphere/gradingViewReviewTabSection.js +140 -0
  241. package/cypress/e2e/ILC/ThinkSphere/gradingViewSolveTabSection.js +65 -0
  242. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
  243. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
  244. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +102 -0
  245. package/cypress/e2e/ILC/ThinkSphere/previewTabSolveSection.js +41 -0
  246. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
  247. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  248. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +146 -0
  249. package/cypress/e2e/ILC/ThinkSphere/studentViewSolveSection.js +53 -0
  250. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
  251. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  252. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  253. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
  254. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  255. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +248 -0
  256. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  257. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +27 -28
  258. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
  259. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +24 -24
  260. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +39 -37
  261. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +22 -23
  262. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
  263. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +25 -24
  264. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +31 -31
  265. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +18 -19
  266. package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +96 -0
  267. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  268. package/cypress/e2e/Sessions/saveResponseScores.js +2 -2
  269. package/cypress/fixtures/thinkSphereWhiteboardTools.js +66 -0
  270. package/cypress/pages/audioPlayerPage.js +25 -0
  271. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  272. package/cypress/pages/chartsBarPage.js +45 -0
  273. package/cypress/pages/chartsDotPlotPage.js +25 -0
  274. package/cypress/pages/chartsLinePage.js +29 -2
  275. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
  276. package/cypress/pages/components/chartsCommonComponent.js +21 -2
  277. package/cypress/pages/components/ckEditorEquationEditorComponent.js +1 -0
  278. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  279. package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
  280. package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
  281. package/cypress/pages/components/colorPopupComponent.js +6 -0
  282. package/cypress/pages/components/createQuestionBasePage.js +19 -6
  283. package/cypress/pages/components/desmosToolComponent.js +1 -1
  284. package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
  285. package/cypress/pages/components/equationEditorSectionCommonComponent.js +4 -4
  286. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +31 -3
  287. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -1
  288. package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
  289. package/cypress/pages/components/imageCanvasComponent.js +11 -5
  290. package/cypress/pages/components/playbackControlsBaseComponent.js +6 -3
  291. package/cypress/pages/components/questionInstructionsComponent.js +2 -0
  292. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
  293. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +16 -0
  294. package/cypress/pages/contentBlocksPage.js +2 -0
  295. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  296. package/cypress/pages/desmosGeometryPage.js +184 -4
  297. package/cypress/pages/drawingResponsePage.js +9 -2
  298. package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -8
  299. package/cypress/pages/gradingGridViewPage.js +64 -0
  300. package/cypress/pages/graphingPage.js +28 -5
  301. package/cypress/pages/gridFillPage.js +24 -9
  302. package/cypress/pages/imageHighlightPage.js +115 -15
  303. package/cypress/pages/index.js +1 -0
  304. package/cypress/pages/listOrderingPage.js +46 -2
  305. package/cypress/pages/matchingPage.js +29 -10
  306. package/cypress/pages/numberLineLabelPage.js +26 -0
  307. package/cypress/pages/numberLinePage.js +15 -0
  308. package/cypress/pages/singleSelectionPage.js +30 -1
  309. package/cypress/pages/textEntryMathPage.js +29 -10
  310. package/cypress/pages/textSelectionPage.js +2 -2
  311. package/cypress/pages/thinkSpherePage.js +1118 -87
  312. package/cypress/pages/uploadResponsePage.js +17 -1
  313. package/cypress/pages/videoResponsePage.js +3 -0
  314. package/cypress/support/commands.js +9 -0
  315. package/cypress/support/helpers/createItem.js +22 -3
  316. package/cypress/support/helpers/utilities.js +14 -1
  317. package/package.json +1 -1
  318. /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
  319. /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -347,4 +347,77 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
347
347
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
348
348
  });
349
349
  });
350
+
351
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has no points plotted', () => {
352
+ abortEarlySetup();
353
+ before(() => {
354
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
355
+ cy.barsPreLoaderWait();
356
+ graphingPage.steps.addTextInQuestionInstructionsInputField('Test question');
357
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
358
+ graphingPage.steps.allotPoints(12);
359
+ graphingPage.steps.addAlternativeAnswerAccordion(1);
360
+ graphingPage.steps.allotPoints(20);
361
+ graphingPage.steps.switchToPreviewTab();
362
+ });
363
+
364
+ it('When user attempts the question with responses from the correct accordion, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
365
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
366
+ graphingPage.steps.verifyPreviewScore(12, 20);
367
+ graphingPage.steps.switchToGradingView();
368
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
369
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
370
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
371
+ });
372
+
373
+ it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
374
+ graphingPage.steps.resetQuestionPreview();
375
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
376
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
377
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
378
+ graphingPage.steps.verifyPreviewScore(20, 20);
379
+ graphingPage.steps.switchToGradingView();
380
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
381
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
382
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
383
+ });
384
+ });
385
+
386
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and correct answer has no points plotted', () => {
387
+ abortEarlySetup();
388
+ before(() => {
389
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
390
+ cy.barsPreLoaderWait();
391
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
392
+ graphingPage.steps.allotPoints(12);
393
+ graphingPage.steps.addAlternativeAnswerAccordion(1);
394
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
395
+ graphingPage.steps.allotPoints(20);
396
+ graphingPage.steps.expandCorrectAnswerAccordion();
397
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
398
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
399
+ graphingPage.steps.switchToPreviewTab();
400
+ });
401
+
402
+ it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
403
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
404
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
405
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
406
+ graphingPage.steps.verifyPreviewScore(12, 20);
407
+ graphingPage.steps.switchToGradingView();
408
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
409
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
410
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
411
+ });
412
+
413
+ it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
414
+ graphingPage.steps.resetQuestionPreview();
415
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
416
+ graphingPage.steps.verifyPreviewScore(20, 20);
417
+ graphingPage.steps.switchToGradingView();
418
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
419
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
420
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
421
+ });
422
+ });
350
423
  });
@@ -352,4 +352,42 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
352
352
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
353
353
  });
354
354
  });
355
+
356
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
357
+ abortEarlySetup();
358
+ before(() => {
359
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
360
+ cy.barsPreLoaderWait();
361
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
362
+ graphingPage.steps.allotPoints(12);
363
+ graphingPage.steps.addAlternativeAnswerAccordion(1);
364
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
365
+ graphingPage.steps.allotPoints(12);
366
+ graphingPage.steps.expandCorrectAnswerAccordion();
367
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
368
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
369
+ graphingPage.steps.switchToPreviewTab();
370
+ });
371
+
372
+ it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
373
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
374
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
375
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
376
+ graphingPage.steps.verifyPreviewScore(12, 12);
377
+ graphingPage.steps.switchToGradingView();
378
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
379
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
380
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
381
+ });
382
+
383
+ it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
384
+ graphingPage.steps.resetQuestionPreview();
385
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
386
+ graphingPage.steps.verifyPreviewScore(12, 12);
387
+ graphingPage.steps.switchToGradingView();
388
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
389
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
390
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
391
+ });
392
+ });
355
393
  });
@@ -398,4 +398,42 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
398
398
  cy.checkAccessibility(graphingPage.previewTabQuestionWrapper());
399
399
  });
400
400
  });
401
+
402
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
403
+ abortEarlySetup();
404
+ before(() => {
405
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
406
+ cy.barsPreLoaderWait();
407
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
408
+ graphingPage.steps.allotPoints(21);
409
+ graphingPage.steps.addAlternativeAnswerAccordion(1);
410
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
411
+ graphingPage.steps.allotPoints(12);
412
+ graphingPage.steps.expandCorrectAnswerAccordion();
413
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
414
+ graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
415
+ graphingPage.steps.switchToPreviewTab();
416
+ });
417
+
418
+ it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
419
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
420
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
421
+ graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
422
+ graphingPage.steps.verifyPreviewScore(21, 21);
423
+ graphingPage.steps.switchToGradingView();
424
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
425
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
426
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
427
+ });
428
+
429
+ it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
430
+ graphingPage.steps.resetQuestionPreview();
431
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
432
+ graphingPage.steps.verifyPreviewScore(12, 21);
433
+ graphingPage.steps.switchToGradingView();
434
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
435
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
436
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
437
+ });
438
+ });
401
439
  });
@@ -0,0 +1,87 @@
1
+ import { graphingPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ const correctAnswerPoints = [
5
+ { x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }
6
+ ];
7
+
8
+ const incorrectAnswerPoints = [
9
+ { x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 4, xRange: 20, y: 4, yRange: 20 }
10
+ ];
11
+
12
+ describe('Create Item page - Graphing', () => {
13
+ before(() => {
14
+ cy.loginAs('admin');
15
+ });
16
+
17
+ describe('Question Preview: Auto Scored With Points', () => {
18
+ abortEarlySetup();
19
+ before(() => {
20
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
21
+ cy.barsPreLoaderWait();
22
+ graphingPage.steps.switchToPreviewTab();
23
+ });
24
+
25
+ it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
26
+ graphingPage.steps.checkManuallyScoredScoringLabel();
27
+ });
28
+
29
+ it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
30
+ graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
31
+ graphingPage.steps.switchToGradingView();
32
+ graphingPage.steps.verifyAnswerStatusBannerNotExist();
33
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
34
+ });
35
+
36
+ it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
37
+ graphingPage.steps.switchToEditTab();
38
+ graphingPage.steps.allotPoints(10);
39
+ graphingPage.steps.switchToPreviewTab();
40
+ graphingPage.steps.checkManuallyScoredScoringLabel();
41
+ graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
42
+ graphingPage.steps.switchToGradingView();
43
+ graphingPage.steps.verifyAnswerStatusBannerNotExist();
44
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
45
+ });
46
+ });
47
+
48
+ describe('Question Preview: Auto Scored Without Points', () => {
49
+ abortEarlySetup();
50
+ before(() => {
51
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
52
+ cy.barsPreLoaderWait();
53
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection(correctAnswerPoints);
54
+ graphingPage.steps.switchToPreviewTab();
55
+ });
56
+
57
+ it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
58
+ graphingPage.steps.checkManuallyScoredScoringLabel();
59
+ });
60
+
61
+ it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
62
+ graphingPage.steps.plotPointsOnGraphPreviewTab(incorrectAnswerPoints);
63
+ graphingPage.steps.switchToGradingView();
64
+ graphingPage.steps.verifyAnswerStatusBannerExist();
65
+ graphingPage.steps.verifyCorrectAnswerSectionExist();
66
+ });
67
+ });
68
+
69
+ describe('Question Preview: Non Scored', () => {
70
+ abortEarlySetup();
71
+ before(() => {
72
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
73
+ cy.barsPreLoaderWait();
74
+ graphingPage.steps.addTextInQuestionInstructionsInputField('Graphing question');
75
+ });
76
+
77
+ it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
78
+ graphingPage.steps.expandScoringTypeDropdown();
79
+ graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
80
+ graphingPage.steps.switchToPreviewTab();
81
+ graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
82
+ graphingPage.steps.switchToGradingView();
83
+ graphingPage.steps.verifyAnswerStatusBannerNotExist();
84
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
85
+ });
86
+ });
87
+ });
@@ -784,9 +784,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
784
784
  it('When the user attempts the question with incorrect sine wave then the question should be treated as incorrect', () => {
785
785
  graphingPage.steps.resetQuestionPreview();
786
786
  graphingPage.steps.selectGraphToolOptionPreviewTab('Sine');
787
- graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: -1, yRange: 20 }]);
787
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: 1, yRange: 20 }]);
788
788
  graphingPage.steps.switchToGradingView();
789
- graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: -1, yRange: 20 }]);
789
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: 1, yRange: 20 }]);
790
790
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
791
791
  });
792
792
 
@@ -840,6 +840,217 @@ describe('Create Item page - Graphing: All or nothing ', () => {
840
840
  });
841
841
  });
842
842
 
843
+ views.forEach((view) => {
844
+ describe(`${view}: Graphing - Polygon: Manually scored`, { tags: 'smoke' }, () => {
845
+ abortEarlySetup();
846
+ before(() => {
847
+ switch (view) {
848
+ case 'Question preview':
849
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
850
+ cy.barsPreLoaderWait();
851
+ graphingPage.steps.addTextInQuestionInstructionsInputField('Plot the polygons');
852
+ graphingPage.steps.selectToolOptions(['Polygon']);
853
+ graphingPage.steps.checkPatternBackground();
854
+ graphingPage.steps.selectGraphToolOptionEditTab('Polygon');
855
+ graphingPage.steps.plotPointsOnGraphEditTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
856
+ graphingPage.steps.expandScoringTypeDropdown();
857
+ graphingPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
858
+ graphingPage.steps.allotPoints(20);
859
+ graphingPage.steps.switchToPreviewTab();
860
+ break;
861
+ case 'Item preview':
862
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
863
+ itemPreviewPage.steps.switchToPreviewTab();
864
+ break;
865
+ case 'Grading view':
866
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
867
+ break;
868
+ }
869
+ });
870
+
871
+ beforeEach(() => {
872
+ switch (view) {
873
+ case 'Question preview':
874
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
875
+ graphingPage.steps.resetQuestionPreview();
876
+ break;
877
+ case 'Item preview':
878
+ itemPreviewPage.steps.switchToStudentView();
879
+ itemPreviewPage.steps.resetQuestionPreview();
880
+ break;
881
+ case 'Grading view':
882
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
883
+ break;
884
+ }
885
+ });
886
+
887
+ if (view === 'Question preview') {
888
+ after(() => {
889
+ graphingPage.steps.clickOnSaveQuestionButton();
890
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
891
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
892
+ });
893
+ }
894
+
895
+ it('Question instructions should be visible', () => {
896
+ graphingPage.steps.verifyQuestionInstructionsTextPreviewTab('Plot the polygons');
897
+ graphingPage.steps.verifyVisibityOfQuestionInstructionsText();
898
+ });
899
+
900
+ it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label and correct answer section should not be displayed in grading view', () => {
901
+ graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
902
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
903
+ if (view === 'Grading view') {
904
+ studentViewPage.steps.submitResponse();
905
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
906
+ studentViewPage.steps.clickOnGoToGradingViewButton();
907
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
908
+ }
909
+ if (view === 'Question preview' || view === 'Item preview') {
910
+ graphingPage.steps.checkManuallyScoredScoringLabel();
911
+ }
912
+ graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
913
+ graphingPage.steps.verifyCorrectIncorrectIconsNotExist();
914
+ graphingPage.steps.verifyCorrectIncorrectBorderNotExists();
915
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
916
+ });
917
+ });
918
+ });
919
+
920
+ views.forEach((view) => {
921
+ describe(`${view}: Graphing - Polygon: Non scored`, { tags: 'smoke' }, () => {
922
+ abortEarlySetup();
923
+ before(() => {
924
+ switch (view) {
925
+ case 'Question preview':
926
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
927
+ cy.barsPreLoaderWait();
928
+ graphingPage.steps.addTextInQuestionInstructionsInputField('Plot the polygons');
929
+ graphingPage.steps.selectToolOptions(['Polygon']);
930
+ graphingPage.steps.checkPatternBackground();
931
+ graphingPage.steps.expandScoringTypeDropdown();
932
+ graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
933
+ graphingPage.steps.selectGraphToolOptionSpecifyCorrectAnswer('Polygon');
934
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
935
+ graphingPage.steps.switchToPreviewTab();
936
+ break;
937
+ case 'Item preview':
938
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
939
+ itemPreviewPage.steps.switchToPreviewTab();
940
+ break;
941
+ case 'Grading view':
942
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
943
+ break;
944
+ }
945
+ });
946
+
947
+ beforeEach(() => {
948
+ switch (view) {
949
+ case 'Question preview':
950
+ graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
951
+ graphingPage.steps.resetQuestionPreview();
952
+ break;
953
+ case 'Item preview':
954
+ itemPreviewPage.steps.switchToStudentView();
955
+ itemPreviewPage.steps.resetQuestionPreview();
956
+ break;
957
+ case 'Grading view':
958
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
959
+ break;
960
+ }
961
+ });
962
+
963
+ if (view === 'Question preview') {
964
+ after(() => {
965
+ graphingPage.steps.clickOnSaveQuestionButton();
966
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
967
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
968
+ });
969
+ }
970
+
971
+ it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
972
+ if (view === 'Grading view') {
973
+ studentViewPage.steps.submitResponse();
974
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
975
+ studentViewPage.steps.clickOnGoToGradingViewButton();
976
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
977
+ };
978
+ if (view === 'Question preview' || view === 'Item preview') {
979
+ graphingPage.steps.checkNonScoredScoringLabel();
980
+ graphingPage.steps.switchToGradingView();
981
+ };
982
+ graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
983
+ graphingPage.steps.verifyCorrectAnswerSectionExist();
984
+ });
985
+
986
+ it('When the user attempts the question incorrectly, non-scoring label should be displayed and on switching to grading view, incorrect icons should be displayed and the correct answer should be displayed in the correct answer section', () => {
987
+ graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
988
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 5, yRange: 20 }]);
989
+ if (view === 'Grading view') {
990
+ studentViewPage.steps.submitResponse();
991
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
992
+ studentViewPage.steps.clickOnGoToGradingViewButton();
993
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
994
+ };
995
+ if (view === 'Question preview' || view === 'Item preview') {
996
+ graphingPage.steps.checkNonScoredScoringLabel();
997
+ graphingPage.steps.switchToGradingView();
998
+ };
999
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 5, yRange: 20 }]);
1000
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1001
+ graphingPage.steps.verifyCorrectAnswerSectionExist();
1002
+
1003
+ });
1004
+
1005
+ it('When the user attempts the question partially correct, non-scoring label should be displayed, correct icons should be displayed for correct polygons, incorrect icons for incorrect polygons, and the correct answer section should be displayed', () => {
1006
+ if (view === 'Grading view') {
1007
+ studentViewPage.steps.clearResponses();
1008
+ }
1009
+ graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
1010
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
1011
+ graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
1012
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 5, yRange: 20 }]);
1013
+ if (view === 'Grading view') {
1014
+ studentViewPage.steps.submitResponse();
1015
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
1016
+ studentViewPage.steps.clickOnGoToGradingViewButton();
1017
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
1018
+ };
1019
+ if (view === 'Question preview' || view === 'Item preview') {
1020
+ graphingPage.steps.checkNonScoredScoringLabel();
1021
+ graphingPage.steps.switchToGradingView();
1022
+ };
1023
+ graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
1024
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 3, yRange: 20 }, { x: 4, xRange: 20, y: 5, yRange: 20 }, { x: 2, xRange: 20, y: 5, yRange: 20 }]);
1025
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1026
+ graphingPage.steps.verifyCorrectAnswerSectionExist();
1027
+ });
1028
+
1029
+ it('When the user attempts the question correctly, non-scoring label should be displayed, correct icons should be displayed for the correct polygons, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
1030
+ if (view === 'Grading view') {
1031
+ studentViewPage.steps.clearResponses();
1032
+ }
1033
+ graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
1034
+ graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
1035
+ if (view === 'Grading view') {
1036
+ studentViewPage.steps.submitResponse();
1037
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
1038
+ studentViewPage.steps.clickOnGoToGradingViewButton();
1039
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
1040
+ } else {
1041
+ graphingPage.steps.switchToGradingView();
1042
+ };
1043
+ if (view === 'Question preview' || view === 'Item preview') {
1044
+ graphingPage.steps.checkNonScoredScoringLabel();
1045
+ graphingPage.steps.switchToGradingView();
1046
+ };
1047
+ graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 1, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 2, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 1, xRange: 20, y: 4, yRange: 20 }]);
1048
+ graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1049
+ graphingPage.steps.verifyCorrectAnswerSectionNotExist();
1050
+ });
1051
+ });
1052
+ });
1053
+
843
1054
  if (!grepTags || !grepTags.includes('smoke')) {
844
1055
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
845
1056
  abortEarlySetup();
@@ -0,0 +1,35 @@
1
+ import { graphingPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ const correctAnswerPoints = [
5
+ { x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }
6
+ ];
7
+
8
+ describe('Create question page - Graphing', () => {
9
+ before(() => {
10
+ cy.loginAs('admin');
11
+ });
12
+
13
+ describe('Check Alternative Answer Button', () => {
14
+ abortEarlySetup();
15
+ before(() => {
16
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
17
+ cy.barsPreLoaderWait();
18
+ });
19
+
20
+ it('When correct answer is not set then alternative answer should be disabled', () => {
21
+ graphingPage.steps.checkAlternativeButtonDisabled();
22
+ });
23
+
24
+ it('When correct answer is set then alternative answer should be enabled', () => {
25
+ graphingPage.steps.allotPoints(10);
26
+ graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection(correctAnswerPoints);
27
+ graphingPage.steps.checkAlternativeButtonEnabled();
28
+ });
29
+
30
+ it('User should be able to add \'Alternative\' answer using the \'Add alternative\' button, when user has not set any answer in the \'Alternative\' accordion and clicks on the \'Correct\' accordion then \'Correct\' accordion should be expanded', () => {
31
+ graphingPage.steps.clickOnAddAlternativeAnswerButton();
32
+ graphingPage.steps.expandCorrectAnswerAccordion();
33
+ });
34
+ });
35
+ });
@@ -0,0 +1,28 @@
1
+ import { graphingPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+
5
+ describe('Edit item - Graphing', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Edit Graphing question', { tags: 'smoke' }, () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
14
+ cy.barsPreLoaderWait();
15
+ graphingPage.steps.expandScoringTypeDropdown();
16
+ graphingPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
17
+ graphingPage.steps.allotPoints(2);
18
+ graphingPage.steps.saveAQuestionAndVerifySnackbar();
19
+ });
20
+
21
+ it('User should be able to change scoring type to non scored and scoring dropdown should exisit.', () => {
22
+ graphingPage.steps.editItem();
23
+ graphingPage.steps.expandScoringTypeDropdown();
24
+ graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
25
+ graphingPage.tests.verifyScoringTypeLabelAndDropdown('Auto scored');
26
+ });
27
+ });
28
+ });
@@ -0,0 +1,38 @@
1
+ import { graphingPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Graphing', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('User should be able to edit incomplete authored question', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
13
+ cy.barsPreLoaderWait();
14
+ graphingPage.steps.saveAQuestionWithIncompleteAuthoring();
15
+ graphingPage.steps.editItem();
16
+ });
17
+
18
+ it('Warning icons should be displayed on the required input fields', () => {
19
+ graphingPage.steps.verifyWarningIconOnRequiredFields([
20
+ 'Please set points.',
21
+ ]);
22
+ });
23
+
24
+ it('When required input fields are filled then warning icons should disappear', () => {
25
+ graphingPage.steps.allotPoints(10);
26
+ graphingPage.steps.verifyErrorMessageIsNotDisplayed();
27
+ graphingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
28
+ });
29
+
30
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
31
+ graphingPage.steps.saveAQuestionAndVerifySnackbar();
32
+ });
33
+
34
+ it('Warning icon should not be visible', () => {
35
+ graphingPage.steps.verifyWarningIconNotExist();
36
+ });
37
+ });
38
+ });
@@ -94,6 +94,7 @@ describe('Create item page - Graphing: Scoring section', () => {
94
94
  before(() => {
95
95
  graphingPage.steps.navigateToCreateQuestion('Graphing');
96
96
  cy.barsPreLoaderWait();
97
+ graphingPage.steps.addTextInQuestionInstructionsInputField('Graphing question');
97
98
  graphingPage.steps.expandScoringTypeDropdown();
98
99
  graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
99
100
  });