itemengine-cypress-automation 1.0.361-mcqRegressionFixes-c3229ca.0 → 1.0.363-bump-version-c5f4368.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 (238) hide show
  1. package/Dockerfile +1 -0
  2. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  3. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  4. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +39 -7
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  12. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  13. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  19. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
  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 +2 -4
  23. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  24. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
  25. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
  26. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
  27. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
  28. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  29. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -4
  30. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
  31. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
  32. package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
  33. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +62 -4
  34. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +119 -10
  35. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
  36. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
  37. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  38. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  39. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
  40. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  41. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  42. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  43. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  44. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  45. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +1 -3
  46. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -2
  47. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  48. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  49. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  50. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +1 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
  56. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  57. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  58. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  59. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  60. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  61. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  62. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  63. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  64. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  65. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  66. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  67. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  68. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  69. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  70. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  71. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  72. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  73. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  74. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  75. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  76. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  77. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  78. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  79. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  80. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  81. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  82. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  83. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  84. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  85. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  86. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  87. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  88. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  89. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  90. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  91. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  92. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  93. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  94. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  95. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  96. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  97. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  98. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  99. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  100. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  101. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  102. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  103. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  104. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  105. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  106. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
  107. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  108. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  109. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  110. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  111. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  112. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  113. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
  114. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +227 -0
  115. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
  116. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -0
  117. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
  118. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  119. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +6 -0
  120. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
  121. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
  122. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  123. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  124. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  125. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  126. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  127. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  128. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  129. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  130. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  131. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  132. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  133. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  134. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  135. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  136. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  137. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  138. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  139. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +35 -51
  140. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  141. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  142. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
  143. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  144. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  145. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  146. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  147. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
  148. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -0
  149. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
  150. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
  151. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  152. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
  153. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  154. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  155. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
  156. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  157. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
  158. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  159. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
  160. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
  161. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
  162. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
  163. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
  164. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  165. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  166. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  167. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  168. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
  169. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  170. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  171. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  172. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
  173. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
  174. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
  175. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  176. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +70 -0
  177. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +70 -0
  178. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  179. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  180. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  181. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +54 -1
  182. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +53 -2
  183. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
  184. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  185. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
  186. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +91 -9
  187. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +12 -12
  188. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  189. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +35 -2
  190. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  191. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  192. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
  193. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  194. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  195. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
  196. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  197. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  198. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  199. package/cypress/pages/audioPlayerPage.js +47 -22
  200. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  201. package/cypress/pages/chartsBarPage.js +20 -0
  202. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  203. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  204. package/cypress/pages/components/browseItemsPage.js +109 -2
  205. package/cypress/pages/components/ckEditorEquationEditorComponent.js +5 -4
  206. package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
  207. package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
  208. package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
  209. package/cypress/pages/components/commonComponents.js +4 -0
  210. package/cypress/pages/components/createQuestionBasePage.js +14 -1
  211. package/cypress/pages/components/defaultToolDropdown.js +1 -1
  212. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  213. package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
  214. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +28 -0
  215. package/cypress/pages/components/gridQuestionCommonComponent.js +55 -0
  216. package/cypress/pages/components/mcqAdditionalSettingsBase.js +1 -0
  217. package/cypress/pages/components/questionInstructionsComponent.js +9 -0
  218. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -1
  219. package/cypress/pages/contentBlocksPage.js +2 -0
  220. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  221. package/cypress/pages/desmosGeometryPage.js +184 -4
  222. package/cypress/pages/drawingResponsePage.js +2 -0
  223. package/cypress/pages/gradingViewPage.js +8 -0
  224. package/cypress/pages/graphingPage.js +27 -8
  225. package/cypress/pages/gridFillPage.js +15 -6
  226. package/cypress/pages/listOrderingPage.js +32 -1
  227. package/cypress/pages/matchingPage.js +26 -7
  228. package/cypress/pages/multipleSelectionPage.js +9 -1
  229. package/cypress/pages/numberLineLabelPage.js +31 -8
  230. package/cypress/pages/numberLinePage.js +19 -7
  231. package/cypress/pages/textEntryMathPage.js +24 -1
  232. package/cypress/pages/thinkSpherePage.js +637 -11
  233. package/cypress/pages/uploadResponsePage.js +17 -1
  234. package/cypress/pages/videoResponsePage.js +3 -0
  235. package/cypress/support/commands.js +9 -0
  236. package/cypress/support/helpers/createItem.js +22 -3
  237. package/cypress/support/helpers/utilities.js +14 -1
  238. package/package.json +2 -2
@@ -209,6 +209,226 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
209
209
  });
210
210
  });
211
211
 
212
+ views.forEach((view) => {
213
+ describe(`Multiple selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
214
+ abortEarlySetup();
215
+ before(() => {
216
+ switch (view) {
217
+ case 'Question preview':
218
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
219
+ cy.barsPreLoaderWait();
220
+ multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not');
221
+ multipleSelectionGridPage.steps.expandScoringTypeDropdown();
222
+ multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
223
+ multipleSelectionGridPage.steps.allotPoints(20);
224
+ multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
225
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
226
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
227
+ multipleSelectionGridPage.steps.switchToPreviewTab();
228
+ break;
229
+ case 'Item preview':
230
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
231
+ itemPreviewPage.steps.switchToPreviewTab();
232
+ break;
233
+ case 'Grading view':
234
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
235
+ break;
236
+ };
237
+ });
238
+
239
+ beforeEach(() => {
240
+ switch (view) {
241
+ case 'Question preview':
242
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
243
+ multipleSelectionGridPage.steps.resetQuestionPreview();
244
+ break;
245
+ case 'Item preview':
246
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
247
+ itemPreviewPage.steps.resetQuestionPreview();
248
+ break;
249
+ case 'Grading view':
250
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
251
+ break;
252
+ }
253
+ });
254
+
255
+ if (view === 'Question preview') {
256
+ after(() => {
257
+ multipleSelectionGridPage.steps.clickOnSaveQuestionButton();
258
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
259
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
260
+ });
261
+ };
262
+
263
+ it('Question instructions should be visible', () => {
264
+ multipleSelectionGridPage.steps.verifyQuestionInstructionsTextPreviewTab('Please select following animals facts are correct or not');
265
+ multipleSelectionGridPage.steps.verifyVisibityOfQuestionInstructionsText();
266
+ });
267
+
268
+ 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', () => {
269
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
270
+ if (view === 'Grading view') {
271
+ studentViewPage.steps.submitResponse();
272
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
273
+ studentViewPage.steps.clickOnGoToGradingViewButton();
274
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
275
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 1, column: 0 });
276
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 1, column: 1 });
277
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 2, column: 1 });
278
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 3, column: 1 });
279
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 4, column: 0 });
280
+ multipleSelectionGridPage.steps.verifyAnswerStatusBannerNotExist();
281
+ multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExist();
282
+ };
283
+ if (view === 'Question preview' || view === 'Item preview') {
284
+ multipleSelectionGridPage.steps.checkManuallyScoredScoringLabel();
285
+ };
286
+ });
287
+ });
288
+ });
289
+
290
+ views.forEach((view) => {
291
+ describe(`Multiple selection - Non scored: ${view}`, { tags: 'smoke' }, () => {
292
+ abortEarlySetup();
293
+ before(() => {
294
+ switch (view) {
295
+ case 'Question preview':
296
+ multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
297
+ cy.barsPreLoaderWait();
298
+ multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not');
299
+ multipleSelectionGridPage.steps.expandScoringTypeDropdown();
300
+ multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
301
+ multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
302
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
303
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
304
+ multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
305
+ multipleSelectionGridPage.steps.switchToPreviewTab();
306
+ multipleSelectionGridPage.steps.switchToPreviewTab();
307
+ break;
308
+ case 'Item preview':
309
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
310
+ itemPreviewPage.steps.switchToPreviewTab();
311
+ break;
312
+ case 'Grading view':
313
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
314
+ break;
315
+ };
316
+ });
317
+
318
+ beforeEach(() => {
319
+ switch (view) {
320
+ case 'Question preview':
321
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
322
+ multipleSelectionGridPage.steps.resetQuestionPreview();
323
+ break;
324
+ case 'Item preview':
325
+ multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
326
+ itemPreviewPage.steps.resetQuestionPreview();
327
+ break;
328
+ case 'Grading view':
329
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
330
+ break;
331
+ }
332
+ });
333
+
334
+ if (view === 'Question preview') {
335
+ after(() => {
336
+ multipleSelectionGridPage.steps.clickOnSaveQuestionButton();
337
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
338
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
339
+ });
340
+ };
341
+
342
+ 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', () => {
343
+ if (view === 'Grading view') {
344
+ studentViewPage.steps.submitResponse();
345
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
346
+ studentViewPage.steps.clickOnGoToGradingViewButton();
347
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
348
+ };
349
+ if (view === 'Question preview' || view === 'Item preview') {
350
+ multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
351
+ multipleSelectionGridPage.steps.switchToGradingView();
352
+ multipleSelectionGridPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
353
+ };
354
+ utilities.verifyInnerText(multipleSelectionGridPage.correctAnswersSectionLabel(), 'Correct answers');
355
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
356
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 1, column: 0 });
357
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 1, column: 1 });
358
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 2, column: 1 });
359
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 3, column: 1 });
360
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 0 });
361
+ });
362
+
363
+ 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', () => {
364
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 2, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 0 }]);
365
+ if (view === 'Grading view') {
366
+ studentViewPage.steps.submitResponse();
367
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
368
+ studentViewPage.steps.clickOnGoToGradingViewButton();
369
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
370
+ };
371
+ if (view === 'Question preview' || view === 'Item preview') {
372
+ multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
373
+ multipleSelectionGridPage.steps.switchToGradingView();
374
+ };
375
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
376
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
377
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
378
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
379
+ multipleSelectionGridPage.steps.verifyCorrectAnswerSectionExist();
380
+ });
381
+
382
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
383
+ if (view === 'Grading view') {
384
+ studentViewPage.steps.clearResponses();
385
+ };
386
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 0 }]);
387
+ if (view === 'Grading view') {
388
+ studentViewPage.steps.submitResponse();
389
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
390
+ studentViewPage.steps.clickOnGoToGradingViewButton();
391
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
392
+ };
393
+ if (view === 'Question preview' || view === 'Item preview') {
394
+ multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
395
+ multipleSelectionGridPage.steps.switchToGradingView();
396
+ };
397
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
398
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
399
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
400
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
401
+ multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
402
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
403
+ multipleSelectionGridPage.steps.verifyCorrectAnswerSectionExist();
404
+ });
405
+
406
+ 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', () => {
407
+ if (view === 'Grading view') {
408
+ studentViewPage.steps.clearResponses();
409
+ };
410
+ multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
411
+ if (view === 'Grading view') {
412
+ studentViewPage.steps.submitResponse();
413
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
414
+ studentViewPage.steps.clickOnGoToGradingViewButton();
415
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
416
+ };
417
+ if (view === 'Question preview' || view === 'Item preview') {
418
+ multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
419
+ multipleSelectionGridPage.steps.switchToGradingView();
420
+ };
421
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
422
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
423
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
424
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
425
+ multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
426
+ multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
427
+ multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExist();
428
+ });
429
+ });
430
+ });
431
+
212
432
  if (!grepTags || !grepTags.includes('smoke')) {
213
433
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
214
434
  abortEarlySetup();
@@ -237,6 +237,9 @@ describe('Create item page - Multiple selection grid: Scoring section', () => {
237
237
  before(() => {
238
238
  multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
239
239
  cy.barsPreLoaderWait();
240
+ multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
241
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
242
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
240
243
  });
241
244
 
242
245
  it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
@@ -263,6 +266,9 @@ describe('Create item page - Multiple selection grid: Scoring section', () => {
263
266
  before(() => {
264
267
  multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
265
268
  cy.barsPreLoaderWait();
269
+ multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
270
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
271
+ multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
266
272
  });
267
273
 
268
274
  it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
@@ -3,7 +3,7 @@ import { ckEditorToolbar, equationEditorFlyout } from "../../../pages/components
3
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
4
  import utilities from "../../../support/helpers/utilities";
5
5
  const css = Cypress.env('css');
6
- let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
6
+ let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view', 'Print preview'];
7
7
  const views = utilities.getViews(previewContentViews);
8
8
  var itemReferenceID = "";
9
9
 
@@ -69,6 +69,9 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
69
69
  case 'Correct answer view':
70
70
  cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
71
71
  break;
72
+ case 'Print preview':
73
+ cy.visit(`/item-engine/demo/render-item/print-view/${utilities.base64Encoding(itemReferenceID)}`);
74
+ break;
72
75
  default:
73
76
  throw new Error('Invalid view');
74
77
  }
@@ -86,26 +89,28 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
86
89
  }
87
90
  });
88
91
 
89
- it('Question instructions should be visible', () => {
90
- utilities.verifyInnerText(multipleSelectionGridPage.questionInstructionsText(), 'Please select where the following animals are found');
91
- utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsText(), 'visible');
92
- });
93
-
94
- it(`Multiple selection grid - The question grid as set by the user should be displayed in the ${view}`, () => {
95
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
96
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
97
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
98
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 1, column: 0 }, 'Heading');
99
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 1, column: 1 }, 'Checkbox with text');
100
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 2, column: 0 }, 'Subheading');
101
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 2, column: 2 }, 'No checkbox');
102
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
103
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No checkbox');
104
- multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No checkbox');
105
- cy.eyesCheckWindow(`Multiple selection grid - ${view} - Question grid displayed`);
106
- });
92
+ if (view !== 'Print preview') {
93
+ it('Question instructions should be visible', () => {
94
+ utilities.verifyInnerText(multipleSelectionGridPage.questionInstructionsText(), 'Please select where the following animals are found');
95
+ utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsText(), 'visible');
96
+ });
97
+
98
+ it(`Multiple selection grid - The question grid as set by the user should be displayed in the ${view}`, () => {
99
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
100
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
101
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
102
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 1, column: 0 }, 'Heading');
103
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 1, column: 1 }, 'Checkbox with text');
104
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 2, column: 0 }, 'Subheading');
105
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 2, column: 2 }, 'No checkbox');
106
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
107
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No checkbox');
108
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No checkbox');
109
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Question grid displayed`);
110
+ });
111
+ }
107
112
 
108
- if (view !== 'Grading view' && view !== 'Correct answer view') {
113
+ if (view !== 'Grading view' && view !== 'Correct answer view' && view !== 'Print preview') {
109
114
  it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
110
115
  multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
111
116
  multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
@@ -126,6 +131,30 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
126
131
  it('The content in the grid should not be editable', () => {
127
132
  multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
128
133
  });
134
+ } else if (view === 'Print preview') {
135
+ it('Question number should be visible', () => {
136
+ utilities.verifyInnerText(multipleSelectionGridPage.questionNumberPrintPreviewText(), '1');
137
+ utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionNumberPrintPreviewText(), 'visible');
138
+ });
139
+
140
+ it('Question instructions should be visible', () => {
141
+ utilities.verifyInnerText(multipleSelectionGridPage.questionInstructionsPrintPreviewText(), 'Please select where the following animals are found');
142
+ utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsPrintPreviewText(), 'visible');
143
+ });
144
+
145
+ it(`Multiple selection - grid ${view} - The question grid as set by the user should be displayed in the ${view}`, () => {
146
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 0, column: 0 }, 'None');
147
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 0, column: 1 }, 'Heading');
148
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 0, column: 2 }, 'Heading');
149
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 1, column: 0 }, 'Heading');
150
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 1, column: 1 }, 'Radio button with text');
151
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 2, column: 0 }, 'Subheading');
152
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 2, column: 2 }, 'No radio button');
153
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 3, column: 0 }, 'Text');
154
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 3, column: 1 }, 'No radio button');
155
+ multipleSelectionGridPage.steps.verifyTableCellPropertyPrintPreviewTab({ row: 4, column: 2 }, 'No radio button');
156
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Question grid displayed`);
157
+ });
129
158
  } else {
130
159
  it(`The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
131
160
  multipleSelectionGridPage.steps.verifyOptionWithCheckboxSelectedState({ row: 1, column: 0 });
@@ -139,56 +168,58 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
139
168
  });
140
169
  }
141
170
 
142
- it('CSS of preview contents', { tags: 'css' }, () => {
143
- multipleSelectionGridPage.gridPreviewTab()
144
- .within(() => {
145
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 1), {
146
- 'background-color': css.color.matrixHeadingCellBg,
147
- 'border-bottom-color': `${css.color.matrixCellBorder}`
148
- });
149
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 6), {
150
- 'background-color': css.color.matrixSubheadingCellBg,
151
- 'border-color': `${css.color.matrixCellBorder}`
152
- });
153
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 9), {
154
- 'background-color': css.color.defaultBackground,
155
- 'border-color': `${css.color.matrixCellBorder}`
156
- });
157
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 1).find('.question-text-wrapper'), {
158
- 'color': css.color.text,
159
- 'font-size': css.fontSize.heading,
160
- 'font-weight': css.fontWeight.bold
161
- });
162
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 6).find('.question-text-wrapper'), {
163
- 'color': css.color.text,
164
- 'font-size': css.fontSize.default,
165
- 'font-weight': css.fontWeight.bold
166
- });
167
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 9).find('.question-text-wrapper'), {
168
- 'color': css.color.text,
169
- 'font-size': css.fontSize.default,
170
- 'font-weight': css.fontWeight.regular
171
+ if (view !== 'Print preview') {
172
+ it('CSS of preview contents', { tags: 'css' }, () => {
173
+ multipleSelectionGridPage.gridPreviewTab()
174
+ .within(() => {
175
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 1), {
176
+ 'background-color': css.color.matrixHeadingCellBg,
177
+ 'border-bottom-color': `${css.color.matrixCellBorder}`
178
+ });
179
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 6), {
180
+ 'background-color': css.color.matrixSubheadingCellBg,
181
+ 'border-color': `${css.color.matrixCellBorder}`
182
+ });
183
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell().parent(), 9), {
184
+ 'background-color': css.color.defaultBackground,
185
+ 'border-color': `${css.color.matrixCellBorder}`
186
+ });
187
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 1).find('.question-text-wrapper'), {
188
+ 'color': css.color.text,
189
+ 'font-size': css.fontSize.heading,
190
+ 'font-weight': css.fontWeight.bold
191
+ });
192
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 6).find('.question-text-wrapper'), {
193
+ 'color': css.color.text,
194
+ 'font-size': css.fontSize.default,
195
+ 'font-weight': css.fontWeight.bold
196
+ });
197
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 9).find('.question-text-wrapper'), {
198
+ 'color': css.color.text,
199
+ 'font-size': css.fontSize.default,
200
+ 'font-weight': css.fontWeight.regular
201
+ });
171
202
  });
172
- });
173
- switch (view) {
174
- case 'Question preview':
175
- case 'Item preview':
176
- case 'Item view':
177
- case 'Item preview':
178
- case 'Student view':
179
- break;
180
- case 'Grading view':
181
- case 'Correct answer view':
182
- utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 10).find('.question-text-wrapper strong'), {
183
- 'color': css.color.successBtn,
184
- 'font-size': css.fontSize.default,
185
- 'font-weight': css.fontWeight.bold
186
- });
187
- break;
188
- default:
189
- throw new Error('Invalid view');
190
- }
191
- });
203
+ switch (view) {
204
+ case 'Question preview':
205
+ case 'Item preview':
206
+ case 'Item view':
207
+ case 'Item preview':
208
+ case 'Student view':
209
+ break;
210
+ case 'Grading view':
211
+ case 'Correct answer view':
212
+ utilities.verifyCSS(utilities.getNthElement(multipleSelectionGridPage.tableCell(), 10).find('.question-text-wrapper strong'), {
213
+ 'color': css.color.successBtn,
214
+ 'font-size': css.fontSize.default,
215
+ 'font-weight': css.fontWeight.bold
216
+ });
217
+ break;
218
+ default:
219
+ throw new Error('Invalid view');
220
+ }
221
+ });
222
+ }
192
223
 
193
224
  //Failing due to https://weldnorthed.atlassian.net/browse/IEI-4738
194
225
  it.skip('Accessibility of preview tab', { tags: 'a11y' }, () => {
@@ -38,6 +38,7 @@ describe('Multiple selection grid - Additional settings', () => {
38
38
  multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
39
39
  cy.barsPreLoaderWait();
40
40
  multipleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
41
+ multipleSelectionGridPage.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.');
41
42
  });
42
43
 
43
44
  multipleSelectionGridPage.tests.verifyRowAndColumnSpacingFunctionalityPreviewTab();
@@ -235,4 +235,83 @@ describe('Create Item page - Number line: All or nothing with alternative answer
235
235
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
236
236
  });
237
237
  });
238
+
239
+ 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', () => {
240
+ abortEarlySetup();
241
+ before(() => {
242
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
243
+ cy.barsPreLoaderWait();
244
+ numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
245
+ numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
246
+ numberLinePage.steps.allotPoints(12);
247
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
248
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
249
+ numberLinePage.steps.addAlternativeAnswerAccordion(1);
250
+ numberLinePage.steps.allotPoints(20);
251
+ numberLinePage.steps.switchToPreviewTab();
252
+ });
253
+
254
+ 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', () => {
255
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
256
+ numberLinePage.steps.verifyPreviewScore(12, 20);
257
+ numberLinePage.steps.switchToGradingView();
258
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
259
+ numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
260
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
261
+ });
262
+
263
+ it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
264
+ numberLinePage.steps.resetQuestionPreview();
265
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
266
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
267
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
268
+ numberLinePage.steps.verifyPreviewScore(20, 20);
269
+ numberLinePage.steps.switchToGradingView();
270
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
271
+ numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
272
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
273
+ })
274
+ });
275
+
276
+ 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', () => {
277
+ abortEarlySetup();
278
+ before(() => {
279
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
280
+ cy.barsPreLoaderWait();
281
+ numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
282
+ numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
283
+ numberLinePage.steps.allotPoints(12);
284
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
285
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
286
+ numberLinePage.steps.addAlternativeAnswerAccordion(1);
287
+ numberLinePage.steps.allotPoints(20);
288
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
289
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
290
+ numberLinePage.steps.expandCorrectAnswerAccordion();
291
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
292
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
293
+ numberLinePage.steps.switchToPreviewTab();
294
+ })
295
+
296
+ 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', () => {
297
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
298
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
299
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
300
+ numberLinePage.steps.verifyPreviewScore(12, 20);
301
+ numberLinePage.steps.switchToGradingView();
302
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
303
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
304
+ })
305
+
306
+ it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
307
+ numberLinePage.steps.resetQuestionPreview();
308
+ numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Point');
309
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
310
+ numberLinePage.steps.verifyPreviewScore(20, 20);
311
+ numberLinePage.steps.switchToGradingView();
312
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
313
+ numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
314
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
315
+ })
316
+ })
238
317
  });
@@ -238,4 +238,46 @@ describe('Create Item page - Number line: All or nothing with alternative answer
238
238
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
239
239
  });
240
240
  });
241
+
242
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
243
+ abortEarlySetup();
244
+ before(() => {
245
+ numberLinePage.steps.navigateToCreateQuestion('Number line');
246
+ cy.barsPreLoaderWait();
247
+ numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
248
+ numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
249
+ numberLinePage.steps.allotPoints(12);
250
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
251
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
252
+ numberLinePage.steps.addAlternativeAnswerAccordion(1);
253
+ numberLinePage.steps.allotPoints(12);
254
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
255
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
256
+ numberLinePage.steps.expandCorrectAnswerAccordion();
257
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
258
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
259
+ numberLinePage.steps.switchToPreviewTab();
260
+ });
261
+
262
+ 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', () => {
263
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
264
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
265
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
266
+ numberLinePage.steps.verifyPreviewScore(12, 12);
267
+ numberLinePage.steps.switchToGradingView();
268
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
269
+ numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
270
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
+ });
272
+
273
+ it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
274
+ numberLinePage.steps.resetQuestionPreview();
275
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
276
+ numberLinePage.steps.verifyPreviewScore(12, 12);
277
+ numberLinePage.steps.switchToGradingView();
278
+ numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
279
+ numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
280
+ numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
281
+ })
282
+ });
241
283
  });