itemengine-cypress-automation 1.0.341-e2eFixes18March-66a79d0.0 → 1.0.341-graphAndCharts-9d8e298.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 -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 +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
@@ -0,0 +1,296 @@
1
+ import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
2
+ import { thinkSpherePage } from "../../../pages";
3
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
4
+ import utilities from "../../../support/helpers/utilities";
5
+ const css = Cypress.env('css');
6
+ const canvasTools = [
7
+ 'Text', 'Pen', 'Highlighter', 'Image', 'Shapes',
8
+ 'Stamps', 'Unifix Cube', 'Diagrams', 'Array',
9
+ 'Number line', 'Fraction bars', 'Protractor', 'Table', 'Grids',
10
+ 'Equation editor', 'Algebra tiles'
11
+ ];
12
+ const defaultSelectedCanvasTools = ['Text', 'Pen', 'Highlighter', 'Image', 'Shapes', 'Stamps'];
13
+ const canvasControls = ['Move', 'Delete', 'Undo', 'Redo', 'Clear all'];
14
+ const defaultSelectedCanvasControls = ['Move', 'Delete', 'Undo', 'Redo', 'Clear all'];
15
+ const defaultTool = 'Pen';
16
+ const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
17
+ const defaultSelectedStamps = ['Stamp 1', 'Stamp 2', 'Stamp 3', 'Stamp 4', 'Stamp 5', 'Stamp 6', 'Stamp 7', 'Stamp 8', 'Stamp 9', 'Stamp 10', 'Stamp 11', 'Stamp 12', 'Stamp 13'];
18
+ const defaultToolsOptions = ['Text', 'Pen', 'Highlighter'];
19
+
20
+
21
+ describe('ThinkSphere Question - Solve Phases Section', () => {
22
+ before(() => {
23
+ cy.loginAs('admin');
24
+ });
25
+
26
+ describe('Create item : ThinkSphere Question - Solve Phases Section - Edit tab', () => {
27
+ abortEarlySetup();
28
+ before(() => {
29
+ cy.loginAs('admin');
30
+ thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
31
+ cy.barsPreLoaderWait();
32
+ });
33
+
34
+ it('By default \'Solve phase\' accordion should be expanded', () => {
35
+ utilities.verifyInnerText(thinkSpherePage.solvePhaseAccordionLabel(), 'Solve');
36
+ utilities.verifyElementVisibilityState(thinkSpherePage.solvePhaseAccordionExpandIcon(), 'exist');
37
+ });
38
+
39
+ it('When the user clicks the expanded \'Solve phase\' accordion should be collapsed when collapsed accordion is clicked it should be expanded', () => {
40
+ thinkSpherePage.steps.clickOnSolvePhaseAccordionIcon();
41
+ thinkSpherePage.steps.verifySolvePhaseAccordionCollapsed();
42
+ thinkSpherePage.steps.clickOnSolvePhaseAccordionIcon();
43
+ thinkSpherePage.steps.verifySolvePhaseAccordionExpanded();
44
+ });
45
+
46
+ it('By default \'Customize toolbar options and controls\' accordion should be collapsed and by clicking on the \'Customize toolbar options and controls\' accordion, user should be able to expand the accordion', () => {
47
+ utilities.verifyInnerText(thinkSpherePage.customizeToolsAndControlsLabel(), 'Customize toolbar options and controls');
48
+ utilities.verifyElementVisibilityState(thinkSpherePage.customizeToolsAndControlsIcon(), 'exist');
49
+ thinkSpherePage.steps.expandCustomizeToolsAndControls();
50
+ });
51
+
52
+ it('Accessibility of \'Solve phase\' accordion and contents', { tags: 'a11y' }, () => {
53
+ cy.checkAccessibility(thinkSpherePage.solvePhaseAccordionContentWrapper());
54
+ });
55
+
56
+ it('CSS of \'Solve phase\' accordion and contents', { tags: 'css' }, () => {
57
+ cy.log('CSS of accordion label and chevron icon')
58
+ utilities.verifyCSS(thinkSpherePage.solvePhaseAccordionLabel(), {
59
+ 'color': css.color.accordionLabel,
60
+ 'font-size': css.fontSize.default,
61
+ 'font-weight': css.fontWeight.bold
62
+ });
63
+ utilities.verifyCSS(thinkSpherePage.solvePhaseAccordionSvg(), {
64
+ 'fill': css.color.activeButtons
65
+ });
66
+ utilities.verifyCSS(thinkSpherePage.customizeToolsAndControlsLabel(), {
67
+ 'color': css.color.accordionLabel,
68
+ 'font-size': css.fontSize.default,
69
+ 'font-weight': css.fontWeight.bold
70
+ });
71
+ utilities.verifyCSS(thinkSpherePage.customizeToolsAndControlsPath(), {
72
+ 'fill': css.color.activeButtons
73
+ });
74
+
75
+ cy.log('CSS of selected toolbar formatting option')
76
+ utilities.verifyCSS(thinkSpherePage.solveToolsAndControlsOptionsTiles('Text'), {
77
+ 'background-color': css.color.primaryBtnBg
78
+ });
79
+ cy.log('CSS of tick icon of selected toolbar formatting option')
80
+ utilities.verifyCSS(thinkSpherePage.solvePhaseToolsAndControlsOptionsTilesFeatherCheckIcon(), {
81
+ 'fill': css.color.activeButtons
82
+ });
83
+ cy.log('CSS of background of tick icon of selected toolbar formatting option')
84
+ utilities.verifyCSS(thinkSpherePage.solvePhaseToolsAndControlsOptionsTilesRectangle(), {
85
+ 'fill': css.color.defaultBackground
86
+ });
87
+ cy.log('CSS of icon of selected toolbar formatting option')
88
+ utilities.verifyCSS(thinkSpherePage.solvePhaseToolsAndControlsOptionsTilesDragItemFlexWrapperSvg(), {
89
+ 'fill': 'none'
90
+ });
91
+ cy.log('CSS of drag handle of selected toolbar formatting option')
92
+ utilities.verifyCSS(
93
+ utilities.getNthElement(thinkSpherePage.solvePhaseToolsAndControlsOptionsTilesTextDragIconSvgPath(), 1),
94
+ {
95
+ 'color': css.color.activeButtons
96
+ },
97
+ );
98
+ cy.log('CSS of unselected toolbar formatting option')
99
+ utilities.verifyCSS(thinkSpherePage.solveToolsAndControlsOptionsTiles('Array'), {
100
+ 'background-color': css.color.secondaryBtnBg
101
+ });
102
+ cy.log('CSS of drag handle of unselected toolbar formatting option')
103
+ utilities.verifyCSS(
104
+ utilities.getNthElement(thinkSpherePage.solvePhaseToolsAndControlsOptionsTilesArrayDragIconSvgPath(), 1),
105
+ {
106
+ 'fill': css.color.secondaryBtn
107
+ },
108
+ );
109
+ });
110
+
111
+ it('When \'Solve phase\' accordion is in expanded state, then all the tool options should be displayed along with drag handle.', () => {
112
+ thinkSpherePage.steps.verifyToolsAndControlsOptions(canvasTools);
113
+ });
114
+
115
+ it(`When the \'Solve phase\' accordion is in expanded state, then the following tools should be in selected state by default - ${defaultSelectedCanvasTools}. All the other options should be in unselected state.`, () => {
116
+ defaultSelectedCanvasTools.forEach(tool => {
117
+ thinkSpherePage.steps.verifyOptionIsSelected(tool);
118
+ });
119
+ canvasTools.filter(tool => !defaultSelectedCanvasTools.includes(tool)).forEach(tool => {
120
+ thinkSpherePage.steps.verifyOptionIsNotSelected(tool);
121
+ });
122
+ });
123
+
124
+ it('User should be able to unselect any default selected tool and should be able to select any default unselected tool.', () => {
125
+ thinkSpherePage.steps.deselectOptionFromToolsAndControls('Text');
126
+ thinkSpherePage.steps.verifyOptionIsNotSelected('Text');
127
+ thinkSpherePage.steps.selectOptionFromToolsAndControls('Array');
128
+ thinkSpherePage.steps.verifyOptionIsSelected('Array');
129
+ });
130
+
131
+ it('When \'Solve phase\' accordion is in expanded state, then all the control options should be displayed along with drag handle.', () => {
132
+ thinkSpherePage.steps.verifyToolsAndControlsOptions(canvasControls);
133
+ });
134
+
135
+ it(`When the \'Solve phase\' accordion is in expanded state, then the following controls should be in selected state by default - ${defaultSelectedCanvasControls}. All the other options should be in unselected state.`, () => {
136
+ defaultSelectedCanvasControls.forEach(control => {
137
+ thinkSpherePage.steps.verifyOptionIsSelected(control);
138
+ });
139
+ canvasControls.filter(control => !defaultSelectedCanvasControls.includes(control)).forEach(control => {
140
+ thinkSpherePage.steps.verifyOptionIsNotSelected(control);
141
+ });
142
+ });
143
+
144
+ it('User should be able to unselect any default selected control.', () => {
145
+ thinkSpherePage.steps.deselectOptionFromToolsAndControls('Move');
146
+ thinkSpherePage.steps.verifyOptionIsNotSelected('Move');
147
+ });
148
+
149
+ thinkSpherePage.tests.verifyDefaultToolDropdown(defaultToolsOptions, defaultTool);
150
+
151
+ it('\'Customize stamps\' component should be present inside \'Customize toolbar options and controls\' accordion of solve phase', () => {
152
+ thinkSpherePage.steps.verifyCustomizeStampsComponent();
153
+ utilities.verifyInnerText(thinkSpherePage.customizeStampHeading(), 'Customize stamp');
154
+ });
155
+
156
+ it('Default stamps should be displayed and selected by default in the \'Customize stamps\' component', () => {
157
+ thinkSpherePage.steps.verifyDefaultStamps(defaultSelectedStamps);
158
+ });
159
+
160
+ it('Default stamps should have visible tool tips', () => {
161
+ defaultSelectedStamps.forEach((ele) => {
162
+ thinkSpherePage.customizeStampCard(ele).verifyTooltip(ele);
163
+ });
164
+ });
165
+
166
+ it('When user select deselect stamps tool from tools section, then customize stamps section should be visible and hide respectively', () => {
167
+ thinkSpherePage.steps.clickOnStampsTool();
168
+ utilities.verifyElementVisibilityState(thinkSpherePage.customizeStampComponent(), 'notExist');
169
+ thinkSpherePage.steps.clickOnStampsTool();
170
+ utilities.verifyElementVisibilityState(thinkSpherePage.customizeStampComponent(), 'visible');
171
+ });
172
+
173
+ it('CSS of \'Customize stamps\' component', { tags: 'css' }, () => {
174
+ thinkSpherePage.customizeStampComponent()
175
+ .within(() => {
176
+ utilities.verifyCSS(thinkSpherePage.customizeStampHeading(), {
177
+ 'color': css.color.sectionHeading,
178
+ 'font-size': css.fontSize.normal,
179
+ 'font-weight': css.fontWeight.semibold,
180
+ 'padding-bottom': '8px'
181
+ });
182
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.customizeStampCard(), 0), {
183
+ 'width': '80px',
184
+ 'height': '80px',
185
+ 'border': `1px solid ${css.color.figDefaultComponentBorder}`,
186
+ 'background-color': css.color.primaryBtn,
187
+ 'border-radius': '8px',
188
+ });
189
+ });
190
+ });
191
+
192
+ it('User should be able to select and unselect any stamp from the \'Customize stamps\' component', () => {
193
+ thinkSpherePage.steps.verifySelectAndUnselectStamps();
194
+ });
195
+
196
+ it('CSS of unselected \'Customize stamp\' card component', { tags: 'css' }, () => {
197
+ thinkSpherePage.steps.clickOnCustomizeCard(0);
198
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.customizeStampCard(), 0), {
199
+ 'width': '80px',
200
+ 'height': '80px',
201
+ 'border': `1px solid ${css.color.secondaryBtnDisabled}`,
202
+ 'background-color': css.color.primaryBtn,
203
+ 'border-radius': '8px',
204
+ });
205
+ thinkSpherePage.steps.clickOnCustomizeCard(0);
206
+ });
207
+
208
+ thinkSpherePage.tests.verifyDefaultToolDropdown(defaultToolsOptions, defaultTool);
209
+
210
+ it('By default, Equation Editor categories should not be displayed', () => {
211
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionWrapper(), 'notExist');
212
+ });
213
+
214
+ it('When clicking the Equation Editor Tool, Equation Editor categories should be displayed', () => {
215
+ thinkSpherePage.steps.selectCustomizedFormattingOption(['Equation editor']);
216
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionWrapper(), 'exist');
217
+ });
218
+
219
+ it(`By default, ${defaultSelectedCategories.toString()} should be selected`, () => {
220
+ defaultSelectedCategories.forEach((category) => {
221
+ thinkSpherePage.steps.verifySelectedCategoryInEquationEditorSectionEditTab(category);
222
+ });
223
+ });
224
+
225
+ it('CSS of selected and deselected category', { tags: 'css' }, () => {
226
+ cy.log('CSS of selected category')
227
+
228
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.equationEditorSectionCategories(), 0), {
229
+ 'background-color': css.color.activeButtons
230
+ });
231
+
232
+ utilities.getNthElement(thinkSpherePage.equationEditorSectionCategories(), 0)
233
+ .within(() => {
234
+ utilities.verifyCSS(thinkSpherePage.equationEditorSectionCategoryLabel(), {
235
+ 'color': css.color.primaryBtn,
236
+ 'font-size': css.fontSize.small,
237
+ 'font-weight': css.fontWeight.regular
238
+ });
239
+ utilities.verifyCSS(thinkSpherePage.equationEditorSectionTickIcon(), {
240
+ 'fill': css.color.activeButtons
241
+ });
242
+ utilities.verifyCSS(thinkSpherePage.equationEditorSectionCategoriesDragIcon(), {
243
+ 'fill': css.color.activeButtons
244
+ });
245
+ });
246
+
247
+ cy.log('CSS of deselected category')
248
+
249
+ utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.equationEditorSectionCategories(), 12), {
250
+ 'background-color': css.color.primaryBtn
251
+ });
252
+
253
+ utilities.getNthElement(thinkSpherePage.equationEditorSectionCategories(), 12)
254
+ .within(() => {
255
+ utilities.verifyCSS(thinkSpherePage.equationEditorSectionCategoryLabel(), {
256
+ 'color': css.color.secondaryBtn,
257
+ 'font-size': css.fontSize.small,
258
+ 'font-weight': css.fontWeight.regular
259
+ });
260
+ utilities.verifyCSS(thinkSpherePage.equationEditorSectionCategoriesDragIcon(), {
261
+ 'fill': css.color.secondaryBtn
262
+ });
263
+ });
264
+ });
265
+
266
+ it('The edit button should not be displayed for the keypad category button.', () => {
267
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['keyPad'].displayName}`).find(thinkSpherePage.equationEditorSectionCategoriesEditIcon()), 'visible');
268
+ })
269
+
270
+ it('User should be able to unselect default selected category and should be able to select default unselected category.', () => {
271
+ thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['keyPad'].displayName}`).click();
272
+ thinkSpherePage.steps.verifyEquationEditorSectionCategoryNotPressed()
273
+ thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['setNotation'].displayName}`).click();
274
+ thinkSpherePage.steps.verifyEquationEditorSectionCategoryIsPressed();
275
+ });
276
+
277
+ it('The \'Equation Editor\' should be displayed along with helper text \'Select the categories to display to the students in the equation editor.\' and \'Create custom category\' button should be displayed', () => {
278
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionTitle(), 'visible');
279
+ utilities.verifyInnerText(thinkSpherePage.equationEditorSectionTitle(), 'Equation editor');
280
+ utilities.verifyElementVisibilityState(thinkSpherePage.equationEditorSectionHelperText(), 'visible');
281
+ utilities.verifyInnerText(thinkSpherePage.equationEditorSectionHelperText(), 'Select the categories to display to the students in the equation editor.');
282
+ utilities.verifyElementVisibilityState(thinkSpherePage.createCustomCategoryButton(), 'visible');
283
+ utilities.verifyInnerText(thinkSpherePage.createCustomCategoryButton(), 'Create custom category');
284
+ });
285
+
286
+ it.skip('Accessibility of selected and deselected category', { tags: 'a11y' }, () => {
287
+ cy.checkAccessibility(thinkSpherePage.equationEditorSectionCategories().contains(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`).parents('[class*="DraggableItemsGrid"]'))
288
+ });
289
+
290
+ it('When user add question image then it should replicate at customize stamps first card and it should be unselected', () => {
291
+ thinkSpherePage.steps.uploadFile('uploads/highlightImage.jpg');
292
+ cy.wait(5000);
293
+ thinkSpherePage.steps.verifyQuestionImageCustomStamp();
294
+ });
295
+ });
296
+ })
@@ -15,7 +15,7 @@ describe('Fetch Responses API', () => {
15
15
  let activityTemplateIdNew1;
16
16
  before(() => {
17
17
  cy.loginAs('admin');
18
- cy.createItem('FetchResponseTest1');
18
+ cy.createItem('FetchResponseTest12');
19
19
  cy.wait(5000)
20
20
  cy.visit(`${Cypress.env('itemEngineHomePage')}`);
21
21
  });
@@ -40,7 +40,7 @@ describe('Fetch Responses API', () => {
40
40
  .click();
41
41
  cy.get('textarea[class="body-param__text"]')
42
42
  .clear()
43
- .fill(`{\n "item_references": ["FetchResponseTest1"],\n "references": [],\n "types": [],\n "limit": 50,\n "sort_field": "created",\n "sort": "desc"\n}\n`);
43
+ .fill(`{\n "item_references": ["FetchResponseTest12"],\n "references": [],\n "types": [],\n "limit": 50,\n "sort_field": "created",\n "sort": "desc"\n}\n`);
44
44
  cy.get('.execute')
45
45
  .click();
46
46
  cy.wait(2000);
@@ -52,7 +52,7 @@ describe('Fetch Responses API', () => {
52
52
  .then((text) => {
53
53
  // Parse the JSON from the DOM
54
54
  const actualResponse = JSON.parse(text);
55
- const test1Data = actualResponse.data.FetchResponseTest1[0];
55
+ const test1Data = actualResponse.data.FetchResponseTest12[0];
56
56
  const { reference: ref1 } = test1Data;
57
57
  itemReferenceIdNew = ref1;
58
58
  });
@@ -5,7 +5,15 @@ describe('Scores API cases', () => {
5
5
  var sessionData = [{}, {}, {}];
6
6
  var timestamp;
7
7
  var dtScoreUpdateArray = [];
8
- let itemReferenceIdNew = "cd2f017-4f0-33b3-062b-ab6150047a83";
8
+
9
+ let itemReferenceIdNew;
10
+ const domainMapping = {
11
+ 'sandbox.itemengine-qa.il-apps.com': "0ee6c7-ef6e-717-4b8-cda87eaac101",
12
+ 'sandbox.itemengine-staging.il-apps.com': "a50ba14-5603-b55e-7cc-d17404ce5afb",
13
+ 'sandbox.itemengine-prod.il-apps.com': "444d582-3e4-b18f-e52c-5c8c732717"
14
+ };
15
+
16
+ itemReferenceIdNew = domainMapping[domainName] || null;
9
17
  let dt_score_update;
10
18
  let response_id;
11
19
  let dt_saved;
@@ -121,10 +129,6 @@ describe('Scores API cases', () => {
121
129
  it('If the user clicks on the Scores option from the menu bar, user should be navigated to the Scores API page', () => {
122
130
  cy.contains('Scores')
123
131
  .click();
124
- cy.contains('Scores')
125
- .parent()
126
- .parent()
127
- .should('have.class', 'Mui-selected');
128
132
  cy.url()
129
133
  .should('eq', Cypress.config().baseUrl + '/item-engine/data-api/sessions/fetch-scores');
130
134
  });
@@ -3,9 +3,9 @@ module.exports = {
3
3
  serverUrl: 'https://eyes.applitools.com',
4
4
  browser: [
5
5
  { width: 1366, height: 609, name: 'chrome' },
6
- // { width: 1280, height: 832, name: 'edgechromium' },
7
- // { width: 1536, height: 960, name: 'safari' },
8
- // { width: 1024, height: 1366, name: 'safari' }
6
+ { width: 1280, height: 832, name: 'edgechromium' },
7
+ { width: 1536, height: 960, name: 'safari' },
8
+ { width: 1024, height: 1366, name: 'safari' }
9
9
  ],
10
10
  //Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
11
11
  APPLITOOLS_IS_DISABLED: true
@@ -14,7 +14,11 @@ const constants = {
14
14
  sampleWAVLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.wav",
15
15
  sampleAACLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.aac",
16
16
  geoGebraResourceLink1: "https://www.geogebra.org/m/sajppba6",
17
- geoGebraResourceLink2: "https://www.geogebra.org/m/xmvdurzb"
17
+ geoGebraResourceLink2: "https://www.geogebra.org/m/xmvdurzb",
18
+ desmos3DGraphingLink1: "https://www.desmos.com/3d/grva75wxbu",
19
+ desmos3DGraphingLink2: "https://www.desmos.com/3d/9scw9vyjdo",
20
+ desmosGeometryLink1: "https://www.desmos.com/geometry/8bj4wiekpm",
21
+ desmosGeometryLink2: "https://www.desmos.com/geometry/trq73hwbnf",
18
22
  };
19
23
 
20
24
  export default constants;
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "color": {
3
+ "boxShadow": "rgba(82, 0, 255, 0.1)",
3
4
  "primaryBtn": "rgb(255, 255, 255)",
4
5
  "primaryBtnBg": "rgb(82, 0, 255)",
5
6
  "primaryBtnBorder": "rgb(0, 0, 124)",
@@ -20,6 +21,7 @@
20
21
  "text": "rgb(0, 0, 46)",
21
22
  "textAreaErrorBg": "rgb(255, 244, 241)",
22
23
  "errorText": "rgb(209, 51, 51)",
24
+ "desmosErrorText": "rgb(164, 93, 0)",
23
25
  "labelText": "rgba(0, 0, 48, 0.87)",
24
26
  "optionsText": "rgb(0, 0, 73)",
25
27
  "optionsSelectedText": "rgb(82, 0, 255)",
@@ -122,6 +124,7 @@
122
124
  "lightThemeBtnBorder": "rgb(94, 110, 255)",
123
125
  "geoGebraCanvasBorder": "rgb(102, 102, 102)",
124
126
  "geoGebraHttpsBg": "rgb(233, 238, 255)",
127
+ "desmosHttpsBg": "rgba(255, 251, 214, 0.4)",
125
128
  "enabledSwitchBg": "rgb(48, 160, 79)",
126
129
  "disabledSwitchBg": "rgb(0, 0, 124)",
127
130
  "gridCellHoverStateBg": "rgba(186, 201, 255, 0.6)",
@@ -155,7 +158,19 @@
155
158
  "newFontColor": "rgb(128, 25, 0)",
156
159
  "newResponseFieldColor": "rgb(119, 60, 60)",
157
160
  "blackText": "rgb(0, 0, 0)",
158
- "blackTextBoxText":"rgba(0, 0, 0, 0.38)"
161
+ "blackTextBoxText":"rgba(0, 0, 0, 0.38)",
162
+ "whiteColor": "rgba(255, 255, 255, 1)",
163
+ "phasesSectionBorderColor": "rgba(186, 201, 255, 1)",
164
+ "optionColor": "rgb(13, 71, 161)",
165
+ "borderColor": "rgb(205, 205, 206)",
166
+ "buttonHoverColor": "rgb(68, 0, 211)",
167
+ "tableRowHoverColor": "rgba(0, 0, 0, 0.04)",
168
+ "dialogBoxBoxShadow": "rgba(0, 0, 0, 0.25)",
169
+ "desktopMobileViewtoggleButtonSelectedBg": "rgb(227, 242, 253)",
170
+ "progressBarBackgroundColor": "rgba(0, 0, 46, 0.7)",
171
+ "questionInstructionBG": "rgb(235, 239, 255)",
172
+ "deletePageColor": "rgb(124, 0, 0)",
173
+ "dropdownDefaultBG": "rgb(227, 240, 237)"
159
174
  },
160
175
  "fontSize": {
161
176
  "extraSmall": "10px",
@@ -14,11 +14,11 @@ const selectors = {
14
14
  uploadAudioFileUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(0),
15
15
  uploadAudioFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(1),
16
16
  deleteAudioFileButton: () => cy.get('[aria-label="Delete"]'),
17
- sourceUrlLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(0),
18
- sourceUrlInputField: () => cy.get('input[aria-label="Source URL"]'),
17
+ sourceUrlLabel: () => cy.get('[class*="AudioPlayerFormstyles__TextFieldLabel"]').eq(0),
18
+ sourceUrlInputField: () => cy.get('[class*="AudioPlayerFormstyles__Text"] input[type="text"]'),
19
19
  uploadAudioChooseFileButton: () => cy.get('.choose-file-upload-button'),
20
20
  uploadAudioNoFileChosenLabel: () => cy.get('[aria-label="No file chosen"]').eq(0),
21
- uploadedFileNameLabel: () => cy.get('.selected-file').eq(0),
21
+ uploadedFileNameLabel: () => cy.get('[class*="AudioPlayerFormstyles__FileInputWrapper"] .selected-file-wrapper').eq(0),
22
22
  audioFileUploadProgressBar: () => cy.get('[class*="AudioPlayerstyles__ProgressBar-"]').eq(0),
23
23
  inputTypeFile: () => cy.get('input[type="file"]'),
24
24
  audioPlayerStyleLabel: () => cy.get('.player-style-label'),
@@ -28,7 +28,7 @@ const selectors = {
28
28
  standardStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="standard-toggle-button"] .ngie-toggle-button-label'),
29
29
  barStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="bar-toggle-button"] .ngie-toggle-button-label'),
30
30
  compactStyleToggleButtonLabel: () => cy.get('[data-ngie-testid="compact-toggle-button"] .ngie-toggle-button-label'),
31
- compactPlayerOptionsLabel: () => cy.get('.options-label'),
31
+ compactPlayerOptionsLabel: () => cy.get('.compact-player-wrapper .options-label'),
32
32
  defaultPlayerOptionButton: () => cy.get('[data-ngie-testid="default-toggle-button"]'),
33
33
  textPlayerOptionButton: () => cy.get('[data-ngie-testid="text-toggle-button"]'),
34
34
  imagePlayerOptionButton: () => cy.get('[data-ngie-testid="image-toggle-button"]'),
@@ -45,28 +45,28 @@ const selectors = {
45
45
  customizePlayerLayoutProgressIndicatorButton: () => cy.get('[data-ngie-testid="progressbar-toggle-button"]'),
46
46
  customizePlayerLayoutToggleButtonLabel: () => cy.get('[class*="ToggleButtonMUI5style__ButtonLabelWrapper"]'),
47
47
  uncheckAllButton: () => cy.get('[class*="AudioPlayerstyles__UncheckButton"]'),
48
- uploadTranscriptFileLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(2),
49
- uploadTranscriptFileRadioButton: () => cy.get('.ngie-radio-btn input').eq(2),
50
- typeInTranscriptLabel: () => cy.get('[class*="RadioGroupMUI5styles__RadioOptionContainer"] .ngie-radio-label').eq(3),
51
- typeInTranscriptRadioButton: () => cy.get('.ngie-radio-btn input').eq(3),
52
- transcriptInputField: () => cy.get('[role="textbox"][title="Transcript"]'),
53
- allowStudentsToDownloadAudioLabel: () => cy.get('[data-ngie-testid="allow-students-to-download-the-audio-checkbox"] .MuiFormControlLabel-label'),
54
- allowStudentsToDownloadAudioCheckbox: () => cy.get('[data-ngie-testid="allow-students-to-download-the-audio-checkbox"] input'),
55
- limitPlayAttemptsLabel: () => cy.get('[data-ngie-testid="limit-play-attempts-checkbox"] .MuiFormControlLabel-label'),
56
- limitPlayAttemptsCheckbox: () => cy.get('[data-ngie-testid="limit-play-attempts-checkbox"] input'),
48
+ uploadTranscriptFileLabel: () => cy.get('.upload-transcript-opt-label'),
49
+ uploadTranscriptFileRadioButton: () => cy.get('.upload-transcript-opt-label input'),
50
+ typeInTranscriptLabel: () => cy.get('.type-in-transcript-opt-label'),
51
+ typeInTranscriptRadioButton: () => cy.get('[aria-label="Type in transcript"][type="radio"]'),
52
+ transcriptInputField: () => cy.get('[title="Transcript"]'),
53
+ allowStudentsToDownloadAudioLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(0),
54
+ allowStudentsToDownloadAudioCheckbox: () => cy.get('.allow-students-to-download-audio input'),
55
+ limitPlayAttemptsLabel: () => cy.get('.allow-students-to-download-audio .MuiFormControlLabel-label').eq(1),
56
+ limitPlayAttemptsCheckbox: () => cy.get('.allow-students-to-download-audio input').eq(1),
57
57
  playAttemptsLimitLabel: () => cy.get('.playback-limit-wrapper [class*="Label"]'),
58
- playAttemptsLimitInputField: () => cy.get('.playback-limit-wrapper input'),
58
+ playAttemptsLimitInputField: () => cy.get('.freeResponseAudioFormTextInput input'),
59
59
  studentViewSettingsLabel: () => cy.get('[class*="AudioPlayerstyles__TranscriptLabelWrapper"]').eq(0),
60
60
  audioOverviewLabel: () => cy.get('.additional-settings-label'),
61
61
  audioOverviewInputField: () => cy.get('[title="Description"]'),
62
- transcriptLabel: () => cy.get('.audio-resource-label-wrapper').eq(1),
62
+ transcriptLabel: () => cy.get('.freeResponseAudioFormTextInput .transcript-label'),
63
63
  uploadTranscriptUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(2),
64
64
  uploadTranscriptFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(3),
65
65
  uploadTranscriptChooseFileButton: () => cy.get('.upload-audio-file-input-wrapper button').eq(1),
66
66
  uploadTranscriptNoFileChosenLabel: () => cy.get('[aria-label="No file chosen"]').eq(1),
67
- transcriptInputTypeFile: () => cy.get('input[type="file"]').eq(1),
68
- uploadedTranscriptFileNameLabel: () => cy.get('.selected-file').eq(1),
69
- transcriptFileUploadProgressBar: () => cy.get('[class*="AudioPlayerstyles__ProgressBar-"]').eq(1),
67
+ transcriptInputTypeFile: () => cy.get('.upload-transcript-file input[type="file"]'),
68
+ uploadedTranscriptFileNameLabel: () => cy.get('.upload-transcript-file .selected-file-wrapper'),
69
+ transcriptFileUploadProgressBar: () => cy.get('.audio-player-form-progressbar'),
70
70
  transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
71
71
  deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
72
72
 
@@ -788,14 +788,14 @@ const steps = {
788
788
  audioPlayerPage.audioOverviewInputField()
789
789
  .find('[data-widget="ngie_equation"]')
790
790
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
791
- // .contains(constants.CKEditorInputFieldEnteredEquationText);
791
+ // .contains(constants.CKEditorInputFieldEnteredEquationText);
792
792
  },
793
793
 
794
794
  verifyEquationInAudioOverviewPreviewTab: () => {
795
795
  audioPlayerPage.audioOverviewPreviewTab()
796
796
  .find('[role="math"]')
797
797
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
798
- // .contains(constants.CKEditorInputFieldEnteredEquationText);
798
+ // .contains(constants.CKEditorInputFieldEnteredEquationText);
799
799
  },
800
800
 
801
801
  verifyLinkInAudioOverviewInputField: () => {
@@ -896,14 +896,14 @@ const steps = {
896
896
  audioPlayerPage.transcriptInputField()
897
897
  .find('[data-widget="ngie_equation"]')
898
898
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
899
- // .contains(constants.CKEditorInputFieldEnteredEquationText);
899
+ // .contains(constants.CKEditorInputFieldEnteredEquationText);
900
900
  },
901
901
 
902
902
  verifyEquationInTranscriptPreviewTab: () => {
903
903
  audioPlayerPage.transcriptContentPreviewTab()
904
904
  .find('[role="math"]')
905
905
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
906
- // .contains(constants.CKEditorInputFieldEnteredEquationText);
906
+ // .contains(constants.CKEditorInputFieldEnteredEquationText);
907
907
  },
908
908
 
909
909
  verifyLinkInTranscriptInputField: () => {
@@ -20,7 +20,7 @@ const selectors = {
20
20
  selectAManipulativeLabel: () => cy.get('[class*="SelectManipulativeWrapper"] [class*="BrainingcampManipulativestyle__WrapperSubHeader"]'),
21
21
  enterAShareCodeLabel: () => cy.get('[class*="EnterShareCodeWrapper"] [class*="BrainingcampManipulativestyle__WrapperSubHeader"]'),
22
22
  enterAShareCodeInputField: () => cy.get('[class*="EnterShareCodeWrapper"] input'),
23
- previewTabCanvas: () => cy.get('.canvas'),
23
+ previewTabCanvas: () => cy.get('.bcm-inner'),
24
24
  }
25
25
 
26
26
  const steps = {
@@ -23,8 +23,8 @@ const selectors = {
23
23
  return cy.get('[aria-labelledby*="Font-Size-dropdown-label"] [role="option"]')
24
24
  }
25
25
  },
26
- fontSizeListOptionLabels: () => cy.get('[aria-labelledby="Font-Size-dropdown-label Font-Size-placeholder"] li[role="option"] .dropdown-label-text'),
27
- fontSizesLabels: () => cy.get('[aria-labelledby="Font-Size-dropdown-label Font-Size-placeholder"] li[role="option"] .dropdown-post-label-text'),
26
+ fontSizeListOptionLabels: () => cy.get('[aria-labelledby*="Font-Size-dropdown-label"] li[role="option"] .dropdown-label-text'),
27
+ fontSizesLabels: () => cy.get('[aria-labelledby*="Font-Size-dropdown-label"] li[role="option"] .dropdown-post-label-text'),
28
28
  }
29
29
 
30
30
  const steps = {
@@ -69,6 +69,7 @@ const steps = {
69
69
 
70
70
  expandFontSizeDropdown: () => {
71
71
  additionalSettingsPanel.fontSizeDropdown()
72
+ .trigger('mouseover')
72
73
  .click();
73
74
  }
74
75
  }
@@ -149,6 +149,12 @@ const steps = {
149
149
  checkManuallyScoredScoringLabel: () => {
150
150
  autoScoredScoringPreviewTab.scoringTypeLabelPreviewTab()
151
151
  .should('have.text', 'Manually scored');
152
+ },
153
+
154
+ checkNonScoredScoringLabel: () => {
155
+ //Need to update once https://weldnorthed.atlassian.net/browse/IEI-5618 is resolved
156
+ autoScoredScoringPreviewTab.scoringTypeLabelPreviewTab()
157
+ .contains('Non scored', { matchCase: false });
152
158
  }
153
159
  }
154
160
 
@@ -161,7 +167,7 @@ const tests = {
161
167
  .should('be.checked');
162
168
  autoScoredScoringPreviewTab.gradingViewRadioButton()
163
169
  .should('not.be.checked');
164
- autoScoredScoringPreviewTab.steps.verifyPreviewScore(0, 0);
170
+ autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
165
171
  autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
166
172
  });
167
173
 
@@ -76,6 +76,7 @@ const steps = {
76
76
 
77
77
  expandPenaltyScoringDropdown: () => {
78
78
  autoScoredScoringSectionMultiResponseType.penaltyScoringDropdown()
79
+ .trigger('mouseover')
79
80
  .click();
80
81
  cy.wait(500);
81
82
  utilities.verifyElementVisibilityState(autoScoredScoringSectionMultiResponseType.penaltyScoringDropdownListOptions(), 'visible');
@@ -147,6 +148,7 @@ const steps = {
147
148
 
148
149
  expandRoundingDropdown: () => {
149
150
  autoScoredScoringSectionMultiResponseType.roundingDropdown()
151
+ .trigger('mouseover')
150
152
  .click();
151
153
  },
152
154