itemengine-cypress-automation 1.0.342-regressionFixes18thMarch-b97f3ea.0 → 1.0.342

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 (259) 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 +72 -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 +86 -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/headerSection.js +36 -4
  76. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  77. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  78. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  79. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  80. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  81. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  82. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  83. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  84. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  85. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  86. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  87. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  88. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  89. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  90. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  91. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  92. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  93. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  98. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  99. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  100. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  103. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  104. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  105. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
  106. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  107. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  108. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  109. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  110. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  111. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  112. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  113. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  114. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  115. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  116. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  117. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  118. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  119. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  120. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  121. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  122. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  123. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
  124. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
  125. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  126. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
  127. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
  128. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  129. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
  130. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
  131. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
  132. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  133. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
  134. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
  135. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  136. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  137. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +73 -0
  139. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  140. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  141. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  142. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  143. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  144. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  145. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  146. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  147. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  148. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  149. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  150. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  151. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
  152. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  153. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  154. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  155. package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
  156. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  157. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  158. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  159. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  160. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  161. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +84 -0
  162. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +84 -0
  163. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  164. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +62 -0
  165. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +62 -0
  166. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  167. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -8
  168. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
  169. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +4 -0
  170. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  171. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +8 -0
  172. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  173. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  174. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  175. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  176. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
  177. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.smoke.js +1 -0
  178. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  179. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +10 -7
  180. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  181. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  182. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  183. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
  184. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
  185. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
  186. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
  187. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  188. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
  189. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  190. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
  191. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  192. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  193. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  194. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  195. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  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/e2e/Sessions/scores.js +9 -5
  200. package/cypress/e2e/applitools.config.js +3 -3
  201. package/cypress/fixtures/theme/ilc.json +14 -1
  202. package/cypress/fixtures/uploads/sample.webm +0 -0
  203. package/cypress/fixtures/uploads/sample.wmv +0 -0
  204. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  205. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  206. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  207. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  208. package/cypress/pages/audioPlayerPage.js +22 -22
  209. package/cypress/pages/chartsBarPage.js +20 -0
  210. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  211. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  212. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  213. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
  214. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  215. package/cypress/pages/components/browseItemsPage.js +998 -7
  216. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  217. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  218. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  219. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  220. package/cypress/pages/components/commonComponents.js +8 -1
  221. package/cypress/pages/components/createQuestionBasePage.js +8 -1
  222. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  223. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  224. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  225. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
  226. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -35
  227. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  228. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  229. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  230. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  231. package/cypress/pages/components/scoringSectionBaseEditTab.js +14 -12
  232. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  233. package/cypress/pages/desmosGeometryPage.js +184 -4
  234. package/cypress/pages/dialogBoxBase.js +2 -1
  235. package/cypress/pages/drawingResponsePage.js +16 -15
  236. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  237. package/cypress/pages/gradingViewPage.js +8 -0
  238. package/cypress/pages/graphingPage.js +27 -8
  239. package/cypress/pages/gridFillPage.js +15 -6
  240. package/cypress/pages/index.js +2 -1
  241. package/cypress/pages/listOrderingPage.js +32 -1
  242. package/cypress/pages/matchingPage.js +26 -7
  243. package/cypress/pages/multipleSelectionPage.js +10 -39
  244. package/cypress/pages/numberLineLabelPage.js +31 -8
  245. package/cypress/pages/numberLinePage.js +19 -7
  246. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  247. package/cypress/pages/singleSelectionPage.js +0 -37
  248. package/cypress/pages/textEntryMathPage.js +21 -0
  249. package/cypress/pages/thinkSpherePage.js +1874 -0
  250. package/cypress/pages/uploadResponsePage.js +2 -1
  251. package/cypress/pages/videoResponsePage.js +3 -0
  252. package/cypress/support/commands.js +7 -4
  253. package/cypress/support/e2e.js +1 -0
  254. package/cypress/support/helpers/createItem.js +1181 -1
  255. package/cypress/support/helpers/utilities.js +75 -1
  256. package/deploy/smoke/deploy.yaml +2 -2
  257. package/package.json +4 -4
  258. package/scripts/dataApi.mjs +3 -0
  259. package/scripts/sorry-cypress.mjs +13 -0
@@ -49,11 +49,11 @@ describe('Create item page - Fill in the gaps over image - text: Header section
49
49
  });
50
50
 
51
51
  describe('Validation error messages', () => {
52
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please insert a text container', 'Please set points']);
52
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please set points']);
53
53
 
54
54
  it('Validation error messages should be displayed below required input fields', () => {
55
55
  fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
56
- fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please insert a text container', 'Please set points']);
56
+ fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please set points']);
57
57
  });
58
58
 
59
59
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -23,28 +23,27 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
23
23
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
24
24
  });
25
25
 
26
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
26
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section should not be displayed', () => {
27
27
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
28
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 24);
28
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
29
29
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
30
30
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
31
31
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
32
32
  fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
33
- utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
33
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
34
34
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
- fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
36
35
  });
37
36
 
38
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
37
+ it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, full points should not be allocated, and correct answer section should not be displayed', () => {
39
38
  fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
40
39
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
41
40
  fillInTheGapsOverImageTextPage.steps.clearAnswerInputFieldPreviewTab(0);
42
41
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
43
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(24, 24);
44
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
45
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
46
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
47
- fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
42
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
43
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
44
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
45
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
46
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
48
47
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
49
48
  });
50
49
 
@@ -52,13 +51,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
52
51
  fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
53
52
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
54
53
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
55
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 24);
56
- //Failing due to https://redmine.zeuslearning.com/issues/588679
57
- // fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
58
- // fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
59
- // fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
60
- // fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
61
- fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
54
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
55
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
56
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
57
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
62
58
  });
63
59
 
64
60
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
@@ -146,14 +142,13 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
146
142
 
147
143
  it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
148
144
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
149
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 24);
145
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
150
146
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
151
147
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
152
148
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
153
149
  fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
154
- utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
150
+ utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'notExist');
155
151
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
156
- fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
157
152
  });
158
153
 
159
154
  it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
@@ -161,10 +156,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
161
156
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
162
157
  fillInTheGapsOverImageTextPage.steps.clearAnswerInputFieldPreviewTab(0);
163
158
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
164
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(24, 24);
165
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
166
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
167
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
159
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
160
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
161
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
162
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
168
163
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
169
164
  });
170
165
 
@@ -172,12 +167,10 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
172
167
  fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
173
168
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
174
169
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
175
- fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(16, 24);
176
- //Failing due to https://redmine.zeuslearning.com/issues/588679
177
- // fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
178
- // fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
179
- // fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
180
- fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
170
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
171
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
172
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
173
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
181
174
  });
182
175
 
183
176
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
@@ -180,6 +180,219 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
180
180
  });
181
181
  });
182
182
 
183
+ views.forEach((view) => {
184
+ describe(`Fill in the gaps over image with text - Manually scored: ${view}`, { tags: 'smoke' }, () => {
185
+ abortEarlySetup();
186
+ before(() => {
187
+ switch (view) {
188
+ case 'Question preview':
189
+ fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
190
+ fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
191
+ cy.barsPreLoaderWait();
192
+ fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
193
+ fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
194
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
195
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
196
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
197
+ fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
198
+ fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
199
+ fillInTheGapsOverImageTextPage.steps.allotPoints(20);
200
+ fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
201
+ break;
202
+ case 'Item preview':
203
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
204
+ itemPreviewPage.steps.switchToPreviewTab();
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
+ beforeEach(() => {
213
+ switch (view) {
214
+ case 'Question preview':
215
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
216
+ fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
217
+ break;
218
+ case 'Item preview':
219
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
220
+ itemPreviewPage.steps.resetQuestionPreview();
221
+ break;
222
+ case 'Grading view':
223
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
224
+ break;
225
+ }
226
+ });
227
+
228
+ if (view === 'Question preview') {
229
+ after(() => {
230
+ fillInTheGapsOverImageTextPage.steps.clickOnSaveQuestionButton();
231
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
232
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
233
+ });
234
+ };
235
+
236
+ it('Question instructions should be visible', () => {
237
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsTextPreviewTab('Fill in the gaps');
238
+ fillInTheGapsOverImageTextPage.steps.verifyVisibityOfQuestionInstructionsText();
239
+ });
240
+
241
+ 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', () => {
242
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
243
+ if (view === 'Grading view') {
244
+ studentViewPage.steps.submitResponse();
245
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
246
+ studentViewPage.steps.clickOnGoToGradingViewButton();
247
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
248
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
249
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
250
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
251
+ fillInTheGapsOverImageTextPage.steps.verifyAnswerStatusBannerNotExist();
252
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExist();
253
+ };
254
+ if (view === 'Question preview' || view === 'Item preview') {
255
+ fillInTheGapsOverImageTextPage.steps.checkManuallyScoredScoringLabel();
256
+ };
257
+ });
258
+ })
259
+ });
260
+
261
+ views.forEach((view) => {
262
+ describe(`Fill in the gaps with text - Non scored: ${view}`, { tags: 'smoke' }, () => {
263
+ abortEarlySetup();
264
+ before(() => {
265
+ switch (view) {
266
+ case 'Question preview':
267
+ fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image with text');
268
+ cy.barsPreLoaderWait();
269
+ fillInTheGapsOverImageTextPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
270
+ fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
271
+ fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
272
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
273
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
274
+ fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
275
+ fillInTheGapsOverImageTextPage.steps.expandScoringTypeDropdown();
276
+ fillInTheGapsOverImageTextPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
277
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
278
+ fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
279
+ break;
280
+ case 'Item preview':
281
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
282
+ itemPreviewPage.steps.switchToPreviewTab();
283
+ break;
284
+ case 'Grading view':
285
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
286
+ break;
287
+ };
288
+ });
289
+
290
+ beforeEach(() => {
291
+ switch (view) {
292
+ case 'Question preview':
293
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
294
+ fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
295
+ break;
296
+ case 'Item preview':
297
+ fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
298
+ itemPreviewPage.steps.resetQuestionPreview();
299
+ break;
300
+ case 'Grading view':
301
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
302
+ break;
303
+ }
304
+ });
305
+
306
+ if (view === 'Question preview') {
307
+ after(() => {
308
+ fillInTheGapsOverImageTextPage.steps.clickOnSaveQuestionButton();
309
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
310
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
311
+ });
312
+ };
313
+
314
+ 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', () => {
315
+ if (view === 'Grading view') {
316
+ studentViewPage.steps.submitResponse();
317
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
318
+ studentViewPage.steps.clickOnGoToGradingViewButton();
319
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
320
+ };
321
+ if (view === 'Question preview' || view === 'Item preview') {
322
+ fillInTheGapsOverImageTextPage.steps.checkNonScoredScoringLabel();
323
+ fillInTheGapsOverImageTextPage.steps.switchToGradingView();
324
+ fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
325
+ };
326
+ fillInTheGapsOverImageTextPage.steps.verifyResponseAreaNumeration();
327
+ utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
328
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
329
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
330
+ });
331
+
332
+ 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', () => {
333
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
334
+ if (view === 'Grading view') {
335
+ studentViewPage.steps.submitResponse();
336
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
337
+ studentViewPage.steps.clickOnGoToGradingViewButton();
338
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
339
+ };
340
+ if (view === 'Question preview' || view === 'Item preview') {
341
+ fillInTheGapsOverImageTextPage.steps.checkNonScoredScoringLabel();
342
+ fillInTheGapsOverImageTextPage.steps.switchToGradingView();
343
+ };
344
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
345
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
346
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
347
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
348
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
349
+ });
350
+
351
+ 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', () => {
352
+ if (view === 'Grading view') {
353
+ studentViewPage.steps.clearResponses();
354
+ };
355
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Sunflower' }]);
356
+ if (view === 'Grading view') {
357
+ studentViewPage.steps.submitResponse();
358
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
359
+ studentViewPage.steps.clickOnGoToGradingViewButton();
360
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
361
+ };
362
+ if (view === 'Question preview' || view === 'Item preview') {
363
+ fillInTheGapsOverImageTextPage.steps.checkNonScoredScoringLabel();
364
+ fillInTheGapsOverImageTextPage.steps.switchToGradingView();
365
+ };
366
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
367
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
368
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
369
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
370
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
371
+ });
372
+
373
+ 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', () => {
374
+ if (view === 'Grading view') {
375
+ studentViewPage.steps.clearResponses();
376
+ };
377
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
378
+ if (view === 'Grading view') {
379
+ studentViewPage.steps.submitResponse();
380
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
381
+ studentViewPage.steps.clickOnGoToGradingViewButton();
382
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
383
+ };
384
+ if (view === 'Question preview' || view === 'Item preview') {
385
+ fillInTheGapsOverImageTextPage.steps.checkNonScoredScoringLabel();
386
+ fillInTheGapsOverImageTextPage.steps.switchToGradingView();
387
+ };
388
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
389
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
390
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
391
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
392
+ });
393
+ });
394
+ });
395
+
183
396
  if (!grepTags || !grepTags.includes('smoke')) {
184
397
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
185
398
  abortEarlySetup();
@@ -177,6 +177,8 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
177
177
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
178
178
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(40);
179
179
  fillInTheGapsOverImageTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
180
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Lorem' }]);
181
+ fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 1, responseText: 'Ipsum' }]);
180
182
  });
181
183
 
182
184
  fillInTheGapsOverImageTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
@@ -1,5 +1,6 @@
1
1
  import { fillInTheGapsOverImageTextPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
3
4
  const css = Cypress.env('css');
4
5
 
5
6
  describe('Create Item page - Fill in the gaps over image - text: ', () => {
@@ -15,6 +16,7 @@ describe('Create Item page - Fill in the gaps over image - text: ', () => {
15
16
  fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
16
17
  fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
17
18
  fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
19
+ utilities.hoverAwayFromElement(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
18
20
  });
19
21
 
20
22
  fillInTheGapsOverImageTextPage.tests.verifyAnswerInputFieldEditTab();
@@ -38,7 +38,7 @@ describe('Create item page - Fill in the gaps over image with text: Supported fi
38
38
  });
39
39
  });
40
40
 
41
- it('When the user tries to uploads an image with unsupported file type, then an error message, "Error: The file type is not supported. Please upload a file with the following supported formats: JPG, PNG, GIF, SVG.", should be displayed', () => {
41
+ it('When the user tries to uploads an image with unsupported file type, then an error message should not be displayed', () => {
42
42
  fillInTheGapsOverImageTextPage.steps.uploadFileWithoutVerification('uploads/sample.heif');
43
43
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.errorMessage(), 'notExist');
44
44
  fillInTheGapsOverImageTextPage.steps.verifyCanvasImageNotExist();
@@ -19,42 +19,38 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
19
19
  fillInTheGapsTextPage.steps.switchToPreviewTab();
20
20
  });
21
21
 
22
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
22
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section should not be displayed', () => {
23
23
  fillInTheGapsTextPage.steps.switchToGradingView();
24
- fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
24
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
25
25
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
26
26
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
27
27
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
28
28
  fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
29
- utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
29
+ utilities.verifyElementVisibilityState(fillInTheGapsTextPage.correctAnswersLabel(), 'notExist');
30
30
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
31
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
32
31
  });
33
32
 
34
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
33
+ it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then no icons should be displayed beside the responses, full points should be allocated and correct answer section should not be displayed', () => {
35
34
  fillInTheGapsTextPage.steps.resetQuestionPreview();
36
35
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
37
36
  fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
38
37
  fillInTheGapsTextPage.steps.switchToGradingView();
39
- fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
40
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
41
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
42
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
43
- fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
44
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
38
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
39
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
40
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
41
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
42
+ utilities.verifyElementVisibilityState(fillInTheGapsTextPage.correctAnswersLabel(), 'notExist');
43
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
45
44
  });
46
45
 
47
46
  it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, points for the correct answers should be allocated and correct answer section should be displayed', () => {
48
47
  fillInTheGapsTextPage.steps.resetQuestionPreview();
49
48
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
50
49
  fillInTheGapsTextPage.steps.switchToGradingView();
51
- fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
52
- //Failing due to https://redmine.zeuslearning.com/issues/588679
53
- // fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
54
- // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
55
- // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
56
- // fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
57
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
50
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
51
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
52
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
53
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
58
54
  });
59
55
 
60
56
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
@@ -136,40 +132,39 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights f
136
132
  fillInTheGapsTextPage.steps.switchToPreviewTab();
137
133
  });
138
134
 
139
- it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {
135
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should not be displayed', () => {
140
136
  fillInTheGapsTextPage.steps.switchToGradingView();
141
- fillInTheGapsTextPage.steps.verifyPreviewScore(0, 24);
137
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
142
138
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
143
139
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
144
140
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
145
141
  fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
146
- utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
142
+ utilities.verifyElementVisibilityState(fillInTheGapsTextPage.correctAnswersLabel(), 'notExist');
147
143
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
148
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
149
144
  });
150
145
 
151
- it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
146
+ it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then no icons should be displayed beside the responses, full points should be allocated and correct answer section should not be displayed', () => {
152
147
  fillInTheGapsTextPage.steps.resetQuestionPreview();
153
148
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '1' }]);
154
149
  fillInTheGapsTextPage.steps.clearAnswerInputFieldPreviewTab(0);
155
150
  fillInTheGapsTextPage.steps.switchToGradingView();
156
- fillInTheGapsTextPage.steps.verifyPreviewScore(24, 24);
157
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
158
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
159
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
151
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
152
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(0);
153
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(1);
154
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
160
155
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
156
+ utilities.verifyElementVisibilityState(fillInTheGapsTextPage.correctAnswersLabel(), 'notExist');
157
+ fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
161
158
  });
162
159
 
163
160
  it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, points for the correct answers should be allocated and correct answer section should be displayed', () => {
164
161
  fillInTheGapsTextPage.steps.resetQuestionPreview();
165
162
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }]);
166
163
  fillInTheGapsTextPage.steps.switchToGradingView();
167
- fillInTheGapsTextPage.steps.verifyPreviewScore(16, 24);
168
- //Failing due to https://redmine.zeuslearning.com/issues/588679
164
+ fillInTheGapsTextPage.steps.checkManuallyScoredScoringLabel();
169
165
  // fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
170
166
  // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
171
167
  // fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
172
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
173
168
  });
174
169
 
175
170
  it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration 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 respective option numeration', () => {