itemengine-cypress-automation 1.0.343 → 1.0.344-graph-and-chart-r2-8153722.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
  4. package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
  5. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
  6. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  13. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  14. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  20. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  21. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
  22. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
  23. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  24. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  25. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  29. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  30. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  31. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  32. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  33. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  34. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  35. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
  36. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
  37. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  38. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  41. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
  42. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -0
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +1 -1
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  66. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
  67. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
  68. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  69. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  70. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  71. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  72. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  73. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  74. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  75. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  76. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  77. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  78. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  79. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  80. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  81. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  82. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  83. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  84. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  85. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  86. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  87. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  88. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  89. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  90. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  91. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  92. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  93. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  98. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  99. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  100. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  103. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  104. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  105. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  106. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
  107. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  108. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  109. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  110. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  111. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  112. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  113. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  114. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  115. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  116. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  117. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  118. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  119. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  120. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  121. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  122. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  123. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  124. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
  125. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
  126. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  127. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
  128. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
  129. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  130. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
  131. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
  132. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
  133. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  134. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
  135. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
  136. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  137. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  139. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  140. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  141. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  142. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  143. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  144. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  145. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  146. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  147. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  148. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  149. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  150. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  151. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  152. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
  153. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  154. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  155. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  156. package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
  157. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  158. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  159. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  160. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  161. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  162. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +84 -0
  163. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +84 -0
  164. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  165. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
  166. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +2 -2
  167. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  168. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -3
  169. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +62 -0
  170. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +62 -0
  171. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  172. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -4
  173. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
  174. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  175. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  176. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  177. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  178. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  179. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
  180. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  181. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +8 -6
  182. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  183. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  184. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  185. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
  186. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
  187. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
  188. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
  189. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  190. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
  191. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  192. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
  193. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  194. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  195. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  196. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  197. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  198. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  199. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  200. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  201. package/cypress/e2e/Sessions/scores.js +9 -5
  202. package/cypress/e2e/applitools.config.js +3 -3
  203. package/cypress/fixtures/theme/ilc.json +14 -1
  204. package/cypress/fixtures/uploads/sample.webm +0 -0
  205. package/cypress/fixtures/uploads/sample.wmv +0 -0
  206. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  207. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  208. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  209. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  210. package/cypress/pages/audioPlayerPage.js +22 -22
  211. package/cypress/pages/chartsBarPage.js +20 -0
  212. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  213. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  214. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  215. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
  216. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  217. package/cypress/pages/components/browseItemsPage.js +998 -7
  218. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  219. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  220. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  221. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  222. package/cypress/pages/components/commonComponents.js +8 -1
  223. package/cypress/pages/components/createQuestionBasePage.js +8 -1
  224. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  225. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  226. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  227. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
  228. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -35
  229. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  230. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  231. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  232. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  233. package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -4
  234. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  235. package/cypress/pages/desmosGeometryPage.js +184 -4
  236. package/cypress/pages/dialogBoxBase.js +2 -1
  237. package/cypress/pages/drawingResponsePage.js +16 -15
  238. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  239. package/cypress/pages/gradingViewPage.js +8 -0
  240. package/cypress/pages/graphingPage.js +27 -8
  241. package/cypress/pages/gridFillPage.js +15 -6
  242. package/cypress/pages/index.js +2 -1
  243. package/cypress/pages/listOrderingPage.js +32 -1
  244. package/cypress/pages/matchingPage.js +26 -7
  245. package/cypress/pages/multipleSelectionPage.js +10 -39
  246. package/cypress/pages/numberLineLabelPage.js +31 -8
  247. package/cypress/pages/numberLinePage.js +19 -7
  248. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  249. package/cypress/pages/singleSelectionPage.js +0 -37
  250. package/cypress/pages/textEntryMathPage.js +21 -0
  251. package/cypress/pages/thinkSpherePage.js +1874 -0
  252. package/cypress/pages/uploadResponsePage.js +2 -1
  253. package/cypress/pages/videoResponsePage.js +3 -0
  254. package/cypress/support/commands.js +7 -4
  255. package/cypress/support/e2e.js +1 -0
  256. package/cypress/support/helpers/createItem.js +1181 -1
  257. package/cypress/support/helpers/utilities.js +75 -1
  258. package/package.json +4 -4
  259. package/scripts/dataApi.mjs +3 -0
  260. package/scripts/sorry-cypress.mjs +13 -0
@@ -222,6 +222,216 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
222
222
  });
223
223
  });
224
224
 
225
+ views.forEach((view) => {
226
+ describe(`Fill in the Gaps with drag and drop - Manually scored: ${view}`, { tags: 'smoke' }, () => {
227
+ abortEarlySetup();
228
+ before(() => {
229
+ switch (view) {
230
+ case 'Question preview':
231
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
232
+ cy.barsPreLoaderWait();
233
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
234
+ fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
235
+ fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
236
+ fillInTheGapsDragAndDropPage.steps.addResponseArea();
237
+ fillInTheGapsDragAndDropPage.steps.allotPoints(20);
238
+ fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
239
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
240
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
241
+ break;
242
+ case 'Item preview':
243
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
244
+ itemPreviewPage.steps.switchToPreviewTab();
245
+ break;
246
+ case 'Grading view':
247
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
248
+ break;
249
+ };
250
+ });
251
+
252
+ beforeEach(() => {
253
+ switch (view) {
254
+ case 'Question preview':
255
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
257
+ break;
258
+ case 'Item preview':
259
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
260
+ itemPreviewPage.steps.resetQuestionPreview();
261
+ break;
262
+ case 'Grading view':
263
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
264
+ break;
265
+ }
266
+ });
267
+
268
+ if (view === 'Question preview') {
269
+ after(() => {
270
+ fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
271
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
272
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
273
+ });
274
+ };
275
+
276
+ it('Question instructions should be visible', () => {
277
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone');
278
+ fillInTheGapsDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
279
+ });
280
+
281
+ 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', () => {
282
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
283
+ if (view === 'Grading view') {
284
+ studentViewPage.steps.submitResponse();
285
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
286
+ studentViewPage.steps.clickOnGoToGradingViewButton();
287
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
288
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
289
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
290
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
291
+ fillInTheGapsDragAndDropPage.steps.verifyAnswerStatusBannerNotExist();
292
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
293
+ };
294
+ if (view === 'Question preview' || view === 'Item preview') {
295
+ fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
296
+ };
297
+ });
298
+ });
299
+ });
300
+
301
+ views.forEach((view) => {
302
+ describe(`Fill in the Gaps with Drag and drop - Non scored: ${view}`, { tags: 'smoke' }, () => {
303
+ abortEarlySetup();
304
+ before(() => {
305
+ switch (view) {
306
+ case 'Question preview':
307
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
308
+ cy.barsPreLoaderWait();
309
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
310
+ fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
311
+ fillInTheGapsDragAndDropPage.steps.addResponseArea();
312
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
313
+ fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
314
+ fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
315
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
316
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
317
+ break;
318
+ case 'Item preview':
319
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
320
+ itemPreviewPage.steps.switchToPreviewTab();
321
+ break;
322
+ case 'Grading view':
323
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
324
+ break;
325
+ };
326
+ });
327
+
328
+ beforeEach(() => {
329
+ switch (view) {
330
+ case 'Question preview':
331
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
332
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
333
+ break;
334
+ case 'Item preview':
335
+ fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
336
+ itemPreviewPage.steps.resetQuestionPreview();
337
+ break;
338
+ case 'Grading view':
339
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
340
+ break;
341
+ }
342
+ });
343
+
344
+ if (view === 'Question preview') {
345
+ after(() => {
346
+ fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
347
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
348
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
349
+ });
350
+ };
351
+
352
+ 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', () => {
353
+ if (view === 'Grading view') {
354
+ studentViewPage.steps.submitResponse();
355
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
356
+ studentViewPage.steps.clickOnGoToGradingViewButton();
357
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
358
+ };
359
+ if (view === 'Question preview' || view === 'Item preview') {
360
+ fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
361
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
362
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
363
+ };
364
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
365
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
366
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
367
+ });
368
+
369
+ 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 answers should be displayed', () => {
370
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
371
+ if (view === 'Grading view') {
372
+ studentViewPage.steps.submitResponse();
373
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
374
+ studentViewPage.steps.clickOnGoToGradingViewButton();
375
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
376
+ };
377
+ if (view === 'Question preview' || view === 'Item preview') {
378
+ fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
379
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
380
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
381
+ };
382
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
383
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
384
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
385
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
386
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
387
+ });
388
+
389
+ 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', () => {
390
+ if (view === 'Grading view') {
391
+ studentViewPage.steps.clearResponses();
392
+ };
393
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 2 });
394
+ if (view === 'Grading view') {
395
+ studentViewPage.steps.submitResponse();
396
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
397
+ studentViewPage.steps.clickOnGoToGradingViewButton();
398
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
399
+ };
400
+ if (view === 'Question preview' || view === 'Item preview') {
401
+ fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
402
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
403
+ };
404
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
405
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
406
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
407
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
408
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
409
+ });
410
+
411
+ it('When the 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', () => {
412
+ if (view === 'Grading view') {
413
+ studentViewPage.steps.clearResponses();
414
+ };
415
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
416
+ if (view === 'Grading view') {
417
+ studentViewPage.steps.submitResponse();
418
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
419
+ studentViewPage.steps.clickOnGoToGradingViewButton();
420
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
421
+ };
422
+ if (view === 'Question preview' || view === 'Item preview') {
423
+ fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
424
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
425
+ };
426
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
427
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
428
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
429
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
430
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
431
+ });
432
+ });
433
+ });
434
+
225
435
  if (!grepTags || !grepTags.includes('smoke')) {
226
436
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
227
437
  abortEarlySetup();
@@ -81,7 +81,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
81
81
  });
82
82
  });
83
83
 
84
- describe('Fill color - Preview tab', () => {
84
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
85
+ describe.skip('Fill color - Preview tab', () => {
85
86
  const modifiedColor = 'rgb(121, 60, 60)'
86
87
  abortEarlySetup();
87
88
  before(() => {
@@ -160,7 +161,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
160
161
  });
161
162
  });
162
163
 
163
- describe('Border color - Preview tab', () => {
164
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
165
+ describe.skip('Border color - Preview tab', () => {
164
166
  const modifiedColor = 'rgb(121, 60, 60)'
165
167
  abortEarlySetup();
166
168
  before(() => {
@@ -310,7 +312,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
310
312
  })
311
313
  });
312
314
 
313
- describe('Border style - Preview tab', () => {
315
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
316
+ describe.skip('Border style - Preview tab', () => {
314
317
  abortEarlySetup();
315
318
  before(() => {
316
319
  fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
@@ -43,6 +43,7 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
43
43
  before(() => {
44
44
  fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
45
45
  cy.barsPreLoaderWait();
46
+ utilities.verifyElementCount(fillInTheGapsDragAndDropPage.optionsInputField(), 2);
46
47
  });
47
48
 
48
49
  describe('Validation error messages', () => {
@@ -174,6 +174,207 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
174
174
  });
175
175
  });
176
176
 
177
+ views.forEach((view) => {
178
+ describe(`${view}: Manually scored`, { tags: 'smoke' }, () => {
179
+ abortEarlySetup();
180
+ before(() => {
181
+ switch (view) {
182
+ case 'Question preview':
183
+ fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
184
+ cy.barsPreLoaderWait();
185
+ fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
186
+ fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
187
+ fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
188
+ fillInTheGapsDropdownPage.steps.allotPoints(20);
189
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
190
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
191
+ fillInTheGapsDropdownPage.steps.switchToPreviewTab();
192
+ break;
193
+ case 'Item preview':
194
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
195
+ itemPreviewPage.steps.switchToPreviewTab();
196
+ break;
197
+ case 'Grading view':
198
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
199
+ break;
200
+ };
201
+ });
202
+
203
+ beforeEach(() => {
204
+ switch (view) {
205
+ case 'Question preview':
206
+ fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
207
+ fillInTheGapsDropdownPage.steps.resetQuestionPreview();
208
+ break;
209
+ case 'Item preview':
210
+ fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
211
+ itemPreviewPage.steps.resetQuestionPreview();
212
+ break;
213
+ case 'Grading view':
214
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
215
+ break;
216
+ }
217
+ });
218
+
219
+ if (view === 'Question preview') {
220
+ after(() => {
221
+ fillInTheGapsDropdownPage.steps.clickOnSaveQuestionButton();
222
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
223
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
224
+ });
225
+ };
226
+
227
+ it('Question instructions should be visible', () => {
228
+ utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
229
+ utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
230
+ });
231
+
232
+ it('User should be able to attempt the question and icons, Your answer is correct/incorrect label should not be displayed', () => {
233
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
234
+ if (view === 'Grading view') {
235
+ studentViewPage.steps.submitResponse();
236
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
237
+ studentViewPage.steps.clickOnGoToGradingViewButton();
238
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
239
+ };
240
+ if (view === 'Question preview' || view === 'Item preview') {
241
+ fillInTheGapsDropdownPage.steps.checkManuallyScoredScoringLabel();
242
+ };
243
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
244
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
245
+ fillInTheGapsDropdownPage.steps.verifyAnswerStatusBannerNotExist();
246
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExist();
247
+ });
248
+ });
249
+ });
250
+
251
+ views.forEach((view) => {
252
+ describe(`${view}: Non scored`, { tags: 'smoke' }, () => {
253
+ abortEarlySetup();
254
+ before(() => {
255
+ switch (view) {
256
+ case 'Question preview':
257
+ fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
258
+ cy.barsPreLoaderWait();
259
+ fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
260
+ fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
261
+ fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
262
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
263
+ fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
264
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
265
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
266
+ fillInTheGapsDropdownPage.steps.switchToPreviewTab();
267
+ break;
268
+ case 'Item preview':
269
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
270
+ itemPreviewPage.steps.switchToPreviewTab();
271
+ break;
272
+ case 'Grading view':
273
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
274
+ break;
275
+ };
276
+ });
277
+
278
+ beforeEach(() => {
279
+ switch (view) {
280
+ case 'Question preview':
281
+ fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
282
+ fillInTheGapsDropdownPage.steps.resetQuestionPreview();
283
+ break;
284
+ case 'Item preview':
285
+ fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
286
+ itemPreviewPage.steps.resetQuestionPreview();
287
+ break;
288
+ case 'Grading view':
289
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
290
+ break;
291
+ }
292
+ });
293
+
294
+ if (view === 'Question preview') {
295
+ after(() => {
296
+ fillInTheGapsDropdownPage.steps.clickOnSaveQuestionButton();
297
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
298
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
299
+ });
300
+ };
301
+
302
+ it('When the user selects \'Grading\' view without attempting the question, dropdown 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', () => {
303
+ if (view === 'Grading view') {
304
+ studentViewPage.steps.submitResponse();
305
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
306
+ studentViewPage.steps.clickOnGoToGradingViewButton();
307
+ };
308
+ if (view === 'Question preview' || view === 'Item preview') {
309
+ fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
310
+ fillInTheGapsDropdownPage.steps.switchToGradingView();
311
+ fillInTheGapsDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
312
+ };
313
+ fillInTheGapsDropdownPage.steps.verifyDropdownNumerationPreviewTab();
314
+ utilities.verifyInnerText(fillInTheGapsDropdownPage.correctAnswersLabel(), 'Correct answers');
315
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
316
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
317
+ });
318
+
319
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
320
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
321
+ if (view === 'Grading view') {
322
+ studentViewPage.steps.submitResponse();
323
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
324
+ studentViewPage.steps.clickOnGoToGradingViewButton();
325
+ };
326
+ if (view === 'Question preview' || view === 'Item preview') {
327
+ fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
328
+ fillInTheGapsDropdownPage.steps.switchToGradingView();
329
+ };
330
+ fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
331
+ fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
332
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
333
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
334
+ });
335
+
336
+ 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 with numeration should be displayed', () => {
337
+ if (view === 'Grading view') {
338
+ studentViewPage.steps.clearResponses();
339
+ };
340
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
341
+ if (view === 'Grading view') {
342
+ studentViewPage.steps.submitResponse();
343
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
344
+ studentViewPage.steps.clickOnGoToGradingViewButton();
345
+ };
346
+ if (view === 'Question preview' || view === 'Item preview') {
347
+ fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
348
+ fillInTheGapsDropdownPage.steps.switchToGradingView();
349
+ };
350
+ fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
351
+ fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
352
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
353
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
354
+ });
355
+
356
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
357
+ if (view === 'Grading view') {
358
+ studentViewPage.steps.clearResponses();
359
+ };
360
+ fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
361
+ if (view === 'Grading view') {
362
+ studentViewPage.steps.submitResponse();
363
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
364
+ studentViewPage.steps.clickOnGoToGradingViewButton();
365
+ };
366
+ if (view === 'Question preview' || view === 'Item preview') {
367
+ fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
368
+ fillInTheGapsDropdownPage.steps.switchToGradingView();
369
+ };
370
+ fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
371
+ fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
372
+ fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
373
+ fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
374
+ });
375
+ });
376
+ });
377
+
177
378
  if (!grepTags || !grepTags.includes('smoke')) {
178
379
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
179
380
  abortEarlySetup();
@@ -36,7 +36,10 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
36
36
  });
37
37
 
38
38
  it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
39
- fillInTheGapsDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
39
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
40
+ //fillInTheGapsDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
41
+ //Need to remove this line after fixing the above issue
42
+ fillInTheGapsDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
40
43
  cy.log('Choosing an option from dropdown to collapse it')
41
44
  fillInTheGapsDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
42
45
  });
@@ -59,9 +59,9 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
59
59
 
60
60
  fillInTheGapsDropdownPage.tests.verifyAddOptionFunctionalityForDropdownOptions();
61
61
 
62
- it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should be thrown', () => {
62
+ it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should not be thrown', () => {
63
63
  fillInTheGapsDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField(0);
64
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
64
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
65
65
  });
66
66
 
67
67
  it('User should be able to enter text in options input field and \'Error: Option is required.\' error message should disappear', () => {
@@ -35,7 +35,6 @@ describe('Create Item page - Fill in the gaps with dropdown: Specify correct ans
35
35
  fillInTheGapsDropdownPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
36
36
 
37
37
  it('When user has added points and selected an option in dropdown in the \'Correct\' accordion, then the user should be able to add alternative answer for the question using \'Add alternative answer\' button', () => {
38
- dialogBoxBase.steps.closeWarningPopup();
39
38
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
40
39
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, optionsForDropdown[1]);
41
40
  fillInTheGapsDropdownPage.steps.allotPoints(10);
@@ -23,29 +23,28 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
23
23
  fillInTheGapsOverImageDragAndDropPage.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 with a label \'Correct answers\' should not be displayed', () => {
27
27
  fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
28
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
28
+ fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
29
29
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
30
30
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
31
31
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
32
32
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
33
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
33
+ utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
34
34
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
- fillInTheGapsOverImageDragAndDropPage.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, no points should be allocated, and correct answer section should not be displayed', () => {
39
38
  fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
40
39
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
41
40
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
42
41
  fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
43
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
44
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
45
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
46
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
47
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
48
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
42
+ fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
43
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
44
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
45
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
46
+ utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
47
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
49
48
  });
50
49
 
51
50
  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', () => {
@@ -135,27 +134,26 @@ describe('Create item page - Fill in the gaps over image with drag and drop: All
135
134
  fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
136
135
  });
137
136
 
138
- 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', () => {
137
+ 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', () => {
139
138
  fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
140
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
139
+ fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
141
140
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
142
141
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
143
142
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
144
143
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
145
- fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
144
+ utilities.verifyElementVisibilityStateWithOption(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'notExist');
146
145
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
147
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
148
146
  });
149
147
 
150
- 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', () => {
148
+ 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, no points should be allocated, and correct answer section should not be displayed', () => {
151
149
  fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
152
150
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
153
151
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
154
152
  fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
155
- fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
156
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
157
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
158
- fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
153
+ fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
154
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
155
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
156
+ fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
159
157
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
160
158
  });
161
159