itemengine-cypress-automation 1.0.355 → 1.0.356-capture-image-8b4830c.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 (250) hide show
  1. package/Dockerfile +1 -0
  2. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  3. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  4. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +49 -11
  5. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +4 -3
  6. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +4 -3
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  13. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  14. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  15. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  21. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
  22. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  23. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
  24. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -4
  25. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  26. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
  27. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
  28. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
  29. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
  30. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  31. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -4
  32. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
  33. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
  34. package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
  35. package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +62 -4
  36. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +119 -10
  37. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
  38. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
  39. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  40. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  41. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
  42. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  43. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  44. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  45. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  46. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  47. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +1 -3
  48. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
  49. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  50. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  51. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  52. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +1 -0
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
  58. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  59. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  60. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  61. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  62. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  63. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  64. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  65. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  66. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  67. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  68. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  69. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  70. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  71. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  72. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  73. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  74. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  75. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  76. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  77. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  78. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  79. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  80. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  81. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  82. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  83. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  84. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  85. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  86. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  87. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  88. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  89. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  90. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  91. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  92. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  93. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  94. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  95. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  96. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  97. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  98. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  99. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  100. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  101. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  102. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  103. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  104. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  105. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  106. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  107. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  108. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
  109. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  110. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  111. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  112. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  113. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  114. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  115. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
  116. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +227 -0
  117. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
  118. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -0
  119. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -67
  120. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
  121. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  122. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +6 -0
  123. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
  124. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
  125. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  126. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  127. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  128. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  129. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  130. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  131. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  132. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  133. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  134. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  135. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  136. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  137. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  138. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  139. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  140. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  141. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  142. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +35 -51
  143. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  144. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  145. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
  146. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  147. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  148. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  149. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  150. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
  151. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  152. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
  153. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
  154. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  155. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
  156. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  157. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  158. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
  159. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
  160. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
  161. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  162. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
  163. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
  164. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
  165. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
  166. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
  167. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
  168. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  169. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  170. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  171. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
  172. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
  173. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
  174. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
  175. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
  176. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
  177. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
  178. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  179. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  180. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  181. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  182. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  183. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -1
  184. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  185. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  186. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  187. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +1 -1
  188. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +58 -4
  189. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +208 -13
  190. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +259 -9
  191. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  192. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
  193. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +409 -4
  194. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  195. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  196. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +39 -6
  197. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  198. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  199. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
  200. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  201. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  202. package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
  203. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  204. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  205. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  206. package/cypress/e2e/applitools.config.js +3 -3
  207. package/cypress/fixtures/theme/ilc.json +5 -1
  208. package/cypress/fixtures/uploads/sample.webm +0 -0
  209. package/cypress/fixtures/uploads/sample.wmv +0 -0
  210. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  211. package/cypress/pages/audioPlayerPage.js +47 -22
  212. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  213. package/cypress/pages/chartsBarPage.js +20 -0
  214. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  215. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  216. package/cypress/pages/components/browseItemsPage.js +109 -2
  217. package/cypress/pages/components/ckEditorEquationEditorComponent.js +5 -4
  218. package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
  219. package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
  220. package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
  221. package/cypress/pages/components/commonComponents.js +4 -0
  222. package/cypress/pages/components/createQuestionBasePage.js +14 -1
  223. package/cypress/pages/components/defaultToolDropdown.js +1 -1
  224. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  225. package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
  226. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +28 -0
  227. package/cypress/pages/components/gridQuestionCommonComponent.js +56 -0
  228. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  229. package/cypress/pages/components/questionInstructionsComponent.js +9 -0
  230. package/cypress/pages/components/scoringSectionBaseEditTab.js +4 -0
  231. package/cypress/pages/contentBlocksPage.js +2 -0
  232. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  233. package/cypress/pages/desmosGeometryPage.js +184 -4
  234. package/cypress/pages/drawingResponsePage.js +2 -0
  235. package/cypress/pages/gradingViewPage.js +8 -0
  236. package/cypress/pages/graphingPage.js +27 -8
  237. package/cypress/pages/gridFillPage.js +15 -6
  238. package/cypress/pages/listOrderingPage.js +32 -1
  239. package/cypress/pages/matchingPage.js +26 -7
  240. package/cypress/pages/multipleSelectionPage.js +9 -1
  241. package/cypress/pages/numberLineLabelPage.js +31 -8
  242. package/cypress/pages/numberLinePage.js +19 -7
  243. package/cypress/pages/textEntryMathPage.js +24 -1
  244. package/cypress/pages/thinkSpherePage.js +925 -47
  245. package/cypress/pages/uploadResponsePage.js +17 -1
  246. package/cypress/pages/videoResponsePage.js +3 -0
  247. package/cypress/support/commands.js +9 -0
  248. package/cypress/support/helpers/createItem.js +668 -19
  249. package/cypress/support/helpers/utilities.js +35 -2
  250. package/package.json +3 -3
@@ -24,6 +24,7 @@ describe('Audio player: Edit tab', () => {
24
24
  multipleSelectionPage.steps.clickOnOKButton();
25
25
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
26
26
  multipleSelectionPage.steps.switchToPreviewTab();
27
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
27
28
  multipleSelectionPage.steps.startPlayback();
28
29
  multipleSelectionPage.steps.waitForPlaybackToBegin();
29
30
  });
@@ -36,6 +37,7 @@ describe('Audio player: Edit tab', () => {
36
37
  multipleSelectionPage.steps.clickOnOKButton();
37
38
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
38
39
  multipleSelectionPage.steps.switchToPreviewTab();
40
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
39
41
  multipleSelectionPage.steps.startPlayback();
40
42
  multipleSelectionPage.steps.waitForPlaybackToBegin();
41
43
  });
@@ -48,6 +50,7 @@ describe('Audio player: Edit tab', () => {
48
50
  multipleSelectionPage.steps.clickOnOKButton();
49
51
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
50
52
  multipleSelectionPage.steps.switchToPreviewTab();
53
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
51
54
  multipleSelectionPage.steps.startPlayback();
52
55
  multipleSelectionPage.steps.waitForPlaybackToBegin();
53
56
  });
@@ -69,6 +72,7 @@ describe('Audio player: Edit tab', () => {
69
72
  multipleSelectionPage.steps.clickOnOKButton();
70
73
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
71
74
  multipleSelectionPage.steps.switchToPreviewTab();
75
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
72
76
  multipleSelectionPage.steps.startPlayback();
73
77
  multipleSelectionPage.steps.waitForPlaybackToBegin();
74
78
  });
@@ -82,6 +86,7 @@ describe('Audio player: Edit tab', () => {
82
86
  multipleSelectionPage.steps.clickOnOKButton();
83
87
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
84
88
  multipleSelectionPage.steps.switchToPreviewTab();
89
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
85
90
  multipleSelectionPage.steps.startPlayback();
86
91
  multipleSelectionPage.steps.waitForPlaybackToBegin();
87
92
  });
@@ -95,6 +100,7 @@ describe('Audio player: Edit tab', () => {
95
100
  multipleSelectionPage.steps.clickOnOKButton();
96
101
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
97
102
  multipleSelectionPage.steps.switchToPreviewTab();
103
+ cy.wait(5000); //Adding a dynamic wait for audio to load in preview tab
98
104
  multipleSelectionPage.steps.startPlayback();
99
105
  multipleSelectionPage.steps.waitForPlaybackToBegin();
100
106
  });
@@ -32,7 +32,6 @@ describe('Audio player: Edit tab', () => {
32
32
  multipleSelectionPage.steps.switchToEditTab();
33
33
  multipleSelectionPage.steps.clickOnAudioPlayerBlock();
34
34
  multipleSelectionPage.steps.uploadTranscriptFile('sample.txt');
35
- utilities.verifyElementVisibilityState(multipleSelectionPage.transcriptFileUploadProgressBar(), 'visible');
36
35
  multipleSelectionPage.steps.clickOnOKButton();
37
36
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
38
37
  multipleSelectionPage.steps.switchToPreviewTab();
@@ -49,7 +48,7 @@ describe('Audio player: Edit tab', () => {
49
48
  multipleSelectionPage.steps.switchToEditTab();
50
49
  multipleSelectionPage.steps.clickOnAudioPlayerBlock();
51
50
  multipleSelectionPage.steps.clickOnTypeInTranscriptRadioButton();
52
- multipleSelectionPage.steps.enterTextInTranscriptInputField('In triangle ABC,m ∠ ABC = (4x-12) ° and m ∠ ACB = (2x + 26) °');
51
+ multipleSelectionPage.steps.enterTextInCKEditorTranscriptInputField('In triangle ABC,m ∠ ABC = (4x-12) ° and m ∠ ACB = (2x + 26) °');
53
52
  multipleSelectionPage.steps.clickOnOKButton();
54
53
  multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
55
54
  multipleSelectionPage.steps.switchToPreviewTab();
@@ -73,7 +72,7 @@ describe('Audio player: Edit tab', () => {
73
72
  multipleSelectionPage.steps.uploadFile('sample.mp3');
74
73
  utilities.verifyElementVisibilityState(multipleSelectionPage.fileUploadProgressBar(), 'hidden');
75
74
  multipleSelectionPage.steps.clickOnTypeInTranscriptRadioButton();
76
- multipleSelectionPage.steps.enterTextInTranscriptInputField('In triangle ABC,m ∠ ABC = (4x-12) ° and m ∠ ACB = (2x + 26) °');
75
+ multipleSelectionPage.steps.enterTextInCKEditorTranscriptInputField('In triangle ABC,m ∠ ABC = (4x-12) ° and m ∠ ACB = (2x + 26) °');
77
76
  multipleSelectionPage.steps.clickOnOKButton();
78
77
  });
79
78
 
@@ -44,8 +44,8 @@ describe('Equation Editor: Edit tab', () => {
44
44
  utilities.verifyElementVisibilityState(multipleSelectionPage.equationEditorLabel(), 'visible');
45
45
  utilities.verifyInnerText(multipleSelectionPage.okButton(), 'OK');
46
46
  utilities.verifyElementVisibilityState(multipleSelectionPage.okButton(), 'visible');
47
- utilities.verifyInnerText(multipleSelectionPage.cancelButton(), 'Cancel');
48
- utilities.verifyElementVisibilityState(multipleSelectionPage.cancelButton(), 'visible');
47
+ utilities.verifyInnerText(multipleSelectionPage.editorCancelButton(), 'Cancel');
48
+ utilities.verifyElementVisibilityState(multipleSelectionPage.editorCancelButton(), 'visible');
49
49
  });
50
50
 
51
51
  it('\'Select Mode\' label with \'Editor\', \'LaTex code\' and \'MathML\' radio button should be displayed. Also \'ARIA label\' label should be displayed with chevron down icon.', () => {
@@ -84,7 +84,7 @@ describe('Equation Editor: Edit tab', () => {
84
84
 
85
85
  it('When user writes any equation and clicks on cancel button it should not be visible on question instruction section', () => {
86
86
  multipleSelectionPage.steps.writeEquationUsingTools();
87
- multipleSelectionPage.steps.clickOnCancelButton();
87
+ multipleSelectionPage.steps.closeEquationEditor();
88
88
  utilities.verifyElementVisibilityState(multipleSelectionPage.equationWrapper(), 'notExist');
89
89
  });
90
90
 
@@ -93,7 +93,7 @@ describe('Equation Editor: Edit tab', () => {
93
93
  multipleSelectionPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
94
94
  multipleSelectionPage.steps.writeEquationUsingTools();
95
95
  multipleSelectionPage.steps.clickOnOkButton();
96
- utilities.verifyTextContent(multipleSelectionPage.equationInInputField(), 'x∨tan⁡(x+y)');
96
+ utilities.verifyTextContent(multipleSelectionPage.equationInInputField(), 'N∨tan⁡(N−P)');
97
97
  });
98
98
  });
99
99
 
@@ -28,8 +28,8 @@ describe('Insert Image: Edit tab', () => {
28
28
  });
29
29
 
30
30
  it('\'URL\', \'Alternative Text\', \'Width\', \'Height\', \'Border\', \'HSpace\', \'VSpace\' label with input field for each individual label and \'Preview\' label with image preview box should be visible ', () => {
31
- utilities.verifyInnerText(multipleSelectionPage.urlLabel(), 'URL');
32
- utilities.verifyElementVisibilityState(multipleSelectionPage.urlLabel(), 'visible');
31
+ utilities.verifyInnerText(multipleSelectionPage.imageUrlLabel(), 'URL');
32
+ utilities.verifyElementVisibilityState(multipleSelectionPage.imageUrlLabel(), 'visible');
33
33
  utilities.verifyElementVisibilityState(multipleSelectionPage.urlInputField(), 'visible');
34
34
  utilities.verifyInnerText(multipleSelectionPage.alternateTextLabel(), 'Alternative Text');
35
35
  utilities.verifyElementVisibilityState(multipleSelectionPage.alternateTextLabel(), 'visible');
@@ -82,7 +82,7 @@ describe('Insert Image: Edit tab', () => {
82
82
  'font-size': '12px',
83
83
  'font-weight': '400'
84
84
  });
85
- utilities.verifyCSS(multipleSelectionPage.urlLabel(), {
85
+ utilities.verifyCSS(multipleSelectionPage.imageUrlLabel(), {
86
86
  'color': 'rgb(0, 0, 0)',
87
87
  'font-size': '12px',
88
88
  'font-weight': '400'
@@ -152,7 +152,7 @@ describe('Insert Image: Edit tab', () => {
152
152
  });
153
153
 
154
154
  it('The changes and the pic should also be visible in the \'Preview Tab\'', () => {
155
- multipleSelectionPage.steps.focusInAndFocusOutOfQuestionInstructionsInputField();
155
+ multipleSelectionPage.steps.focusInAndOutOfQuestionInstructionsInputField();
156
156
  multipleSelectionPage.steps.switchToPreviewTab();
157
157
  multipleSelectionPage.steps.verifyCssOfImageInDifferentViews('300', '150', '5', '3', '10', 'Preview Tab');
158
158
  });
@@ -100,8 +100,8 @@ describe('Insert Table: Edit tab', () => {
100
100
 
101
101
  it('\'Alignment\' label with drop down, \'Caption\' label with input field and \'Summary\' label with input field should be displayed', () => {
102
102
  multipleSelectionPage.steps.scrollingDownToAlignmentLabel();
103
- utilities.verifyInnerText(multipleSelectionPage.alignmentLabel(), 'Alignment');
104
- utilities.verifyElementVisibilityState(multipleSelectionPage.alignmentLabel(), 'visible');
103
+ utilities.verifyInnerText(multipleSelectionPage.tableAlignmentLabel(), 'Alignment');
104
+ utilities.verifyElementVisibilityState(multipleSelectionPage.tableAlignmentLabel(), 'visible');
105
105
  utilities.verifyElementVisibilityState(multipleSelectionPage.alignmentDropDown(), 'visible');
106
106
  utilities.verifyInnerText(multipleSelectionPage.captionLabel(), 'Caption');
107
107
  utilities.verifyElementVisibilityState(multipleSelectionPage.captionLabel(), 'visible');
@@ -114,7 +114,7 @@ describe('Insert Table: Edit tab', () => {
114
114
  });
115
115
 
116
116
  it('CSS of \'Border size\' label and input field, \'Striped\' label and strip options and \'Add hover state\' label and dropdown', { tags: 'css' }, () => {
117
- utilities.verifyCSS(multipleSelectionPage.alignmentLabel(), {
117
+ utilities.verifyCSS(multipleSelectionPage.tableAlignmentLabel(), {
118
118
  'color': 'rgb(0, 0, 0)',
119
119
  'font-size': '12px',
120
120
  'font-weight': '400'
@@ -23,8 +23,8 @@ describe('Insert Table: Edit tab', () => {
23
23
  it('\'Table style\' label, \'Border\' label and \'Clear all\' button should be displayed.', () => {
24
24
  utilities.verifyInnerText(multipleSelectionPage.tableStyleLabel(), 'Table style');
25
25
  utilities.verifyElementVisibilityState(multipleSelectionPage.tableStyleLabel(), 'visible');
26
- utilities.verifyInnerText(multipleSelectionPage.borderLabel(), 'Border');
27
- utilities.verifyElementVisibilityState(multipleSelectionPage.borderLabel(), 'visible');
26
+ utilities.verifyInnerText(multipleSelectionPage.tableBorderLabel(), 'Border');
27
+ utilities.verifyElementVisibilityState(multipleSelectionPage.tableBorderLabel(), 'visible');
28
28
  utilities.verifyInnerText(multipleSelectionPage.clearAllTableStyle(), 'Clear all');
29
29
  utilities.verifyElementVisibilityState(multipleSelectionPage.clearAllTableStyle(), 'visible');
30
30
  });
@@ -35,7 +35,7 @@ describe('Insert Table: Edit tab', () => {
35
35
  'font-size': '12px',
36
36
  'font-weight': '700'
37
37
  });
38
- utilities.verifyCSS(multipleSelectionPage.borderLabel(), {
38
+ utilities.verifyCSS(multipleSelectionPage.tableBorderLabel(), {
39
39
  'color': 'rgb(0, 0, 0)',
40
40
  'font-size': '12px',
41
41
  'font-weight': '400'
@@ -82,16 +82,16 @@ describe('Insert Table: Edit tab', () => {
82
82
  it('\'Border size\' label and input field with default value 1, \'Striped\' label and 3 strip options with default value none and \'Add hover state\' label and dropdown with default value none should be displayed.', () => {
83
83
  multipleSelectionPage.steps.scrollingDownInInsertTablePopUp();
84
84
  utilities.verifyInnerText(multipleSelectionPage.borderSizeLabel(), 'Border size');
85
- utilities.verifyElementVisibilityState(multipleSelectionPage.borderSizeLabel(), 'visible');
86
- utilities.verifyElementVisibilityState(multipleSelectionPage.borderSizeInputField(), 'visible');
85
+ utilities.verifyElementVisibilityState(multipleSelectionPage.borderSizeLabel(), 'exist');
86
+ utilities.verifyElementVisibilityState(multipleSelectionPage.borderSizeInputField(), 'exist');
87
87
  utilities.verifyInnerText(multipleSelectionPage.stripedLabel(), 'Striped');
88
- utilities.verifyElementVisibilityState(multipleSelectionPage.stripedLabel(), 'visible');
89
- utilities.verifyElementVisibilityState(multipleSelectionPage.clearStripes(), 'visible');
90
- utilities.verifyElementVisibilityState(multipleSelectionPage.horizontalStripes(), 'visible');
91
- utilities.verifyElementVisibilityState(multipleSelectionPage.verticalStripes(), 'visible');
88
+ utilities.verifyElementVisibilityState(multipleSelectionPage.stripedLabel(), 'exist');
89
+ utilities.verifyElementVisibilityState(multipleSelectionPage.clearStripes(), 'exist');
90
+ utilities.verifyElementVisibilityState(multipleSelectionPage.horizontalStripes(), 'exist');
91
+ utilities.verifyElementVisibilityState(multipleSelectionPage.verticalStripes(), 'exist');
92
92
  utilities.verifyInnerText(multipleSelectionPage.addHoverStateLabel(), 'Add hover state');
93
- utilities.verifyElementVisibilityState(multipleSelectionPage.addHoverStateLabel(), 'visible');
94
- utilities.verifyElementVisibilityState(multipleSelectionPage.addHoverStateDropDown(), 'visible');
93
+ utilities.verifyElementVisibilityState(multipleSelectionPage.addHoverStateLabel(), 'exist');
94
+ utilities.verifyElementVisibilityState(multipleSelectionPage.addHoverStateDropDown(), 'exist');
95
95
  });
96
96
 
97
97
  it('CSS of \'Border size\' label and input field, \'Striped\' label and strip options and \'Add hover state\' label and dropdown', { tags: 'css' }, () => {
@@ -24,7 +24,7 @@ describe('Link Ck Editor: Edit tab', () => {
24
24
  utilities.verifyElementVisibilityState(multipleSelectionPage.uploadSectionTitle(), 'visible');
25
25
  utilities.verifyInnerText(multipleSelectionPage.uploadTitle(), 'Upload');
26
26
  utilities.verifyElementVisibilityState(multipleSelectionPage.uploadTitle(), 'visible');
27
- utilities.verifyElementVisibilityState(multipleSelectionPage.insertImageChooseFileButton(), 'visible');
27
+ utilities.verifyElementVisibilityState(multipleSelectionPage.insertImageChooseFileButton(), 'exist');
28
28
  utilities.verifyInnerText(multipleSelectionPage.sendItToServerButton(), 'Send it to the Server');
29
29
  utilities.verifyElementVisibilityState(multipleSelectionPage.sendItToServerButton(), 'visible');
30
30
  });
@@ -1,8 +1,11 @@
1
- import { contentBlocksPage } from "../../../pages";
1
+ import { contentBlocksPage, dialogBoxBase, itemPreviewPage } from "../../../pages";
2
+ import { browseItemsPage } from "../../../pages/components";
2
3
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const css = Cypress.env('css');
5
6
 
7
+ var itemReferenceID = "";
8
+
6
9
  describe('Content blocks - Edit tab', () => {
7
10
  before(() => {
8
11
  cy.loginAs('admin');
@@ -82,6 +85,62 @@ describe('Content blocks - Edit tab', () => {
82
85
  it('Accessibility of header section', { tags: 'a11y' }, () => {
83
86
  cy.checkAccessibility(contentBlocksPage.headerLabel().parents('content-blocks'));
84
87
  });
88
+
89
+ describe('Saving a question with incomplete authoring', () => {
90
+ abortEarlySetup();
91
+ before(() => {
92
+ contentBlocksPage.steps.navigateToCreateResource('content blocks');
93
+ });
94
+
95
+ it('User should be able to save the resource with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save button is clicked', () => {
96
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter text block']);
97
+ contentBlocksPage.steps.saveAQuestionWithIncompleteAuthoring();
98
+ });
99
+ contentBlocksPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
100
+ });
101
+
102
+ describe('User should be able to edit incomplete authored resource', () => {
103
+ abortEarlySetup();
104
+ before(() => {
105
+ contentBlocksPage.steps.navigateToCreateResource('content blocks');
106
+ contentBlocksPage.steps.saveAQuestionWithIncompleteAuthoring();
107
+ contentBlocksPage.steps.editItem();
108
+ });
109
+
110
+ it('Warning icons should be displayed on the required input fields', () => {
111
+ contentBlocksPage.steps.verifyWarningIconOnRequiredFields([
112
+ 'Please enter text block',
113
+ ]);
114
+ });
115
+
116
+ it('When required input fields are filled then warning icons should disappear', () => {
117
+ contentBlocksPage.steps.enterTextInTextBlockInputField(0, 'Text block text');
118
+ contentBlocksPage.steps.verifyErrorMessageIsNotDisplayed();
119
+ });
120
+
121
+ it('Clicking on Save button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
122
+ contentBlocksPage.steps.saveAQuestionAndVerifySnackbar();
123
+ });
124
+
125
+ it('Warning icon should not be visible', () => {
126
+ contentBlocksPage.steps.verifyWarningIconNotExist();
127
+ });
128
+ });
129
+
130
+ describe('Save as you go - Browse item page contents', () => {
131
+ abortEarlySetup();
132
+ before(() => {
133
+ contentBlocksPage.steps.navigateToCreateResource('content blocks');
134
+ contentBlocksPage.steps.saveAQuestionWithIncompleteAuthoring();
135
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
136
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
137
+ browseItemsPage.steps.navigateToBrowseItemsPage();
138
+ });
139
+
140
+ it('When user saves an incompletely authored resource then a warning icon should be visible in browse items page', () => {
141
+ browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
142
+ });
143
+ });
85
144
  });
86
145
 
87
146
  describe('Body section', () => {
@@ -113,10 +172,9 @@ describe('Content blocks - Edit tab', () => {
113
172
  contentBlocksPage.steps.verifyTextBlockInputFieldPlaceholderTextNotExist(contentBlocksPage.verifyTextBlockInputFieldPlaceholderText);
114
173
  });
115
174
 
116
- it('When user clears text and focuses out of text block input field, then error message \'Error: Text block is required.\' should be displayed', () => {
175
+ it('When user clears text and focuses out of text block input field, then error message should not be displayed', () => {
117
176
  contentBlocksPage.steps.clearAndFocusOutOfTextBlockInputField();
118
- utilities.verifyInnerText(contentBlocksPage.errorMessage(), 'Error: Text block is required.');
119
- utilities.verifyElementVisibilityState(contentBlocksPage.errorMessage(), 'visible');
177
+ utilities.verifyElementVisibilityState(contentBlocksPage.errorMessage(), 'notExist');
120
178
  });
121
179
 
122
180
  it('When user enters text again then error message should not be displayed', () => {
@@ -26,9 +26,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
26
26
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
27
27
  cy.barsPreLoaderWait();
28
28
  dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
29
- dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
30
- dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
31
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
32
29
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
33
30
  });
34
31
 
@@ -37,6 +34,9 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
37
34
  it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
38
35
  dragAndDropIntoCategoriesPage.steps.switchToEditTab();
39
36
  dragAndDropIntoCategoriesPage.steps.allotPoints(20);
37
+ dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
38
+ dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
39
+ dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
40
40
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Whale': 4 });
41
41
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
42
42
  dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
@@ -251,12 +251,15 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
251
251
  case 'Question preview':
252
252
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
253
253
  cy.barsPreLoaderWait();
254
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options in correct categories.');
254
255
  dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
255
256
  dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
256
257
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.scoringTypeDropdown(), 'Manually scored');
257
258
  cy.log('Adding wait to ensure Manually scored is selected');
258
259
  cy.wait(2000);
260
+ dragAndDropIntoCategoriesPage.steps.allotPoints(20);
259
261
  dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
262
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
260
263
  break;
261
264
  case 'Grading view':
262
265
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
@@ -282,6 +285,11 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
282
285
  });
283
286
  };
284
287
 
288
+ it('Question instructions should be visible', () => {
289
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options in correct categories.');
290
+ dragAndDropIntoCategoriesPage.steps.verifyVisibityOfQuestionInstructionsText();
291
+ });
292
+
285
293
  it('When the user selects \'Grading\' view, correct answer section should not be displayed', () => {
286
294
  if (view === 'Grading view') {
287
295
  studentViewPage.steps.submitResponse();
@@ -290,6 +298,23 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
290
298
  dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
291
299
  };
292
300
  });
301
+
302
+ 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', () => {
303
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Parrot': 0, 'Whale': 1 });
304
+ if (view === 'Grading view') {
305
+ studentViewPage.steps.submitResponse();
306
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
307
+ studentViewPage.steps.clickOnGoToGradingViewButton();
308
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
309
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
310
+ dragAndDropIntoCategoriesPage.steps.verifyAnswerStatusBannerNotExist();
311
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExist();
312
+ };
313
+ if (view === 'Question preview' || view === 'Item preview') {
314
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
315
+ dragAndDropIntoCategoriesPage.steps.checkManuallyScoredScoringLabel();
316
+ };
317
+ });
293
318
  });
294
319
  });
295
320
 
@@ -398,8 +423,8 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
398
423
  };
399
424
 
400
425
  views.forEach((view) => {
401
- //https://weldnorthed.atlassian.net/browse/IEI-5151
402
- describe(`${view}: Drag and drop into categories - Auto Scored with 0 points`, { tags: 'smoke' }, () => {
426
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5151
427
+ describe.skip(`${view}: Drag and drop into categories - Auto Scored with 0 points`, { tags: 'smoke' }, () => {
403
428
  abortEarlySetup();
404
429
  before(() => {
405
430
  switch (view) {
@@ -447,18 +472,20 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
447
472
  })
448
473
 
449
474
  views.forEach((view) => {
450
- //https://weldnorthed.atlassian.net/browse/IEI-5151
451
- describe(`${view}: Drag and drop into categories - Non Scored`, { tags: 'smoke' }, () => {
475
+ //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5151
476
+ describe.skip(`${view}: Drag and drop into categories - Non Scored`, { tags: 'smoke' }, () => {
452
477
  abortEarlySetup();
453
478
  before(() => {
454
479
  switch (view) {
455
480
  case 'Question preview':
456
481
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
457
482
  cy.barsPreLoaderWait();
458
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle']);
459
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
460
483
  dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
461
484
  dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
485
+ dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(7);
486
+ dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale', 'Platypus', 'Ostrich', 'Flying squirrel', 'Peacock', 'Kite']);
487
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 2, 'Platypus': 3, 'Ostrich': 4, 'Whale': 5, 'Flying squirrel': 6, 'Peacock': 7, 'Kite': 8 });
488
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
462
489
  break;
463
490
  case 'Grading view':
464
491
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
@@ -484,14 +511,96 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
484
511
  });
485
512
  };
486
513
 
514
+ 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', () => {
515
+ if (view === 'Grading view') {
516
+ studentViewPage.steps.submitResponse();
517
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
518
+ studentViewPage.steps.clickOnGoToGradingViewButton();
519
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
520
+ };
521
+ if (view === 'Question preview' || view === 'Item preview') {
522
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
523
+ dragAndDropIntoCategoriesPage.steps.switchToGradingView();
524
+ dragAndDropIntoCategoriesPage.steps.checkNonScoredScoringLabel();
525
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
526
+ };
527
+ utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
528
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
529
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle'], ['Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], ['Flying squirrel'], ['Peacock'], ['Kite']], ['1', '2', '3', '4', '5', '6', '7', '8', '9']);
530
+ });
531
+
487
532
  it('When the user attempts the question incorrectly for a non scored Question, then the incorrect Answer label and correct answer section should not be displayed', () => {
488
533
  if (view === 'Grading view') {
489
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 7 });
534
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 8, 'Eagle': 7, 'Parrot': 3, 'Platypus': 2, 'Ostrich': 8, 'Whale': 6, 'Ostrich': 0, 'Flying squirrel': 5, 'Peacock': 4, 'Kite': 1 });
490
535
  studentViewPage.steps.submitResponse();
491
536
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
492
537
  studentViewPage.steps.clickOnGoToGradingViewButton();
493
538
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
539
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
540
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
541
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
542
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(3);
543
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(4);
544
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
545
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
546
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(7);
547
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(8);
548
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle'], ['Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], ['Flying squirrel'], ['Peacock'], ['Kite']], ['1', '2', '3', '4', '5', '6', '7', '8', '9']);
549
+ };
550
+ });
551
+
552
+ it('hen 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 beside the correct answer responses, incorrect icon should be displayed beside incorrect answer responses, a status message with text "Your answer is incorrect" and correct answer section with all correct answers should be displayed', () => {
553
+ if (view === 'Grading view') {
554
+ studentViewPage.steps.clearResponses();
494
555
  };
556
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 2, 'Platypus': 4 });
557
+ if (view === 'Grading view') {
558
+ studentViewPage.steps.submitResponse();
559
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
560
+ studentViewPage.steps.clickOnGoToGradingViewButton();
561
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
562
+ };
563
+ if (view === 'Question preview' || view === 'Item preview') {
564
+ dragAndDropIntoCategoriesPage.steps.checkNonScoredScoringLabel();
565
+ dragAndDropIntoCategoriesPage.steps.switchToGradingView();
566
+ };
567
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
568
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
569
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
570
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(3);
571
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
572
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle'], ['Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], ['Flying squirrel'], ['Peacock'], ['Kite']], ['1', '2', '3', '4', '5', '6', '7', '8', '9']);
573
+ });
574
+
575
+ 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 responses, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
576
+ if (view === 'Question preview' || view === 'Item preview') {
577
+ dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
578
+ };
579
+ if (view === 'Grading view') {
580
+ studentViewPage.steps.clearResponses();
581
+ };
582
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 2, 'Platypus': 3, 'Ostrich': 4, 'Whale': 5, 'Flying squirrel': 6, 'Peacock': 7, 'Kite': 8 });
583
+ if (view === 'Grading view') {
584
+ studentViewPage.steps.submitResponse();
585
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
586
+ studentViewPage.steps.clickOnGoToGradingViewButton();
587
+ gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
588
+ };
589
+ if (view === 'Question preview' || view === 'Item preview') {
590
+ dragAndDropIntoCategoriesPage.steps.checkNonScoredScoringLabel();
591
+ dragAndDropIntoCategoriesPage.steps.switchToGradingView();
592
+ };
593
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
594
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
595
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
596
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
597
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
598
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
599
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
600
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(7);
601
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(8);
602
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
603
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
495
604
  });
496
605
  });
497
606
 
@@ -92,6 +92,7 @@ describe('Create item page - Drag and drop into categories: Scoring section', ()
92
92
  before(() => {
93
93
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
94
94
  cy.barsPreLoaderWait();
95
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop into categories');
95
96
  });
96
97
 
97
98
 
@@ -43,6 +43,8 @@ describe('Create item page - Drag and drop into categories: Header section and S
43
43
  before(() => {
44
44
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
45
45
  cy.barsPreLoaderWait();
46
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
47
+ utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
46
48
  });
47
49
 
48
50
  describe('Validation error messages', () => {
@@ -48,6 +48,9 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
48
48
  cy.log('Navigate to fill in the gaps - dropdown question type');
49
49
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
50
50
  cy.barsPreLoaderWait();
51
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
52
+ utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
53
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
51
54
  });
52
55
 
53
56
  it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
@@ -79,7 +82,7 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
79
82
  dragAndDropIntoCategoriesPage.tests.verifyContentsOfSpecifyCorrectAnswerSection('Non scored');
80
83
 
81
84
  dragAndDropIntoCategoriesPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
82
-
85
+
83
86
  it('User should able to save question with non scored scoring type', () => {
84
87
  dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
85
88
  });
@@ -30,6 +30,9 @@ describe('Create item page - Drag and drop into categories: Minimum scoring, Pen
30
30
  before(() => {
31
31
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
32
32
  cy.barsPreLoaderWait();
33
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
34
+ utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
35
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
33
36
  });
34
37
 
35
38
  //Per dropzone
@@ -36,7 +36,7 @@ describe('Create Item page - Drag and drop into categories: Pagination cases - E
36
36
 
37
37
  it('When user clicks on the right arrow navigation button, then the table should be scrolled by one column towards its right and the left and right arrow navigation button should now be enabled', () => {
38
38
  cy.log('Pre-step: Setting number of columns to 15');
39
- dragAndDropIntoCategoriesPage.steps.addInputToColumnInputStepper(15);
39
+ dragAndDropIntoCategoriesPage.steps.addInputToColumnInputStepper(16);
40
40
  dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButtonSpecifyCorrectAnswerSection();
41
41
  dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButtonSpecifyCorrectAnswerSection();
42
42
  dragAndDropIntoCategoriesPage.steps.verifyColumnIsVisibleInTableSpecifyCorrectAnswer(7);
@@ -87,6 +87,9 @@ describe('Drag and drop into categories - Style and layout customization accordi
87
87
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
88
88
  cy.barsPreLoaderWait();
89
89
  dragAndDropIntoCategoriesPage.steps.expandStyleAndLayoutCustomizationAccordion();
90
+ utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.questionInstructionsInputField(), 'visible');
91
+ utilities.verifyElementCount(dragAndDropIntoCategoriesPage.optionsInputField(), 2);
92
+ dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Test question instructions');
90
93
  });
91
94
 
92
95
  rowColumnOptions.forEach((option) => {
@@ -137,6 +137,7 @@ describe('Drawing response - Additional settings', () => {
137
137
  before(() => {
138
138
  drawingResponsePage.steps.navigateToCreateQuestion('Drawing Response');
139
139
  cy.barsPreLoaderWait();
140
+ drawingResponsePage.steps.switchToEditTab();
140
141
  drawingResponsePage.steps.expandAdditionalSettings();
141
142
  });
142
143