itemengine-cypress-automation 1.0.341-e2eFixes18March-66a79d0.0 → 1.0.341-graphAndCharts-0a4e8d7.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 (237) 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 -0
  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 +185 -0
  163. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  164. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
  165. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  166. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
  167. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  168. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  169. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  170. package/cypress/e2e/Sessions/scores.js +9 -5
  171. package/cypress/e2e/applitools.config.js +3 -3
  172. package/cypress/fixtures/constants.js +5 -1
  173. package/cypress/fixtures/theme/ilc.json +16 -1
  174. package/cypress/fixtures/uploads/sample.webm +0 -0
  175. package/cypress/fixtures/uploads/sample.wmv +0 -0
  176. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  177. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  178. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  179. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  180. package/cypress/pages/audioPlayerPage.js +22 -22
  181. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  182. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  183. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  184. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  185. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +17 -51
  186. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  187. package/cypress/pages/components/browseItemsPage.js +998 -7
  188. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  189. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  190. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  191. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  192. package/cypress/pages/components/commonComponents.js +8 -1
  193. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  194. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  195. package/cypress/pages/components/desmosToolComponent.js +1 -1
  196. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  197. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  198. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -70
  199. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -101
  200. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  201. package/cypress/pages/components/hideExpressionListComponent.js +53 -0
  202. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  203. package/cypress/pages/components/index.js +1 -0
  204. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  205. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  206. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  207. package/cypress/pages/components/scoringSectionBaseEditTab.js +12 -13
  208. package/cypress/pages/desmos3DGraphingPage.js +368 -0
  209. package/cypress/pages/desmosGeometryPage.js +308 -0
  210. package/cypress/pages/dialogBoxBase.js +2 -1
  211. package/cypress/pages/dragAndDropIntoCategoriesPage.js +26 -6
  212. package/cypress/pages/drawingResponsePage.js +16 -15
  213. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -68
  214. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
  215. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  216. package/cypress/pages/gradingViewPage.js +8 -0
  217. package/cypress/pages/graphingPage.js +5 -8
  218. package/cypress/pages/gridFillPage.js +7 -8
  219. package/cypress/pages/imageHighlightPage.js +0 -66
  220. package/cypress/pages/index.js +3 -1
  221. package/cypress/pages/multipleSelectionGridPage.js +1 -68
  222. package/cypress/pages/multipleSelectionPage.js +10 -106
  223. package/cypress/pages/numberLineLabelPage.js +5 -8
  224. package/cypress/pages/numberLinePage.js +4 -7
  225. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  226. package/cypress/pages/singleSelectionGridPage.js +1 -68
  227. package/cypress/pages/singleSelectionPage.js +0 -104
  228. package/cypress/pages/textSelectionPage.js +25 -6
  229. package/cypress/pages/thinkSpherePage.js +1874 -0
  230. package/cypress/support/commands.js +7 -4
  231. package/cypress/support/e2e.js +1 -0
  232. package/cypress/support/helpers/createItem.js +1181 -1
  233. package/cypress/support/helpers/utilities.js +75 -1
  234. package/deploy/smoke/deploy.yaml +2 -2
  235. package/package.json +3 -3
  236. package/scripts/dataApi.mjs +3 -0
  237. package/scripts/sorry-cypress.mjs +13 -0
@@ -231,4 +231,34 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
231
231
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
232
232
  });
233
233
  });
234
+
235
+ describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are more than alternate answer points and correct answer has no text highlighted', () => {
236
+ abortEarlySetup();
237
+ before(() => {
238
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
239
+ cy.barsPreLoaderWait();
240
+ textSelectionPage.steps.setQuestionAndOptionsInEditTab();
241
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
242
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
243
+ textSelectionPage.steps.allotPoints(20);
244
+ textSelectionPage.steps.addAlternativeAnswerAccordion(1);
245
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
246
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[2]);
247
+ textSelectionPage.steps.allotPoints(12);
248
+ textSelectionPage.steps.expandCorrectAnswerAccordion();
249
+ textSelectionPage.steps.deselectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
250
+ textSelectionPage.steps.deselectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
251
+ textSelectionPage.steps.switchToPreviewTab();
252
+ });
253
+
254
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
255
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
256
+ textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
257
+ textSelectionPage.steps.verifyPreviewScore(20, 20);
258
+ textSelectionPage.steps.switchToGradingView();
259
+ textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();
260
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
261
+ textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
262
+ });
263
+ });
234
264
  });
@@ -0,0 +1,109 @@
1
+ import { textSelectionPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ const paragraphTextArray = [
5
+ 'All animals have a unique role to play in maintaining the balance of nature.',
6
+ 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.',
7
+ 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.',
8
+ 'Birds are creatures with feathers, beaks, and the ability to lay eggs.',
9
+ 'Many animal species are undocumented even today.',
10
+ 'Research is going on to discover new species in the far corners of the earth'
11
+ ]
12
+
13
+ describe('Create Item page - Text Selection', () => {
14
+ before(() => {
15
+ cy.loginAs('admin');
16
+ });
17
+
18
+ describe('Question Preview: Auto Scored With Points', () => {
19
+ abortEarlySetup();
20
+ before(() => {
21
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
22
+ cy.barsPreLoaderWait();
23
+ paragraphTextArray.forEach((paragraphText) => {
24
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
25
+ });
26
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
27
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
28
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
29
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
30
+ textSelectionPage.steps.switchToPreviewTab();
31
+ });
32
+
33
+ it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
34
+ textSelectionPage.steps.checkManuallyScoredScoringLabel();
35
+ });
36
+
37
+ it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
38
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
39
+ textSelectionPage.steps.switchToGradingView();
40
+ textSelectionPage.steps.verifyAnswerStatusBannerNotExist();
41
+ textSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
42
+ });
43
+
44
+ it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
45
+ textSelectionPage.steps.switchToEditTab();
46
+ textSelectionPage.steps.allotPoints(2);
47
+ textSelectionPage.steps.switchToPreviewTab();
48
+ textSelectionPage.steps.checkManuallyScoredScoringLabel();
49
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
50
+ textSelectionPage.steps.switchToGradingView();
51
+ textSelectionPage.steps.verifyAnswerStatusBannerNotExist();
52
+ textSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
53
+ });
54
+ });
55
+
56
+ describe('Question Preview: Auto Scored Without Points', () => {
57
+ abortEarlySetup();
58
+ before(() => {
59
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
60
+ cy.barsPreLoaderWait();
61
+ paragraphTextArray.forEach((paragraphText) => {
62
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
63
+ });
64
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
65
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
66
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
67
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
68
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
69
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
70
+ textSelectionPage.steps.switchToPreviewTab();
71
+ });
72
+
73
+ it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
74
+ textSelectionPage.steps.checkManuallyScoredScoringLabel();
75
+ });
76
+
77
+ it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
78
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
79
+ textSelectionPage.steps.switchToGradingView();
80
+ textSelectionPage.steps.verifyAnswerStatusBannerExist();
81
+ textSelectionPage.steps.verifyCorrectAnswerSectionExist();
82
+ });
83
+ });
84
+
85
+ describe('Question Preview: Non Scored', () => {
86
+ abortEarlySetup();
87
+ before(() => {
88
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
89
+ cy.barsPreLoaderWait();
90
+ paragraphTextArray.forEach((paragraphText) => {
91
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
92
+ });
93
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
94
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
95
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
96
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
97
+ });
98
+
99
+ it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
100
+ textSelectionPage.steps.expandScoringTypeDropdown();
101
+ textSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
102
+ textSelectionPage.steps.switchToPreviewTab();
103
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
104
+ textSelectionPage.steps.switchToGradingView();
105
+ textSelectionPage.steps.verifyAnswerStatusBannerNotExist();
106
+ textSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
107
+ });
108
+ });
109
+ });
@@ -0,0 +1,46 @@
1
+ import { textSelectionPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ const paragraphTextArray = [
5
+ 'All animals have a unique role to play in maintaining the balance of nature.',
6
+ 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.',
7
+ 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.',
8
+ 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.'
9
+ ];
10
+
11
+ describe('Create question page - Text Selection', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ describe('Check Alternative Answer Button', () => {
17
+ abortEarlySetup();
18
+ before(() => {
19
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
20
+ cy.barsPreLoaderWait();
21
+ paragraphTextArray.forEach((paragraphText) => {
22
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
23
+ });
24
+ textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
25
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
26
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
27
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
28
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
29
+ });
30
+
31
+ it('When correct answer is not set then alternative answer should be disabled', () => {
32
+ textSelectionPage.steps.checkAlternativeButtonDisabled();
33
+ });
34
+
35
+ it('When correct answer is set then alternative answer should be enabled', () => {
36
+ textSelectionPage.steps.allotPoints(20);
37
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
38
+ textSelectionPage.steps.checkAlternativeButtonEnabled();
39
+ });
40
+
41
+ it('User should be able to add \'Alternative\' answer using the \'Add alternative\' button, when user has not set any answer in the \'Alternative\' accordion and clicks on the \'Correct\' accordion then \'Correct\' accordion should be expanded', () => {
42
+ textSelectionPage.steps.clickOnAddAlternativeAnswerButton();
43
+ textSelectionPage.steps.expandCorrectAnswerAccordion();
44
+ });
45
+ });
46
+ });
@@ -0,0 +1,57 @@
1
+ import { textSelectionPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ const paragraphTextArray = [
5
+ 'All animals have a unique role to play in maintaining the balance of nature.',
6
+ 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.',
7
+ 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.',
8
+ 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.'
9
+ ];
10
+
11
+ describe('Create item page - Text Selection', () => {
12
+ before(() => {
13
+ cy.loginAs('admin');
14
+ });
15
+
16
+ describe('User should be able to edit incomplete authored question', () => {
17
+ abortEarlySetup();
18
+ before(() => {
19
+ textSelectionPage.steps.navigateToCreateQuestion('text selection');
20
+ cy.barsPreLoaderWait();
21
+ textSelectionPage.steps.saveAQuestionWithIncompleteAuthoring();
22
+ textSelectionPage.steps.editItem();
23
+ });
24
+
25
+ it('Warning icons should be displayed on the required input fields', () => {
26
+ textSelectionPage.steps.verifyWarningIconOnRequiredFields([
27
+ 'Please specify a possible option',
28
+ 'Please set points',
29
+ ]);
30
+ });
31
+
32
+ it('When required input fields are filled then warning icons should disappear', () => {
33
+ textSelectionPage.steps.clearQuestionInputField();
34
+ paragraphTextArray.forEach((paragraphText) => {
35
+ textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
36
+ });
37
+ textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
38
+ textSelectionPage.steps.switchTextSelectionMode('Paragraph');
39
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
40
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
41
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
42
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
43
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
44
+ textSelectionPage.steps.allotPoints(10);
45
+ textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
46
+ textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
47
+ });
48
+
49
+ it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
50
+ textSelectionPage.steps.saveAQuestionAndVerifySnackbar();
51
+ });
52
+
53
+ it('Warning icon should not be visible', () => {
54
+ textSelectionPage.steps.verifyWarningIconNotExist();
55
+ });
56
+ });
57
+ });
@@ -1,8 +1,12 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { dialogBoxBase, textSelectionPage } from "../../../pages";
2
+ import { dialogBoxBase, textSelectionPage, itemPreviewPage } from "../../../pages";
3
+ import { browseItemsPage } from "../../../pages/components";
3
4
  import utilities from "../../../support/helpers/utilities";
4
5
  const options = ['Bat', 'Eagle'];
5
6
 
7
+ var itemReferenceID = "";
8
+
9
+
6
10
  describe('Create item page - Text selection: Header section and Saving question', () => {
7
11
  before(() => {
8
12
  cy.loginAs('admin');
@@ -43,19 +47,16 @@ describe('Create item page - Text selection: Header section and Saving question'
43
47
  });
44
48
 
45
49
  describe('Validation error messages', () => {
46
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
50
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please specify a possible option', 'Please set points']);
47
51
 
48
52
  it('Validation error messages should be displayed below required input fields', () => {
49
53
  textSelectionPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
50
- textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
51
- utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
54
+ textSelectionPage.steps.verifyWarningIconOnRequiredFields(['Please specify a possible option', 'Please set points']);
52
55
  });
53
56
 
54
57
  it('Validation error messages should disappear when required input fields are filled', () => {
55
58
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', 'Lorem');
56
59
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection('Lorem');
57
- utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
58
- textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
59
60
  textSelectionPage.steps.allotPoints(10);
60
61
  });
61
62
 
@@ -68,5 +69,36 @@ describe('Create item page - Text selection: Header section and Saving question'
68
69
  });
69
70
  textSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
70
71
  });
72
+
73
+ describe('Saving a question with incomplete authoring', () => {
74
+ abortEarlySetup();
75
+ before(() => {
76
+ textSelectionPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
77
+ cy.barsPreLoaderWait();
78
+ });
79
+
80
+ it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
81
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
82
+ textSelectionPage.steps.saveAQuestionWithIncompleteAuthoring();
83
+ });
84
+ textSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
85
+ });
86
+ });
87
+
88
+
89
+ describe('Save as you go - Browse item page contents', () => {
90
+ abortEarlySetup();
91
+ before(() => {
92
+ textSelectionPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
93
+ cy.barsPreLoaderWait();
94
+ textSelectionPage.steps.saveAQuestionWithIncompleteAuthoring();
95
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
96
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
97
+ browseItemsPage.steps.navigateToBrowseItemsPage();
98
+ });
99
+
100
+ it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
101
+ browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
102
+ });
71
103
  });
72
104
  });
@@ -50,8 +50,7 @@ describe('Create Item page - Text selection: Question Instructions and Question
50
50
  it('When the user removes all the text from the question input field and focuses out of it, an error message \'Error: Question is required.\' should be displayed', () => {
51
51
  textSelectionPage.steps.clearQuestionInputField();
52
52
  textSelectionPage.steps.focusOutOfQuestionInputField();
53
- utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Question is required.');
54
- textSelectionPage.steps.verifyErroredStateOfQuestionInputField();
53
+ utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
55
54
  });
56
55
 
57
56
  textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
@@ -71,7 +71,7 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
71
71
  textSelectionPage.steps.verifyOptionCounterTextAndValue(1);
72
72
  });
73
73
 
74
- it('When user clears all selected options with the \'Clear\' button, then all the selected options should be deselected and the specify possible options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
74
+ it('When user clears all selected options with the \'Clear\' button, then all the selected options should be deselected and the specify possible options field should not be in errored state with the error message', () => {
75
75
  cy.log('Pre-step: Selecting multiple texts to create options');
76
76
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[0]);
77
77
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[1]);
@@ -211,19 +211,16 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
211
211
  textSelectionPage.steps.verifyOptionIsNotSelectedInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
212
212
  });
213
213
 
214
- it('When user clicks on \'Confirm\' button of the Clear popup, then the popup should be closed and all the selected options should be deselected and the specify possible options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
214
+ it('When user clicks on \'Confirm\' button of the Clear popup, then the popup should be closed and all the selected options should be deselected and the specify possible options field should not be in errored state with the error message', () => {
215
215
  cy.log('Pre-step: Again clicking on Clear button to open Clear popup');
216
216
  textSelectionPage.steps.clickOnClearOptionsButtonInSpecifyPossibleOptionSection();
217
217
  textSelectionPage.steps.clickOnAcceptButtonInDialogBox();
218
218
  for (let arrayIndex = 0; arrayIndex < paragraphTextArray.length; arrayIndex++) {
219
219
  textSelectionPage.steps.verifyOptionIsNotSelectedInSpecifyPossibleOptionsSection(paragraphTextArray[arrayIndex]);
220
220
  }
221
- utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Minimum one highlight option is required.');
222
- textSelectionPage.steps.verifyErroredStateOfSpecifyPossibleOptionsSection();
221
+ textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
223
222
  });
224
223
 
225
- textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
226
-
227
224
  it('When user click on a deselected option, the option should be selected and the error message should disappear and option counter should display 1 count', () => {
228
225
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Paragraph', paragraphTextArray[0]);
229
226
  utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
@@ -286,8 +283,7 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
286
283
  it('When user clears all selected options with the \'Clear\' button, then all the selected options should be deselected and the specify possible options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
287
284
  textSelectionPage.steps.clearSelectedOptionsInSpecifyPossibleOptionSection();
288
285
  utilities.verifyElementVisibilityState(textSelectionPage.selectedOptionSpecifyPossibleOptions(), 'notExist');
289
- utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Minimum one highlight option is required.');
290
- textSelectionPage.steps.verifyErroredStateOfSpecifyPossibleOptionsSection();
286
+ textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
291
287
  });
292
288
 
293
289
  textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
@@ -355,18 +351,17 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
355
351
  textSelectionPage.steps.verifyHoverStateOfDeselectedOptionInSpecifyPossibleOptionsSection(wordTextArray[2], 'blue');
356
352
  });
357
353
 
358
- it('When user clears all selected options with the \'Clear\' button, then all the selected options should be deselected and the specify possible options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
354
+ it('When user clears all selected options with the \'Clear\' button, then all the selected options should be deselected and the specify possible options field should not be in errored state with the error message', () => {
359
355
  textSelectionPage.steps.clearSelectedOptionsInSpecifyPossibleOptionSection();
360
356
  for (let arrayIndex = 0; arrayIndex < sentenceTextArray.length; arrayIndex++) {
361
357
  textSelectionPage.steps.verifyOptionIsNotSelectedInSpecifyPossibleOptionsSection(wordTextArray[arrayIndex]);
362
358
  }
363
- utilities.verifyInnerText(textSelectionPage.errorMessage(), 'Error: Minimum one highlight option is required.');
364
- textSelectionPage.steps.verifyErroredStateOfSpecifyPossibleOptionsSection();
359
+ textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
365
360
  });
366
361
 
367
362
  textSelectionPage.tests.verifyErrorMessageCSSAndA11y();
368
363
 
369
- it('When user click on a deselected option, the option should be selected and the error message should disappear and option counter should display 1 count', () => {
364
+ it('When user click on a deselected option, the option should be selected and the error message should not be displayed and option counter should display 1 count', () => {
370
365
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Word', wordTextArray[0]);
371
366
  utilities.verifyElementVisibilityState(textSelectionPage.errorMessage(), 'notExist');
372
367
  textSelectionPage.steps.verifyOptionCounterTextAndValue(1);
@@ -0,0 +1,52 @@
1
+ import { thinkSpherePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+ const css = Cypress.env('css');
5
+
6
+ const fontSizeDropdownOptions = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
7
+ const fontSizes = ['12px', '14px', '16px', '18px', '22px', '26px'];
8
+
9
+ describe('ThinkSphere: Additional Settings accordion', () => {
10
+ before(() => {
11
+ cy.loginAs('admin');
12
+ });
13
+
14
+ describe('Additional Settings accordion', () => {
15
+ abortEarlySetup();
16
+ before(() => {
17
+ thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
18
+ cy.barsPreLoaderWait();
19
+ });
20
+
21
+ thinkSpherePage.tests.verifyAdditionalSettingsAccordionProperties();
22
+ });
23
+
24
+ describe('Additional settings: Font size contents', () => {
25
+ abortEarlySetup();
26
+ before(() => {
27
+ thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
28
+ cy.barsPreLoaderWait();
29
+ thinkSpherePage.steps.expandAdditionalSettings();
30
+ });
31
+
32
+ thinkSpherePage.tests.verifyFontSizeSectionContents();
33
+ });
34
+
35
+ describe('Additional settings: Font size functionality preview tab', () => {
36
+ abortEarlySetup();
37
+ before(() => {
38
+ thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
39
+ cy.barsPreLoaderWait();
40
+ thinkSpherePage.steps.addQuestionInstructions();
41
+ thinkSpherePage.steps.expandAdditionalSettings();
42
+ utilities.verifyElementVisibilityState(thinkSpherePage.fontSizeDropdown(), 'visible');
43
+ });
44
+
45
+ fontSizeDropdownOptions.forEach((option, _) => {
46
+ it(`When the user selects '${option}' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
47
+ thinkSpherePage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
48
+ utilities.verifyInnerText(thinkSpherePage.fontSizeDropdown(), `${option}`);
49
+ });
50
+ });
51
+ });
52
+ });
@@ -0,0 +1,112 @@
1
+ import { thinkSpherePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ import utilities from "../../../support/helpers/utilities";
4
+
5
+ const allowedQuestions = [
6
+ 'multiple selection',
7
+ 'single selection',
8
+ 'fill in the gaps with text',
9
+ 'fill in the gaps with drag and drop',
10
+ 'drag and drop into categories',
11
+ 'matching',
12
+ 'short text response',
13
+ 'Text Entry Math',
14
+ ]
15
+
16
+ const dropDownArray = [
17
+ 'All question types',
18
+ 'Multiple choice selection',
19
+ 'Fill in the gaps',
20
+ 'Drag and drop',
21
+ 'List',
22
+ 'Constructed response',
23
+ 'Math response',
24
+ ]
25
+ describe("Create Review Item", () => {
26
+ abortEarlySetup();
27
+ before(() => {
28
+ cy.loginAs('admin');
29
+ cy.deleteThinkSphereItem('~zzz item name');
30
+ cy.createThinkSphereItem('~zzz item name');
31
+ thinkSpherePage.steps.navigateToReviewItemsPage();
32
+ })
33
+
34
+ after(() => {
35
+ cy.deleteThinkSphereItem('~zzz item name');
36
+ });
37
+
38
+ it('When the user clicks on the \'Create Question\' button then the user should be navigated to create review question page',() => {
39
+ thinkSpherePage.steps.clickOnCreateItemButton();
40
+ utilities.verifyElementVisibilityState(thinkSpherePage.selectAQuestionHeaderText(), 'visible');
41
+ })
42
+
43
+ it(`When the user lands on the create review question page, only ${allowedQuestions} should be displayed`, () => {
44
+ utilities.verifyElementCount(thinkSpherePage.resourceTypeCategory(), allowedQuestions.length);
45
+ allowedQuestions.forEach(questionType => {
46
+ utilities.verifyElementVisibilityState(thinkSpherePage.questionTypeOptionTitle(questionType), 'visible');
47
+ });
48
+ });
49
+
50
+ it('When user clicks the \'Cancel\' button then it should navigate to browse review item page', () => {
51
+ thinkSpherePage.steps.clickOnCancelCreateQuestionButton();
52
+ utilities.verifyElementVisibilityState(thinkSpherePage.browseItemPageHeader(), 'visible');
53
+ });
54
+
55
+ it('When user clicks on create question, search bar should appear with placeholder, \'Search by question and tool tip \'Search\'', () => {
56
+ thinkSpherePage.steps.clickOnCreateItemButton();
57
+ thinkSpherePage.steps.verifySearchBarComponent();
58
+ thinkSpherePage.steps.verifySearchIcon();
59
+ thinkSpherePage.steps.verifyCloseIcon();
60
+ thinkSpherePage.steps.verifyReviewItemSearchBarPlaceholder();
61
+ thinkSpherePage.steps.hoverOnSearchBarComponent();
62
+ thinkSpherePage.searchBarParent().verifyTooltip('Search');
63
+ });
64
+
65
+ it('The author should be able to type in letters numbers, special character, alpha numeric characters in the search input field.', () => {
66
+ const testInputs = [
67
+ 'abc', // letters
68
+ '123', // numbers
69
+ '!@#$%^&*()', // special characters
70
+ 'abc123XYZ', // alphanumeric
71
+ 'test@123.com' // mixed
72
+ ];
73
+
74
+ testInputs.forEach((input) => {
75
+ thinkSpherePage.steps.typeInSearchBar(input);
76
+ });
77
+ });
78
+
79
+ it('When the author types the question type in search bar, only that particular question card should be present', () => {
80
+ thinkSpherePage.steps.searchInSearchBar('single selection');
81
+ thinkSpherePage.steps.verifyLength(thinkSpherePage.cardWrapper(), 1);
82
+ utilities.verifyInnerText(thinkSpherePage.cardLabel(), 'Single selection');
83
+ });
84
+
85
+ it('Create review item page should have a categories dropdown with default value as \'All question types\'', () => {
86
+ utilities.verifyElementVisibilityState(thinkSpherePage.categoriesDropDown(), 'visible');
87
+ utilities.verifyInnerText(thinkSpherePage.categoriesDropDownLabelText(), 'All question types');
88
+ });
89
+
90
+ it(`The category dropdown should contain the following dropdown options and when any question type is clicked the cards should have those question types only `, () => {
91
+ thinkSpherePage.steps.expandDropdown();
92
+ thinkSpherePage.steps.verifyDropdownOptions(dropDownArray);
93
+ thinkSpherePage.steps.clickOnDropDownCategory(3);
94
+ utilities.verifyInnerText(thinkSpherePage.cardLabel(), 'Drag and drop into categories');
95
+ thinkSpherePage.steps.clickOnCancelButton();
96
+ });
97
+
98
+ it('When the user creates a new review item and then saves it, it should be displayed in the thinkSphere item page', () => {
99
+ thinkSpherePage.steps.createReviewQuestion();
100
+ utilities.verifyElementCount(thinkSpherePage.widgetHeaderQuestionTitle(), 2);
101
+ });
102
+
103
+ it('When a user cancels creating a review question and adds item from the item bank then the thinkSphere question and the review item selected should be displayed', () => {
104
+ thinkSpherePage.steps.clickOnDeleteButton();
105
+ thinkSpherePage.steps.clickOnAddCheckMathQuestionButton();
106
+ thinkSpherePage.steps.clickOnCreateItemButton();
107
+ thinkSpherePage.steps.clickOnCancelCreateQuestionButton();
108
+ thinkSpherePage.steps.clickOnFirstAvailableItemLink();
109
+ thinkSpherePage.steps.clickOnSaveButton();
110
+ utilities.verifyElementCount(thinkSpherePage.widgetHeaderQuestionTitle(), 2);
111
+ });
112
+ });