itemengine-cypress-automation 1.0.340 → 1.0.341-IEI-5600-IEI-5708-cfbbc8e.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 (240) hide show
  1. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
  2. package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
  3. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
  4. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  11. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  16. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
  17. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
  18. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
  19. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  20. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  21. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +84 -0
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/checkAddAlternativeButton.js +33 -0
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -4
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +2 -4
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +33 -0
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +39 -6
  29. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  30. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  31. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  32. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  33. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  34. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  35. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  36. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
  37. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
  38. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  39. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
  41. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  42. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
  43. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  47. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +96 -0
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/checkAddAlternative.js +37 -0
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +4 -6
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabBasicSection.js +47 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +38 -9
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
  64. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
  65. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  66. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
  67. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
  68. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
  69. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
  71. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  72. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
  73. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
  74. package/cypress/e2e/ILC/Graphing/headerSection.js +1 -2
  75. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  76. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +11 -0
  77. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  78. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  79. package/cypress/e2e/ILC/GridFill/headerSection.js +2 -4
  80. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
  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/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
  86. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
  87. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
  88. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  89. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
  90. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
  91. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  92. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
  93. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
  94. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
  95. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  96. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
  97. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
  98. package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -2
  99. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  100. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +3 -4
  101. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  102. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +10 -0
  103. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
  104. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -2
  105. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  106. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  107. package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
  108. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  109. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  110. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  111. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  112. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  113. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
  114. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
  115. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
  116. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
  117. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  118. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  119. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
  120. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
  121. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
  122. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  123. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
  124. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
  125. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
  126. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
  127. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
  128. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
  129. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -8
  130. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  131. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  132. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  133. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
  134. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  135. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  136. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  137. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
  138. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
  139. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
  140. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
  141. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +4 -0
  142. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +8 -0
  143. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  144. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  145. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  146. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  147. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
  148. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.smoke.js +1 -0
  149. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +10 -7
  150. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  151. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingAlternatePointsMoreThanCorrectPoints.js +80 -0
  152. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingCorrectPointsMoreThanAlternatePoints.js +30 -0
  153. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +109 -0
  154. package/cypress/e2e/ILC/TextSelection/checkAddAlternativeButton.js +46 -0
  155. package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +57 -0
  156. package/cypress/e2e/ILC/TextSelection/headerSection.js +38 -6
  157. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +1 -2
  158. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  159. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
  160. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
  161. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
  162. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +276 -0
  163. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  164. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
  165. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  166. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +621 -0
  167. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  168. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  169. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  170. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  171. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  172. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  173. package/cypress/e2e/Sessions/scores.js +9 -5
  174. package/cypress/e2e/applitools.config.js +3 -3
  175. package/cypress/fixtures/constants.js +5 -1
  176. package/cypress/fixtures/theme/ilc.json +16 -1
  177. package/cypress/fixtures/uploads/sample.webm +0 -0
  178. package/cypress/fixtures/uploads/sample.wmv +0 -0
  179. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  180. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  181. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  182. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  183. package/cypress/pages/audioPlayerPage.js +22 -22
  184. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  185. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  186. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  187. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  188. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +17 -51
  189. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  190. package/cypress/pages/components/browseItemsPage.js +998 -7
  191. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  192. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  193. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  194. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  195. package/cypress/pages/components/commonComponents.js +8 -1
  196. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  197. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  198. package/cypress/pages/components/desmosToolComponent.js +1 -1
  199. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  200. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  201. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -70
  202. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -101
  203. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  204. package/cypress/pages/components/hideExpressionListComponent.js +53 -0
  205. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  206. package/cypress/pages/components/index.js +1 -0
  207. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  208. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  209. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  210. package/cypress/pages/components/scoringSectionBaseEditTab.js +12 -13
  211. package/cypress/pages/desmos3DGraphingPage.js +368 -0
  212. package/cypress/pages/desmosGeometryPage.js +308 -0
  213. package/cypress/pages/dialogBoxBase.js +2 -1
  214. package/cypress/pages/dragAndDropIntoCategoriesPage.js +26 -6
  215. package/cypress/pages/drawingResponsePage.js +16 -15
  216. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -68
  217. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
  218. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  219. package/cypress/pages/gradingViewPage.js +8 -0
  220. package/cypress/pages/graphingPage.js +5 -8
  221. package/cypress/pages/gridFillPage.js +7 -8
  222. package/cypress/pages/imageHighlightPage.js +0 -66
  223. package/cypress/pages/index.js +3 -1
  224. package/cypress/pages/multipleSelectionGridPage.js +1 -68
  225. package/cypress/pages/multipleSelectionPage.js +10 -106
  226. package/cypress/pages/numberLineLabelPage.js +5 -8
  227. package/cypress/pages/numberLinePage.js +4 -7
  228. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  229. package/cypress/pages/singleSelectionGridPage.js +1 -68
  230. package/cypress/pages/singleSelectionPage.js +0 -104
  231. package/cypress/pages/textSelectionPage.js +25 -6
  232. package/cypress/pages/thinkSpherePage.js +2185 -0
  233. package/cypress/support/commands.js +7 -4
  234. package/cypress/support/e2e.js +1 -0
  235. package/cypress/support/helpers/createItem.js +1200 -1
  236. package/cypress/support/helpers/utilities.js +88 -1
  237. package/deploy/smoke/deploy.yaml +2 -2
  238. package/package.json +4 -4
  239. package/scripts/dataApi.mjs +3 -0
  240. package/scripts/sorry-cypress.mjs +13 -0
@@ -9,7 +9,6 @@ import { ckEditorLinkComponent } from "../pages/components/ckEditorLinkComponent
9
9
  import { createItemPage } from "./createItemPage";
10
10
  import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
11
11
  import { audioPlayerPage } from "./audioPlayerPage";
12
- import { dialogBoxBase } from "./dialogBoxBase";
13
12
  const css = Cypress.env('css');
14
13
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
15
14
 
@@ -856,7 +855,7 @@ const steps = {
856
855
 
857
856
  verifyCorrectAnswerSectionExist: () => {
858
857
  multipleSelectionPage.correctAnswerSectionWrapper()
859
- .should('not.exist');
858
+ .should('exist');
860
859
  },
861
860
 
862
861
  verifyAnswerBannerNotExist: () => {
@@ -892,7 +891,15 @@ const steps = {
892
891
  optionsTextArray.forEach((option, optionIndex) => {
893
892
  utilities.verifyTextContent(utilities.getNthElement(multipleSelectionPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
894
893
  });
895
- }
894
+ },
895
+
896
+ /**
897
+ * Clicks on the save question button.
898
+ */
899
+ clickOnSaveQuestionButtonWithForceTrue: () => {
900
+ createQuestionBasePage.saveQuestionButton()
901
+ .click({force:true});
902
+ },
896
903
  }
897
904
 
898
905
  const tests = {
@@ -915,109 +922,6 @@ const tests = {
915
922
  ...ckEditorInsertTableComponent.tests,
916
923
  ...ckEditorInsertImageComponent.tests,
917
924
  ...ckEditorLinkComponent.tests,
918
-
919
- //TODO need to remove once Save as you go is available for all questions
920
- /**
921
- * @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
922
- * in the 'Specify correct answer' section for alternative answers in auto-scored questions.
923
- * @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
924
- * @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
925
- */
926
- verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
927
- it('\'+ Add alternative answer\' button should be present', () => {
928
- utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
929
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
930
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
931
- .verifyPseudoClassBeforeProperty('content', '""');
932
- });
933
-
934
- it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
935
- utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
936
- 'color': css.color.activeButtons,
937
- 'font-size': css.fontSize.default,
938
- 'font-weight': css.fontWeight.regular
939
- });
940
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
941
- .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
942
- });
943
-
944
- it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in disabled state', () => {
945
- utilities.verifyElementDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
946
- });
947
-
948
- it('CSS of warning popup', { tags: 'css' }, () => {
949
- utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
950
- 'color': css.color.flyoutTitle,
951
- 'font-size': css.fontSize.heading,
952
- 'font-weight': css.fontWeight.semibold
953
- });
954
- utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
955
- 'color': css.color.labels,
956
- 'font-size': css.fontSize.default,
957
- 'font-weight': css.fontWeight.regular
958
- });
959
- utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
960
- 'fill': css.color.closeIcon
961
- });
962
- });
963
-
964
- it('Accessibility of warning popup', { tags: 'a11y' }, () => {
965
- cy.checkAccessibility(dialogBoxBase.dialogBox());
966
- dialogBoxBase.steps.closeWarningPopup();
967
- });
968
- },
969
-
970
- //TODO need to remove once Save as you go is available for all questions
971
- verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
972
- it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
973
- autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
974
- .click();
975
- dialogBoxBase.steps.closeWarningPopup();
976
- //TODO: Need to add error message according to question types
977
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
978
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
979
- .eq(1)
980
- .should('have.attr', 'aria-expanded', 'true');
981
- });
982
- },
983
-
984
- verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
985
- it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
986
- utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
987
- utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
988
- autoScoredScoringPreviewTab.studentViewRadioButton()
989
- .should('be.checked');
990
- autoScoredScoringPreviewTab.gradingViewRadioButton()
991
- .should('not.be.checked');
992
- autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
993
- autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
994
- });
995
-
996
- it('CSS of Preview mode contents', { tags: 'css' }, () => {
997
- utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
998
- 'color': css.color.labelText,
999
- 'font-size': css.fontSize.normal,
1000
- 'font-weight': css.fontWeight.regular
1001
- });
1002
- utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
1003
- 'color': css.color.labelText,
1004
- 'font-size': css.fontSize.normal,
1005
- 'font-weight': css.fontWeight.regular
1006
- });
1007
- utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
1008
- 'color': css.color.codeBlockText,
1009
- 'font-size': css.fontSize.default,
1010
- 'font-weight': css.fontWeight.bold
1011
- });
1012
- utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
1013
- 'fill': css.color.activeButtons
1014
- });
1015
- utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
1016
- 'fill': css.color.uncheckedCheckbox
1017
- });
1018
- });
1019
- },
1020
-
1021
925
  /**
1022
926
  * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
1023
927
  * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
@@ -1024,26 +1024,23 @@ const tests = {
1024
1024
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
1025
1025
  });
1026
1026
 
1027
- it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
1027
+ it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
1028
1028
  numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 2');
1029
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
1030
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
1029
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
1031
1030
  if (accordionName == 'Correct') {
1032
1031
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1033
1032
  .within(() => {
1034
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1033
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1035
1034
  });
1036
1035
  } else {
1037
1036
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1038
1037
  .within(() => {
1039
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1038
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1040
1039
  });
1041
1040
  };
1042
1041
  });
1043
1042
 
1044
- autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
1045
-
1046
- it('When the user plots on the number line then the error message should disappear', () => {
1043
+ it('User should be able to attempt the labels on the number line', () => {
1047
1044
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
1048
1045
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
1049
1046
  });
@@ -1451,26 +1451,23 @@ const tests = {
1451
1451
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1]);
1452
1452
  });
1453
1453
 
1454
- it(`When the user resets the number line in the ${accordionName} accordion, 'Error: Please set a correct answer.' error message should be thrown along with an error icon on the '${accordionName}' accordion`, () => {
1454
+ it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
1455
1455
  numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
1456
1456
  numberLinePage.steps.confirmReset();
1457
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
1458
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
1457
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
1459
1458
  if (accordionName == 'Correct') {
1460
1459
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1461
1460
  .within(() => {
1462
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1461
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1463
1462
  });
1464
1463
  } else {
1465
1464
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1466
1465
  .within(() => {
1467
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1466
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1468
1467
  });
1469
1468
  };
1470
1469
  });
1471
1470
 
1472
- autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
1473
-
1474
1471
  it('When the user plots on the number line then the error message should disappear', () => {
1475
1472
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
1476
1473
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 1);
@@ -15,7 +15,8 @@ const selectors = {
15
15
  },
16
16
  selectAQuestionHeaderText: () => cy.get('[class*="QuestionResourceToolstyles__HeaderText"]'),
17
17
  questionTypeCategory: () => cy.get('[class*="QuestionResourceToolstyles__CategorySection"]'),
18
- resourceTypeCategory: () => cy.get('.MuiCard-root')
18
+ resourceTypeCategory: () => cy.get('.MuiCard-root'),
19
+ cancelCreateQuestionButton: () => cy.get('[class*="QuestionResourceToolstyles__CreateItemHeader"] .ngie-btn-outlined').contains('cancel'),
19
20
  }
20
21
 
21
22
  const questionTypeCategoryMap = {
@@ -64,7 +65,12 @@ const steps = {
64
65
  selectQuestionResourceToolPage.resourceAndToolOptionTitle(resourceCategory)
65
66
  .click();
66
67
  }
67
- }
68
+ },
69
+
70
+ clickOnCancelCreateQuestionButton: () => {
71
+ selectQuestionResourceToolPage.cancelCreateQuestionButton()
72
+ .click();
73
+ },
68
74
  }
69
75
 
70
76
  export const selectQuestionResourceToolPage = {
@@ -2,7 +2,6 @@ import utilities from "../support/helpers/utilities";
2
2
  import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredScoringSectionMultiResponseType, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, randomizeOptionsComponent, studentViewSettingsLabelComponent, commonComponents, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent } from "./components";
3
3
  const css = Cypress.env('css');
4
4
  import { createItemPage } from "./createItemPage";
5
- import { dialogBoxBase } from "./dialogBoxBase";
6
5
 
7
6
  const selectors = {
8
7
  ...questionInstructionsComponent,
@@ -180,78 +179,12 @@ const tests = {
180
179
  ...randomizeOptionsComponent.tests,
181
180
  ...studentViewSettingsLabelComponent.tests,
182
181
  ...autoScoredStudentViewSettings.tests,
183
- ...specifyRowsAndColumnsComponent.tests,
182
+ ...specifyRowsAndColumnsComponent.tests,
184
183
  ...commonComponents.tests,
185
184
  ...createQuestionBasePage.tests,
186
185
  ...additionalSettingsPanel.tests,
187
186
  ...additionalSettingsAccessibilitySectionComponent.tests,
188
187
  ...styleAndLayoutCustomizationAccordionComponent.tests,
189
- //TODO need to remove once Save as you go is available for all questions
190
- /**
191
- * @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
192
- * in the 'Specify correct answer' section for alternative answers in auto-scored questions.
193
- * @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
194
- * @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
195
- */
196
- verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
197
- it('\'+ Add alternative answer\' button should be present', () => {
198
- utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
199
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
200
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
201
- .verifyPseudoClassBeforeProperty('content', '""');
202
- });
203
-
204
- it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
205
- utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
206
- 'color': css.color.activeButtons,
207
- 'font-size': css.fontSize.default,
208
- 'font-weight': css.fontWeight.regular
209
- });
210
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
211
- .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
212
- });
213
-
214
- it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
215
- utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
216
- autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
217
- });
218
-
219
- it('CSS of warning popup', { tags: 'css' }, () => {
220
- utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
221
- 'color': css.color.flyoutTitle,
222
- 'font-size': css.fontSize.heading,
223
- 'font-weight': css.fontWeight.semibold
224
- });
225
- utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
226
- 'color': css.color.labels,
227
- 'font-size': css.fontSize.default,
228
- 'font-weight': css.fontWeight.regular
229
- });
230
- utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
231
- 'fill': css.color.closeIcon
232
- });
233
- });
234
-
235
- it('Accessibility of warning popup', { tags: 'a11y' }, () => {
236
- cy.checkAccessibility(dialogBoxBase.dialogBox());
237
- dialogBoxBase.steps.closeWarningPopup();
238
- });
239
- },
240
-
241
- //TODO need to remove once Save as you go is available for all questions
242
- verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
243
- it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
244
- autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
245
- .click();
246
- dialogBoxBase.steps.closeWarningPopup();
247
- //TODO: Need to add error message according to question types
248
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
249
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
250
- .eq(1)
251
- .should('have.attr', 'aria-expanded', 'true');
252
- });
253
- },
254
-
255
188
  /**
256
189
  * Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
257
190
  * @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
@@ -719,110 +719,6 @@ const tests = {
719
719
  ...autoScoredStudentViewSettings.tests,
720
720
  ...additionalSettingsAccessibilitySectionComponent.tests,
721
721
  ...mcqAdditionalSettingsBase.tests,
722
-
723
- //TODO need to remove once Save as you go is available for all questions
724
- /**
725
- * @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
726
- * in the 'Specify correct answer' section for alternative answers in auto-scored questions.
727
- * @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
728
- * @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
729
- */
730
- verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
731
- it('\'+ Add alternative answer\' button should be present', () => {
732
- utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
733
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
734
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
735
- .verifyPseudoClassBeforeProperty('content', '""');
736
- });
737
-
738
- it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
739
- utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
740
- 'color': css.color.activeButtons,
741
- 'font-size': css.fontSize.default,
742
- 'font-weight': css.fontWeight.regular
743
- });
744
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
745
- .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
746
- });
747
-
748
- it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
749
- utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
750
- autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
751
- });
752
-
753
- it('CSS of warning popup', { tags: 'css' }, () => {
754
- utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
755
- 'color': css.color.flyoutTitle,
756
- 'font-size': css.fontSize.heading,
757
- 'font-weight': css.fontWeight.semibold
758
- });
759
- utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
760
- 'color': css.color.labels,
761
- 'font-size': css.fontSize.default,
762
- 'font-weight': css.fontWeight.regular
763
- });
764
- utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
765
- 'fill': css.color.closeIcon
766
- });
767
- });
768
-
769
- it('Accessibility of warning popup', { tags: 'a11y' }, () => {
770
- cy.checkAccessibility(dialogBoxBase.dialogBox());
771
- dialogBoxBase.steps.closeWarningPopup();
772
- });
773
- },
774
-
775
- //TODO need to remove once Save as you go is available for all questions
776
- verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
777
- it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
778
- autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
779
- .click();
780
- dialogBoxBase.steps.closeWarningPopup();
781
- //TODO: Need to add error message according to question types
782
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
783
- autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
784
- .eq(1)
785
- .should('have.attr', 'aria-expanded', 'true');
786
- });
787
- },
788
-
789
- verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
790
- it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
791
- utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
792
- utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
793
- autoScoredScoringPreviewTab.studentViewRadioButton()
794
- .should('be.checked');
795
- autoScoredScoringPreviewTab.gradingViewRadioButton()
796
- .should('not.be.checked');
797
- autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
798
- autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
799
- });
800
-
801
- it('CSS of Preview mode contents', { tags: 'css' }, () => {
802
- utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
803
- 'color': css.color.labelText,
804
- 'font-size': css.fontSize.normal,
805
- 'font-weight': css.fontWeight.regular
806
- });
807
- utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
808
- 'color': css.color.labelText,
809
- 'font-size': css.fontSize.normal,
810
- 'font-weight': css.fontWeight.regular
811
- });
812
- utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
813
- 'color': css.color.codeBlockText,
814
- 'font-size': css.fontSize.default,
815
- 'font-weight': css.fontWeight.bold
816
- });
817
- utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
818
- 'fill': css.color.activeButtons
819
- });
820
- utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
821
- 'fill': css.color.uncheckedCheckbox
822
- });
823
- });
824
- },
825
-
826
722
  verifyContentsOfSpecifyCorrectAnswerSection: () => {
827
723
  it('In the \'Correct\' accordion, all options with checkboxes should be displayed', () => {
828
724
  utilities.verifyElementCount(singleSelectionPage.optionWrapperSpecifyCorrectAnswerSection(), 4);
@@ -1216,7 +1216,27 @@ const steps = {
1216
1216
  optionsTextArray.forEach((option, optionIndex) => {
1217
1217
  utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
1218
1218
  });
1219
- }
1219
+ },
1220
+
1221
+ verifyAnswerStatusBannerNotExist: () => {
1222
+ textSelectionPage.correctIncorrectAnswerLabelWrapper()
1223
+ .should('not.exist');
1224
+ },
1225
+
1226
+ verifyAnswerStatusBannerExist: () => {
1227
+ textSelectionPage.correctIncorrectAnswerLabelWrapper()
1228
+ .should('be.visible');
1229
+ },
1230
+
1231
+ verifyCorrectAnswerSectionExist: () => {
1232
+ textSelectionPage.correctAnswerSection()
1233
+ .should('be.visible');
1234
+ },
1235
+
1236
+ verifyCorrectAnswerSectionNotExist: () => {
1237
+ textSelectionPage.correctAnswerSection()
1238
+ .should('not.exist');
1239
+ },
1220
1240
  }
1221
1241
 
1222
1242
  const tests = {
@@ -1257,19 +1277,18 @@ const tests = {
1257
1277
  textSelectionPage.steps.verifySelectedStateOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0], 'blue');
1258
1278
  });
1259
1279
 
1260
- it(`When the user deselects all the selected options in the ${accordionName} accordion, \'Error: Please set a correct answer.\' error message should be thrown along with an error icon on the \'${accordionName}\' accordion`, () => {
1280
+ it(`When the user deselects all the selected options in the ${accordionName} accordion, 'Error: Please set a correct answer.' error message should be thrown along with an error icon on the '${accordionName}' accordion`, () => {
1261
1281
  textSelectionPage.steps.deselectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
1262
- utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'exist');
1263
- utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
1282
+ utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
1264
1283
  if (accordionName == 'Correct') {
1265
1284
  autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
1266
1285
  .within(() => {
1267
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1286
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1268
1287
  });
1269
1288
  } else {
1270
1289
  autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
1271
1290
  .within(() => {
1272
- utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
1291
+ utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
1273
1292
  });
1274
1293
  };
1275
1294
  });