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
@@ -168,6 +168,198 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
168
168
  });
169
169
  });
170
170
 
171
+ views.forEach((view) => {
172
+ describe(`Single selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
173
+ abortEarlySetup();
174
+ before(() => {
175
+ switch (view) {
176
+ case 'Question preview':
177
+ singleSelectionPage.steps.navigateToCreateQuestion('single selection');
178
+ cy.barsPreLoaderWait();
179
+ singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
180
+ singleSelectionPage.steps.expandScoringTypeDropdown();
181
+ singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
182
+ singleSelectionPage.steps.allotPoints(20);
183
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
184
+ singleSelectionPage.steps.switchToPreviewTab();
185
+ break;
186
+ case 'Item preview':
187
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
188
+ itemPreviewPage.steps.switchToPreviewTab();
189
+ break;
190
+ case 'Grading view':
191
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
192
+ break;
193
+ };
194
+ });
195
+
196
+ beforeEach(() => {
197
+ switch (view) {
198
+ case 'Question preview':
199
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
200
+ singleSelectionPage.steps.resetQuestionPreview();
201
+ break;
202
+ case 'Item preview':
203
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
204
+ itemPreviewPage.steps.resetQuestionPreview();
205
+ break;
206
+ case 'Grading view':
207
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
208
+ break;
209
+ }
210
+ });
211
+
212
+ if (view === 'Question preview') {
213
+ after(() => {
214
+ singleSelectionPage.steps.clickOnSaveQuestionButton();
215
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
216
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
217
+ });
218
+ };
219
+
220
+ it('Question instructions should be visible', () => {
221
+ singleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
222
+ singleSelectionPage.steps.verifyVisibityOfQuestionInstructionsText();
223
+ });
224
+
225
+ it('User should be able to attempt the question in student view and correct/incorrect icons, Your answer is correct/incorrect label, correct answer section should not be displayed in grading view', () => {
226
+ singleSelectionPage.steps.checkOptionInPreviewTab(1);
227
+ if (view === 'Grading view') {
228
+ studentViewPage.steps.submitResponse();
229
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
230
+ studentViewPage.steps.clickOnGoToGradingViewButton();
231
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
232
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
233
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
234
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
235
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
236
+ singleSelectionPage.steps.verifyAnswerBannerNotExist();
237
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
238
+ };
239
+ if (view === 'Question preview' || view === 'Item preview') {
240
+ singleSelectionPage.steps.checkManuallyScoredScoringLabel();
241
+ };
242
+ });
243
+ });
244
+ });
245
+
246
+ views.forEach((view) => {
247
+ describe(`Single selection - Non scored:${view}`, { tags: 'smoke' }, () => {
248
+ abortEarlySetup();
249
+ before(() => {
250
+ switch (view) {
251
+ case 'Question preview':
252
+ singleSelectionPage.steps.navigateToCreateQuestion('single selection');
253
+ cy.barsPreLoaderWait();
254
+ singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
255
+ singleSelectionPage.steps.expandScoringTypeDropdown();
256
+ singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
257
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
258
+ singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
259
+ singleSelectionPage.steps.switchToPreviewTab();
260
+ break;
261
+ case 'Item preview':
262
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
263
+ itemPreviewPage.steps.switchToPreviewTab();
264
+ break;
265
+ case 'Grading view':
266
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
267
+ break;
268
+ };
269
+ });
270
+
271
+ beforeEach(() => {
272
+ switch (view) {
273
+ case 'Question preview':
274
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
275
+ singleSelectionPage.steps.resetQuestionPreview();
276
+ break;
277
+ case 'Item preview':
278
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
279
+ itemPreviewPage.steps.resetQuestionPreview();
280
+ break;
281
+ case 'Grading view':
282
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
283
+ break;
284
+ }
285
+ });
286
+
287
+ if (view === 'Question preview') {
288
+ after(() => {
289
+ singleSelectionPage.steps.clickOnSaveQuestionButton();
290
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
291
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
292
+ });
293
+ };
294
+
295
+ 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', () => {
296
+ if (view === 'Grading view') {
297
+ studentViewPage.steps.submitResponse();
298
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
299
+ studentViewPage.steps.clickOnGoToGradingViewButton();
300
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
301
+ };
302
+ if (view === 'Question preview' || view === 'Item preview') {
303
+ singleSelectionPage.steps.checkNonScoredScoringLabel();
304
+ singleSelectionPage.steps.switchToGradingView();
305
+ singleSelectionPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
306
+ };
307
+ //Remove the if-else condition and line 308 once https://weldnorthed.atlassian.net/browse/IEI-5704 is fixed.
308
+ if(view === 'Question preview'){
309
+ utilities.verifyInnerText(singleSelectionPage.correctAnswersLabel(), 'Correct answers');
310
+ }
311
+ else{
312
+ utilities.verifyInnerText(singleSelectionPage.correctAnswersLabel(), 'Correct answer');
313
+ }
314
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
315
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
316
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
317
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
318
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
319
+ });
320
+
321
+ it('When the user attempts the question incorrectly,and on switching to \'Grading\' view non scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text \'Your answer is incorrect\' and correct answer section with correct answer should be displayed', () => {
322
+ singleSelectionPage.steps.checkOptionInPreviewTab(0);
323
+ if (view === 'Grading view') {
324
+ studentViewPage.steps.submitResponse();
325
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
326
+ studentViewPage.steps.clickOnGoToGradingViewButton();
327
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
328
+ };
329
+ if (view === 'Question preview' || view === 'Item preview') {
330
+ singleSelectionPage.steps.checkNonScoredScoringLabel();
331
+ singleSelectionPage.steps.switchToGradingView();
332
+ };
333
+ singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(0);
334
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
335
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
336
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
337
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
338
+ singleSelectionPage.steps.verifyCorrectAnswerSectionExist();
339
+ });
340
+
341
+ it('When user attempts the question correctly, and on switching to \'Grading\' view non scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
342
+ if (view === 'Grading view') {
343
+ studentViewPage.steps.clearResponses();
344
+ };
345
+ singleSelectionPage.steps.checkOptionInPreviewTab(1);
346
+ if (view === 'Grading view') {
347
+ studentViewPage.steps.submitResponse();
348
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
349
+ studentViewPage.steps.clickOnGoToGradingViewButton();
350
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
351
+ };
352
+ if (view === 'Question preview' || view === 'Item preview') {
353
+ singleSelectionPage.steps.checkNonScoredScoringLabel();
354
+ singleSelectionPage.steps.switchToGradingView();
355
+ };
356
+ singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
357
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
358
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
359
+ });
360
+ });
361
+ });
362
+
171
363
  if (!grepTags || !grepTags.includes('smoke')) {
172
364
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
173
365
  abortEarlySetup();
@@ -1,5 +1,6 @@
1
1
  import { singleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
3
4
 
4
5
  describe('Create Item page - Single selection', () => {
5
6
  before(() => {
@@ -52,7 +53,7 @@ describe('Create Item page - Single selection', () => {
52
53
  });
53
54
 
54
55
  it('In Preview tab, when user switches to grading view then banner and correct Answer should be displayed', () => {
55
- singleSelectionPage.steps.checkOptionInPreviewTab(1);
56
+ singleSelectionPage.steps.checkOptionInPreviewTab(2);
56
57
  singleSelectionPage.steps.switchToGradingView();
57
58
  singleSelectionPage.steps.verifyAnswerBannerExist();
58
59
  singleSelectionPage.steps.verifyCorrectAnswerSectionExist();
@@ -64,6 +65,7 @@ describe('Create Item page - Single selection', () => {
64
65
  before(() => {
65
66
  singleSelectionPage.steps.navigateToCreateQuestion('single selection');
66
67
  cy.barsPreLoaderWait();
68
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
67
69
  });
68
70
 
69
71
  it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
@@ -42,6 +42,7 @@ describe('Create Item page - Single Selection: Header section and Saving questio
42
42
  before(() => {
43
43
  singleSelectionPage.steps.navigateToCreateQuestion('single selection');
44
44
  cy.barsPreLoaderWait();
45
+ utilities.verifyElementCount(singleSelectionPage.optionsInputField(), 4);
45
46
  });
46
47
 
47
48
  describe('Validation error messages', () => {
@@ -4,106 +4,112 @@ import utilities from "../../../support/helpers/utilities";
4
4
 
5
5
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
6
6
 
7
- describe('Question Preview: Manually Scored', () => {
8
- abortEarlySetup();
7
+ describe('Create Item page - Single selection', () => {
9
8
  before(() => {
10
- cy.log('Adding question instructions and options, select Manually Scored scoring type and add points for the question');
11
- singleSelectionPage.steps.navigateToCreateQuestion('single selection');
12
- singleSelectionPage.steps.addQuestionInstructions();
13
- singleSelectionPage.steps.addInputToOptionsInputField(options);
14
- singleSelectionPage.steps.expandScoringTypeDropdown();
15
- singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
16
- singleSelectionPage.steps.switchToPreviewTab();
9
+ cy.loginAs('admin');
17
10
  });
18
11
 
19
- it('In Preview tab, Question Instructions and options should be displayed along with radio button', () => {
20
- singleSelectionPage.steps.verifyQuestionInstructionsText();
21
- options.forEach((optionsText, count) => {
22
- utilities.verifyInnerText(utilities.getNthElement(singleSelectionPage.optionTextPreviewTab(), count), optionsText);
12
+ describe('Question Preview: Manually Scored', () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ cy.log('Adding question instructions and options, select Manually Scored scoring type and add points for the question');
16
+ singleSelectionPage.steps.navigateToCreateQuestion('single selection');
17
+ singleSelectionPage.steps.addQuestionInstructions();
18
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
19
+ singleSelectionPage.steps.expandScoringTypeDropdown();
20
+ singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
21
+ singleSelectionPage.steps.switchToPreviewTab();
23
22
  });
24
- });
25
23
 
26
- singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored')
24
+ it('In Preview tab, Question Instructions and options should be displayed along with radio button', () => {
25
+ singleSelectionPage.steps.verifyQuestionInstructionsText();
26
+ options.forEach((optionsText, count) => {
27
+ utilities.verifyInnerText(utilities.getNthElement(singleSelectionPage.optionTextPreviewTab(), count), optionsText);
28
+ });
29
+ });
27
30
 
28
- it('User should able to save question with manually scored scoring type', () => {
29
- singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
30
- });
31
- });
31
+ singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored')
32
32
 
33
- describe('Question Preview: Non Scored', () => {
34
- abortEarlySetup();
35
- before(() => {
36
- cy.log('Adding question instructions and options, select Non Scored scoring type and set correct answer');
37
- singleSelectionPage.steps.navigateToCreateQuestion('single selection');
38
- singleSelectionPage.steps.addQuestionInstructions();
39
- singleSelectionPage.steps.addInputToOptionsInputField(options);
40
- singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
41
- singleSelectionPage.steps.expandScoringTypeDropdown();
42
- singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
43
- //singleSelectionPage.steps.checkAllowStudentToCheckAnswerCheckbox();
44
- singleSelectionPage.steps.switchToPreviewTab();
33
+ it('User should able to save question with manually scored scoring type', () => {
34
+ singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
35
+ });
45
36
  });
46
37
 
47
- singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
38
+ describe('Question Preview: Non Scored', () => {
39
+ abortEarlySetup();
40
+ before(() => {
41
+ cy.log('Adding question instructions and options, select Non Scored scoring type and set correct answer');
42
+ singleSelectionPage.steps.navigateToCreateQuestion('single selection');
43
+ singleSelectionPage.steps.addQuestionInstructions();
44
+ singleSelectionPage.steps.addInputToOptionsInputField(options);
45
+ singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
46
+ singleSelectionPage.steps.expandScoringTypeDropdown();
47
+ singleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
48
+ //singleSelectionPage.steps.checkAllowStudentToCheckAnswerCheckbox();
49
+ singleSelectionPage.steps.switchToPreviewTab();
50
+ });
48
51
 
49
- it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides the unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct answer', () => {
50
- singleSelectionPage.steps.switchToGradingView();
51
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
52
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
53
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
54
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
55
- singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
56
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
57
- //correct answer section
58
- singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
59
- singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
60
- });
52
+ singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
61
53
 
62
- it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options, incorrect answer border and label should not be displayed below the question preview and correct anser section should be displayed with correct answer', () => {
63
- singleSelectionPage.steps.checkOptionInPreviewTab(2);
64
- singleSelectionPage.steps.switchToGradingView();
65
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
66
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
67
- singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
68
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
69
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
70
- //correct answer section
71
- singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
72
- singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
73
- singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
74
- /*cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
75
- singleSelectionPage.steps.checkAnswer();
76
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
77
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
78
- singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
79
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
80
- singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
81
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
82
- });
54
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides the unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct answer', () => {
55
+ singleSelectionPage.steps.switchToGradingView();
56
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
57
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
58
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
59
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
60
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
61
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
62
+ //correct answer section
63
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
64
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
65
+ });
83
66
 
84
- it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, no icons should be displayed besides unattempted responses, correct answer border, a label and correct answer section should not be displayed below the question preview', () => {
85
- singleSelectionPage.steps.resetQuestionPreview();
86
- singleSelectionPage.steps.checkOptionInPreviewTab(1);
87
- singleSelectionPage.steps.switchToGradingView();
88
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
89
- singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
90
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
91
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
92
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
93
- singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
94
- singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
95
- singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
96
- /*cy.log('When the user has attempted the question with correct responses and clicks on \'Check answer\' button, then correct icon should be displayed besides correct response, correct answer border and a label should not be displayed below the question preview')
97
- singleSelectionPage.steps.checkAnswer();
98
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
99
- singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
100
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
101
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
102
- singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
103
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
104
- });
67
+ it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options, incorrect answer border and label should not be displayed below the question preview and correct anser section should be displayed with correct answer', () => {
68
+ singleSelectionPage.steps.checkOptionInPreviewTab(2);
69
+ singleSelectionPage.steps.switchToGradingView();
70
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
71
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
72
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
73
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
74
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
75
+ //correct answer section
76
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
77
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
78
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
79
+ /*cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
80
+ singleSelectionPage.steps.checkAnswer();
81
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
82
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
83
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
84
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
85
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
86
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
87
+ });
105
88
 
106
- it('User should able to save question with non scored scoring type', () => {
107
- singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
89
+ it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, no icons should be displayed besides unattempted responses, correct answer border, a label and correct answer section should not be displayed below the question preview', () => {
90
+ singleSelectionPage.steps.resetQuestionPreview();
91
+ singleSelectionPage.steps.checkOptionInPreviewTab(1);
92
+ singleSelectionPage.steps.switchToGradingView();
93
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
94
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
95
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
96
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
97
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
98
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
99
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
100
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
101
+ /*cy.log('When the user has attempted the question with correct responses and clicks on \'Check answer\' button, then correct icon should be displayed besides correct response, correct answer border and a label should not be displayed below the question preview')
102
+ singleSelectionPage.steps.checkAnswer();
103
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
104
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
105
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
106
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
107
+ singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
108
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
109
+ });
110
+
111
+ it('User should able to save question with non scored scoring type', () => {
112
+ singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
113
+ });
108
114
  });
109
115
  });
@@ -58,12 +58,14 @@ describe('Create Item page - Single selection grid', () => {
58
58
  singleSelectionGridPage.steps.verifyCorrectAnswerSectionExist();
59
59
  })
60
60
  });
61
-
61
+
62
62
  describe('Question Preview: Non Scored - Save as you go', () => {
63
63
  abortEarlySetup();
64
64
  before(() => {
65
65
  singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
66
66
  cy.barsPreLoaderWait();
67
+ singleSelectionGridPage.steps.modifyTableCellProperty({ row: 1, column: 0 }, 'Heading');
68
+ singleSelectionGridPage.steps.modifyTableCellProperty({ row: 2, column: 0 }, 'Subheading');
67
69
  });
68
70
 
69
71
  it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {