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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
  4. package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
  5. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
  6. package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  12. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  13. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
  14. package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
  20. package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
  21. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
  22. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
  23. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
  24. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
  25. package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
  29. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
  30. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
  31. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
  32. package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
  33. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
  34. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
  35. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
  36. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
  37. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
  38. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
  39. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
  40. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
  41. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
  42. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
  43. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
  44. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  45. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -0
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +1 -1
  64. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
  65. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
  66. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
  67. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
  68. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
  69. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
  70. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
  71. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
  72. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
  73. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
  74. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
  75. package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
  76. package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
  77. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
  78. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
  79. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
  80. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
  81. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
  82. package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
  83. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
  84. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  85. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
  86. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
  87. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
  88. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
  89. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
  90. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
  91. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
  92. package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
  93. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
  94. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
  95. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
  96. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
  97. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
  98. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  99. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  100. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
  101. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
  102. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
  103. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
  104. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  105. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
  106. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
  107. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
  108. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
  109. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
  110. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
  111. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
  112. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
  113. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
  114. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
  115. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
  116. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
  117. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
  118. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
  119. package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
  120. package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
  121. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
  122. package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
  123. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
  124. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
  125. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
  126. package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  127. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
  128. package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
  129. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  130. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
  131. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
  132. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
  133. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
  134. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
  135. package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
  136. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
  137. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
  138. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
  139. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
  140. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
  141. package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
  142. package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
  143. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
  144. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
  145. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
  146. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
  147. package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
  148. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
  149. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
  150. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
  151. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
  152. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
  153. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
  154. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
  155. package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
  156. package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
  157. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
  158. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
  159. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
  160. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
  161. package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
  162. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +84 -0
  163. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +84 -0
  164. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  165. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -1
  166. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +2 -2
  167. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  168. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -3
  169. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +62 -0
  170. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +62 -0
  171. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
  172. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -4
  173. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
  174. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
  175. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
  176. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
  177. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
  178. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
  179. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
  180. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
  181. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +8 -6
  182. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  183. package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
  184. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
  185. package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
  186. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
  187. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
  188. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
  189. package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
  190. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
  191. package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
  192. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
  193. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
  194. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
  195. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  196. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
  197. package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
  198. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
  199. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
  200. package/cypress/e2e/Sessions/fetchResponses.js +3 -3
  201. package/cypress/e2e/Sessions/scores.js +9 -5
  202. package/cypress/e2e/applitools.config.js +3 -3
  203. package/cypress/fixtures/theme/ilc.json +14 -1
  204. package/cypress/fixtures/uploads/sample.webm +0 -0
  205. package/cypress/fixtures/uploads/sample.wmv +0 -0
  206. package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
  207. package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
  208. package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
  209. package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
  210. package/cypress/pages/audioPlayerPage.js +22 -22
  211. package/cypress/pages/chartsBarPage.js +20 -0
  212. package/cypress/pages/components/additionalSettingsPanel.js +3 -2
  213. package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
  214. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
  215. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
  216. package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
  217. package/cypress/pages/components/browseItemsPage.js +998 -7
  218. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
  219. package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
  220. package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
  221. package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
  222. package/cypress/pages/components/commonComponents.js +8 -1
  223. package/cypress/pages/components/createQuestionBasePage.js +8 -1
  224. package/cypress/pages/components/defaultToolDropdown.js +7 -6
  225. package/cypress/pages/components/editCategoryFlyout.js +2 -2
  226. package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
  227. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
  228. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -35
  229. package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
  230. package/cypress/pages/components/imageCanvasComponent.js +7 -6
  231. package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
  232. package/cypress/pages/components/questionInstructionsComponent.js +7 -0
  233. package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -4
  234. package/cypress/pages/desmos3DGraphingPage.js +149 -4
  235. package/cypress/pages/desmosGeometryPage.js +184 -4
  236. package/cypress/pages/dialogBoxBase.js +2 -1
  237. package/cypress/pages/drawingResponsePage.js +16 -15
  238. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
  239. package/cypress/pages/gradingViewPage.js +8 -0
  240. package/cypress/pages/graphingPage.js +27 -8
  241. package/cypress/pages/gridFillPage.js +15 -6
  242. package/cypress/pages/index.js +2 -1
  243. package/cypress/pages/listOrderingPage.js +32 -1
  244. package/cypress/pages/matchingPage.js +26 -7
  245. package/cypress/pages/multipleSelectionPage.js +10 -39
  246. package/cypress/pages/numberLineLabelPage.js +31 -8
  247. package/cypress/pages/numberLinePage.js +19 -7
  248. package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
  249. package/cypress/pages/singleSelectionPage.js +0 -37
  250. package/cypress/pages/textEntryMathPage.js +21 -0
  251. package/cypress/pages/thinkSpherePage.js +1874 -0
  252. package/cypress/pages/uploadResponsePage.js +2 -1
  253. package/cypress/pages/videoResponsePage.js +3 -0
  254. package/cypress/support/commands.js +7 -4
  255. package/cypress/support/e2e.js +1 -0
  256. package/cypress/support/helpers/createItem.js +1181 -1
  257. package/cypress/support/helpers/utilities.js +75 -1
  258. package/package.json +4 -4
  259. package/scripts/dataApi.mjs +3 -0
  260. package/scripts/sorry-cypress.mjs +13 -0
@@ -435,4 +435,1184 @@ Cypress.Commands.add('deleteItems', () => {
435
435
  itemReferenceIds.forEach((i) => {
436
436
  cy.deleteItem(i);
437
437
  });
438
- });
438
+ });
439
+
440
+ Cypress.Commands.add('createThinkSphereItem', (itemName) => {
441
+ const token = window.localStorage.getItem('ngie_accessToken');
442
+ const firstName = window.localStorage.getItem('ngie_firstName');
443
+ const lastName = window.localStorage.getItem('ngie_lastName');
444
+ const userID = window.localStorage.getItem('ngie_userId');
445
+ var currentReferenceIds = [];
446
+ for (var i = 0; i < 1; i++) {
447
+ currentReferenceIds.push(uuid());
448
+ };
449
+ cy.log(currentReferenceIds)
450
+
451
+ cy.request({
452
+ headers: {
453
+ Authorization: `${token}`,
454
+ 'content-type': 'application/json',
455
+ },
456
+ method: 'POST',
457
+ url: `${Cypress.env('SANDBOX_GRAPHQL_SERVICES_URL')}/`,
458
+ body: [
459
+ {
460
+ "operationName": "generateSignedRequest",
461
+ "variables": {
462
+ "input": {
463
+ "service": "author",
464
+ "type": "item",
465
+ "userId": userID,
466
+ "requestPacket": {
467
+ "mode": "thinkSphereEdit",
468
+ "config": {
469
+ "itemEdit": {
470
+ "item": {
471
+ "back": false,
472
+ "save": {
473
+ "show": false,
474
+ "autoSave": true
475
+ },
476
+ "reference": {
477
+ "edit": true,
478
+ "show": false
479
+ },
480
+ "duplicate": {
481
+ "show": false
482
+ },
483
+ "responseMode": "all",
484
+ "title": {
485
+ "edit": true,
486
+ "show": true
487
+ },
488
+ "settings": {
489
+ "show": false,
490
+ "showPrintPreview": false,
491
+ "showScoring": false,
492
+ "showTags": false
493
+ }
494
+ },
495
+ "reviewItem": {
496
+ "back": true,
497
+ "duplicate": {
498
+ "show": false
499
+ },
500
+ "mode": {
501
+ "default": "preview",
502
+ "show": false
503
+ },
504
+ "reference": {
505
+ "show": false,
506
+ "edit": false
507
+ },
508
+ "title": {
509
+ "show": true,
510
+ "edit": true
511
+ },
512
+ "save": {
513
+ "show": true
514
+ },
515
+ "allowedItems": null,
516
+ "responseMode": "all"
517
+ },
518
+ "widget": {
519
+ "showPreviewRadioButtonsAndScore": true
520
+ }
521
+ },
522
+ "loaderType": "full-screen",
523
+ "isCustomLoader": true,
524
+ "customLoaderId": "globalLoader",
525
+ "isThinkSphereItem": true,
526
+ "theme": "theme1"
527
+ },
528
+ "user": {
529
+ "firstName": firstName,
530
+ "lastName": lastName,
531
+ "id": userID
532
+ },
533
+ "systemGeneratedItems": {
534
+ "referenceIds": [""]
535
+ }
536
+ },
537
+ "domain": domainName
538
+ }
539
+ },
540
+ "query": "query generateSignedRequest($input: GenerateSignedRequest) {\n generateSignedRequest(input: $input) {\n success\n signedRequest {\n authentication {\n timestamp\n domain\n consumerKey\n signature\n userId\n __typename\n }\n request\n __typename\n }\n __typename\n }\n}\n"
541
+ }
542
+ ]
543
+ }).then((resp) => {
544
+ if (resp.status.toString().startsWith('5') && retries > 0) {
545
+ cy.log('ENCOUNTERED A 5xx ERROR');
546
+ }
547
+
548
+ const request = resp.body[0].data.generateSignedRequest.signedRequest.request;
549
+ const authentication = resp.body[0].data.generateSignedRequest.signedRequest.authentication;
550
+ delete authentication.userId;
551
+ delete authentication.__typename;
552
+ delete request.__typename;
553
+ cy.request({
554
+ headers: {
555
+ Authorization: `${token}`,
556
+ 'content-type': 'application/json',
557
+ Origin: `${Cypress.env('SANDBOX_SERVICES_URL')}`
558
+ },
559
+ method: 'POST',
560
+ url: `${Cypress.env('SERVICES_URL')}${Cypress.env('GRAPHQL_URL')}/`,
561
+ body: {
562
+ "operationName": "setItem",
563
+ "variables": {
564
+ "input": {
565
+ "authentication": authentication,
566
+ "request": request,
567
+ "service": "author",
568
+ "userRequest": {
569
+ "referenceId": itemName,
570
+ "isNewVersion": false,
571
+ "isThinkSphereItem": true,
572
+ "metadata": [],
573
+ "questions": [
574
+ {
575
+ "serialNo": 1,
576
+ "referenceId": currentReferenceIds[0],
577
+ "correctResponse": [],
578
+ "instruction": "",
579
+ "isAutoScored": false,
580
+ "mappedCorrectResponse": [],
581
+ "defaultResponse": [],
582
+ "points": 0,
583
+ "scoringTypeId": 4,
584
+ "questionXml": "<assessmentItem xmlns=\"http://www.imsglobal.org/xsd/imsqti_v2p2\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2p2.xsd\" identifier=\"thinkSphere\" title=\"Think Sphere Question\" timeDependent=\"false\"><responseDeclaration identifier=\"RESPONSE\" cardinality=\"single\" baseType=\"file\"/><outcomeDeclaration identifier=\"SCORE\" cardinality=\"single\" baseType=\"float\"/><itemBody><drawingInteraction responseIdentifier=\"RESPONSE\" height=\"3\" width=\"4\"><prompt><p>question instruction text</p>\n</prompt></drawingInteraction></itemBody></assessmentItem>",
585
+ "typeId": 54,
586
+ "metadata": {
587
+ "acknowledgements": "",
588
+ "sampleAnswer": "",
589
+ "toolSettingsResourcesOrder": [
590
+ {
591
+ "resourceTypeId": 2,
592
+ "toolOrder": 3
593
+ },
594
+ {
595
+ "resourceTypeId": 3,
596
+ "toolOrder": 0
597
+ },
598
+ {
599
+ "resourceTypeId": 6,
600
+ "toolOrder": 2
601
+ },
602
+ {
603
+ "resourceTypeId": 7,
604
+ "toolOrder": 1
605
+ },
606
+ {
607
+ "resourceTypeId": 10,
608
+ "toolOrder": 4
609
+ },
610
+ {
611
+ "resourceTypeId": 21,
612
+ "toolOrder": 5
613
+ }
614
+ ]
615
+ },
616
+ "settings": {
617
+ "nonAccessible": false,
618
+ "fontSize": 1,
619
+ "canvasControls": [
620
+ {
621
+ "label": "Move",
622
+ "icon": "Bold",
623
+ "text": "Move",
624
+ "identifier": "move",
625
+ "value": "move",
626
+ "selected": true
627
+ },
628
+ {
629
+ "label": "Delete",
630
+ "icon": "Bold",
631
+ "text": "Delete",
632
+ "identifier": "delete",
633
+ "value": "delete",
634
+ "selected": true
635
+ },
636
+ {
637
+ "label": "Undo",
638
+ "icon": "Bold",
639
+ "text": "Undo",
640
+ "identifier": "undo",
641
+ "value": "undo",
642
+ "selected": true
643
+ },
644
+ {
645
+ "label": "Redo",
646
+ "icon": "Bold",
647
+ "text": "Redo",
648
+ "identifier": "redo",
649
+ "value": "redo",
650
+ "selected": true
651
+ },
652
+ {
653
+ "label": "Clear all",
654
+ "icon": "Bold",
655
+ "text": "Clear all",
656
+ "identifier": "clearAll",
657
+ "value": "clearAll",
658
+ "selected": true
659
+ }
660
+ ],
661
+ "canvasTools": [
662
+ {
663
+ "label": "Text",
664
+ "icon": "Bold",
665
+ "text": "Text",
666
+ "identifier": "text",
667
+ "value": "text",
668
+ "selected": true
669
+ },
670
+ {
671
+ "label": "Pen",
672
+ "icon": "Bold",
673
+ "text": "Pen",
674
+ "identifier": "pen",
675
+ "value": "pen",
676
+ "selected": true
677
+ },
678
+ {
679
+ "label": "Highlighter",
680
+ "icon": "Bold",
681
+ "text": "Highlighter",
682
+ "identifier": "highlighter",
683
+ "value": "highlighter",
684
+ "selected": true
685
+ },
686
+ {
687
+ "label": "Image",
688
+ "icon": "Bold",
689
+ "text": "Image",
690
+ "identifier": "image",
691
+ "value": "image",
692
+ "selected": true
693
+ },
694
+ {
695
+ "label": "Shapes",
696
+ "icon": "Bold",
697
+ "text": "Shapes",
698
+ "identifier": "shapes",
699
+ "value": "shapes",
700
+ "selected": true
701
+ },
702
+ {
703
+ "label": "Stamps",
704
+ "icon": "Bold",
705
+ "text": "Stamps",
706
+ "identifier": "stamps",
707
+ "value": "stamps",
708
+ "selected": true
709
+ },
710
+ {
711
+ "label": "Number bond",
712
+ "icon": "Bold",
713
+ "text": "Number bond",
714
+ "identifier": "numberBond",
715
+ "value": "numberBond",
716
+ "selected": false
717
+ },
718
+ {
719
+ "label": "Unifix Cube",
720
+ "icon": "Bold",
721
+ "text": "Unifix Cube",
722
+ "identifier": "unifixCube",
723
+ "value": "unifixCube",
724
+ "selected": false
725
+ },
726
+ {
727
+ "label": "Diagrams",
728
+ "icon": "Bold",
729
+ "text": "Diagrams",
730
+ "identifier": "diagrams",
731
+ "value": "diagrams",
732
+ "selected": false
733
+ },
734
+ {
735
+ "label": "Array",
736
+ "icon": "Bold",
737
+ "text": "Array",
738
+ "identifier": "array",
739
+ "value": "array",
740
+ "selected": false
741
+ },
742
+ {
743
+ "label": "Number line",
744
+ "icon": "Bold",
745
+ "text": "Number line",
746
+ "identifier": "numberLine",
747
+ "value": "numberLine",
748
+ "selected": false
749
+ },
750
+ {
751
+ "label": "Fraction bars",
752
+ "icon": "Bold",
753
+ "text": "Fraction bars",
754
+ "identifier": "fractionBars",
755
+ "value": "fractionBars",
756
+ "selected": false
757
+ },
758
+ {
759
+ "label": "Protractor",
760
+ "icon": "Bold",
761
+ "text": "Protractor",
762
+ "identifier": "protractor",
763
+ "value": "protractor",
764
+ "selected": false
765
+ },
766
+ {
767
+ "label": "Table",
768
+ "icon": "Bold",
769
+ "text": "Table",
770
+ "identifier": "table",
771
+ "value": "table",
772
+ "selected": false
773
+ },
774
+ {
775
+ "label": "Grids",
776
+ "icon": "Bold",
777
+ "text": "Grids",
778
+ "identifier": "grids",
779
+ "value": "grids",
780
+ "selected": false
781
+ },
782
+ {
783
+ "label": "Equation editor",
784
+ "icon": "Bold",
785
+ "text": "Equation editor",
786
+ "identifier": "equationEditor",
787
+ "value": "equationEditor",
788
+ "selected": false
789
+ },
790
+ {
791
+ "label": "Algebra tiles",
792
+ "icon": "Bold",
793
+ "text": "Algebra tiles",
794
+ "identifier": "algebraTiles",
795
+ "value": "algebraTiles",
796
+ "selected": false
797
+ }
798
+ ],
799
+ "defaultCanvasTool": "pen",
800
+ "sentenceFrames": [
801
+ {
802
+ "text": "The strategy I’m going to use is",
803
+ "selected": true,
804
+ "id": "1"
805
+ },
806
+ {
807
+ "text": "First, I will",
808
+ "selected": true,
809
+ "id": "2"
810
+ },
811
+ {
812
+ "text": "Secondly, I will",
813
+ "selected": true,
814
+ "id": "3"
815
+ },
816
+ {
817
+ "text": "I will check my work by",
818
+ "selected": true,
819
+ "id": "4"
820
+ },
821
+ {
822
+ "text": "If my strategy is not working, I will",
823
+ "selected": true,
824
+ "id": "5"
825
+ }
826
+ ],
827
+ "strategies": [
828
+ {
829
+ "text": "Create a model",
830
+ "selected": true,
831
+ "videoData": {
832
+ "fileName": "",
833
+ "size": "",
834
+ "type": "",
835
+ "uploadUrl": "",
836
+ "fileKey": "",
837
+ "originalName": "",
838
+ "description": "",
839
+ "mediaCredits": "",
840
+ "error": false
841
+ },
842
+ "id": "1"
843
+ },
844
+ {
845
+ "text": "Look for a pattern",
846
+ "selected": true,
847
+ "videoData": {
848
+ "fileName": "",
849
+ "size": "",
850
+ "type": "",
851
+ "uploadUrl": "",
852
+ "fileKey": "",
853
+ "originalName": "",
854
+ "description": "",
855
+ "mediaCredits": "",
856
+ "error": false
857
+ },
858
+ "id": "2"
859
+ },
860
+ {
861
+ "text": "Guess, check, and revise",
862
+ "selected": true,
863
+ "videoData": {
864
+ "fileName": "",
865
+ "size": "",
866
+ "type": "",
867
+ "uploadUrl": "",
868
+ "fileKey": "",
869
+ "originalName": "",
870
+ "description": "",
871
+ "mediaCredits": "",
872
+ "error": false
873
+ },
874
+ "id": "3"
875
+ },
876
+ {
877
+ "text": "Try with friendlier numbers",
878
+ "selected": true,
879
+ "videoData": {
880
+ "fileName": "",
881
+ "size": "",
882
+ "type": "",
883
+ "uploadUrl": "",
884
+ "fileKey": "",
885
+ "originalName": "",
886
+ "description": "",
887
+ "mediaCredits": "",
888
+ "error": false
889
+ },
890
+ "id": "4"
891
+ },
892
+ {
893
+ "text": "Show with an equation",
894
+ "selected": true,
895
+ "videoData": {
896
+ "fileName": "",
897
+ "size": "",
898
+ "type": "",
899
+ "uploadUrl": "",
900
+ "fileKey": "",
901
+ "originalName": "",
902
+ "description": "",
903
+ "mediaCredits": "",
904
+ "error": false
905
+ },
906
+ "id": "5"
907
+ }
908
+ ],
909
+ "backgroundImg": {
910
+ "type": "",
911
+ "uploadUrl": "",
912
+ "width": "",
913
+ "height": "",
914
+ "name": "",
915
+ "originalName": ""
916
+ },
917
+ "whiteboardPages": [
918
+ {
919
+ "isImage": false,
920
+ "backgroundImg": {
921
+ "url": "",
922
+ "fileName": "",
923
+ "imageOpacity": 100,
924
+ "imageAlignment": "center",
925
+ "imageAltText": ""
926
+ }
927
+ }
928
+ ],
929
+ "equationEditorToolGroups": [
930
+ {
931
+ "label": "Numpad",
932
+ "key": "numpadSymbols",
933
+ "isSelected": true,
934
+ "selectedButtons": [
935
+ "one",
936
+ "two",
937
+ "three",
938
+ "four",
939
+ "five",
940
+ "six",
941
+ "seven",
942
+ "eight",
943
+ "nine",
944
+ "zero",
945
+ "decimal",
946
+ "comma",
947
+ "plus",
948
+ "minus",
949
+ "multiply",
950
+ "division",
951
+ "equalTo",
952
+ "moveLeft",
953
+ "moveRight",
954
+ "clear",
955
+ "clearAll",
956
+ "questionMark"
957
+ ]
958
+ },
959
+ {
960
+ "label": "Keypad",
961
+ "key": "keypadSymbols",
962
+ "isSelected": true,
963
+ "selectedButtons": [
964
+ "q",
965
+ "w",
966
+ "e",
967
+ "r",
968
+ "t",
969
+ "y",
970
+ "u",
971
+ "i",
972
+ "o",
973
+ "p",
974
+ "a",
975
+ "s",
976
+ "d",
977
+ "f",
978
+ "g",
979
+ "h",
980
+ "j",
981
+ "k",
982
+ "l",
983
+ "caps",
984
+ "z",
985
+ "x",
986
+ "c",
987
+ "v",
988
+ "b",
989
+ "n",
990
+ "m",
991
+ "moveUp",
992
+ "clear",
993
+ "comma",
994
+ "decimal",
995
+ "space",
996
+ "explanationMark",
997
+ "questionMark",
998
+ "moveLeft",
999
+ "moveDown",
1000
+ "moveRight"
1001
+ ]
1002
+ },
1003
+ {
1004
+ "label": "Intermediate",
1005
+ "key": "intermediate",
1006
+ "isSelected": true,
1007
+ "selectedButtons": [
1008
+ "superscript",
1009
+ "subscript",
1010
+ "square",
1011
+ "fraction",
1012
+ "mixedfraction",
1013
+ "sqrt",
1014
+ "cubeRoot",
1015
+ "lessThan",
1016
+ "greaterThan",
1017
+ "lessThanEqual",
1018
+ "greaterThanEqual",
1019
+ "percentage",
1020
+ "dollar",
1021
+ "degree",
1022
+ "colonration",
1023
+ "absolutevalue",
1024
+ "pi",
1025
+ "groupinparathesis",
1026
+ "x",
1027
+ "y",
1028
+ "dotMultiplier"
1029
+ ]
1030
+ },
1031
+ {
1032
+ "label": "Primary",
1033
+ "key": "primary",
1034
+ "isSelected": true,
1035
+ "selectedButtons": [
1036
+ "fraction",
1037
+ "mixedfraction",
1038
+ "lessThan",
1039
+ "greaterThan",
1040
+ "questionMark",
1041
+ "dollar",
1042
+ "cents",
1043
+ "degree",
1044
+ "colonration",
1045
+ "groupinparathesis",
1046
+ "superscript",
1047
+ "subscript"
1048
+ ]
1049
+ },
1050
+ {
1051
+ "label": "General",
1052
+ "key": "general",
1053
+ "isSelected": true,
1054
+ "selectedButtons": [
1055
+ "questionMark",
1056
+ "dollar",
1057
+ "cents",
1058
+ "colonration"
1059
+ ]
1060
+ },
1061
+ {
1062
+ "label": "Common",
1063
+ "key": "common",
1064
+ "isSelected": true,
1065
+ "selectedButtons": [
1066
+ "x",
1067
+ "y",
1068
+ "square",
1069
+ "superscript",
1070
+ "subscript",
1071
+ "plusminus",
1072
+ "fraction",
1073
+ "mixedfraction",
1074
+ "sqrt",
1075
+ "cubeRoot",
1076
+ "nsqrt",
1077
+ "lessThan",
1078
+ "greaterThan",
1079
+ "muchLessThan",
1080
+ "muchGreaterThan",
1081
+ "percentage",
1082
+ "absolutevalue",
1083
+ "therefore",
1084
+ "infinity",
1085
+ "colonration"
1086
+ ]
1087
+ },
1088
+ {
1089
+ "label": "Algebra",
1090
+ "key": "algebra",
1091
+ "isSelected": true,
1092
+ "selectedButtons": [
1093
+ "x",
1094
+ "y",
1095
+ "sqrt",
1096
+ "fraction",
1097
+ "mixedfraction",
1098
+ "superscript",
1099
+ "subscript",
1100
+ "nsqrt",
1101
+ "plusminus",
1102
+ "absolutevalue",
1103
+ "pi",
1104
+ "infinity",
1105
+ "lessThan",
1106
+ "greaterThan",
1107
+ "lessThanEqual",
1108
+ "greaterThanEqual",
1109
+ "approxEqualTo",
1110
+ "notEqualTo",
1111
+ "groupinparathesis",
1112
+ "groupinbrackets"
1113
+ ]
1114
+ },
1115
+ {
1116
+ "label": "Geo",
1117
+ "key": "geo",
1118
+ "isSelected": true,
1119
+ "selectedButtons": [
1120
+ "squareShape",
1121
+ "bigCircle",
1122
+ "bigTriangleUp",
1123
+ "parallelogram",
1124
+ "parallelTo",
1125
+ "notParallel",
1126
+ "perpendicularTo",
1127
+ "similarTo",
1128
+ "congruentTo",
1129
+ "angle",
1130
+ "measureOfAngle",
1131
+ "arc",
1132
+ "underSim",
1133
+ "topLeftArrow",
1134
+ "topRightArrow",
1135
+ "topDoubleSidedArrow",
1136
+ "prime",
1137
+ "doublePrime",
1138
+ "degree",
1139
+ "pi",
1140
+ "superscript",
1141
+ "topLineSegment",
1142
+ "recurringDecimal"
1143
+ ]
1144
+ },
1145
+ {
1146
+ "label": "Compare",
1147
+ "key": "compare",
1148
+ "isSelected": true,
1149
+ "selectedButtons": [
1150
+ "lessThan",
1151
+ "greaterThan",
1152
+ "lessThanEqual",
1153
+ "greaterThanEqual",
1154
+ "approxEqualTo",
1155
+ "notEqualTo",
1156
+ "notLessThan",
1157
+ "notGreaterThan",
1158
+ "muchLessThan",
1159
+ "muchGreaterThan",
1160
+ "propto",
1161
+ "similarTo",
1162
+ "similarEqual",
1163
+ "notSimilarTo"
1164
+ ]
1165
+ },
1166
+ {
1167
+ "label": "Matrices",
1168
+ "key": "matrix",
1169
+ "isSelected": true,
1170
+ "selectedButtons": [
1171
+ "insertRowInMatrix",
1172
+ "insertColumnInMatrix",
1173
+ "twoByTwoMatrixBoundedBrackets",
1174
+ "threeByThreeMatrixBoundedBrackets",
1175
+ "dotsBottom",
1176
+ "matrix",
1177
+ "diagonalDots",
1178
+ "verticalDots",
1179
+ "superscript",
1180
+ "subscript",
1181
+ "factorial",
1182
+ "dotMultiplier",
1183
+ "matrixBoundedBraces",
1184
+ "matrixBoundedVerticalLines",
1185
+ "matrixBoundedDoubleVerticalLines"
1186
+ ]
1187
+ },
1188
+ {
1189
+ "label": "Set notation",
1190
+ "key": "setNotation",
1191
+ "isSelected": false,
1192
+ "selectedButtons": [
1193
+ "memberOf",
1194
+ "notMemberOf",
1195
+ "contains",
1196
+ "notContain",
1197
+ "subset",
1198
+ "superset",
1199
+ "subsetEq",
1200
+ "supersetEq",
1201
+ "notSubset",
1202
+ "notSuperset",
1203
+ "emptySet",
1204
+ "union",
1205
+ "intersection",
1206
+ "factorial",
1207
+ "comma",
1208
+ "colonration",
1209
+ "backSlash",
1210
+ "forwardSlash",
1211
+ "precede",
1212
+ "succeed",
1213
+ "precedingEqual",
1214
+ "succeedingEqual",
1215
+ "groupinparathesis",
1216
+ "groupinbraces",
1217
+ "squareRoundBrackets",
1218
+ "roundSquareBrackets"
1219
+ ]
1220
+ },
1221
+ {
1222
+ "label": "Trig",
1223
+ "key": "trig",
1224
+ "isSelected": false,
1225
+ "selectedButtons": [
1226
+ "sine",
1227
+ "cosineT",
1228
+ "tangentT",
1229
+ "cot",
1230
+ "sec",
1231
+ "cosec",
1232
+ "sinInverse",
1233
+ "cosInverse",
1234
+ "tanInverse",
1235
+ "cotInverse",
1236
+ "secInverse",
1237
+ "cosecInverse"
1238
+ ]
1239
+ },
1240
+ {
1241
+ "label": "Greek Symbols",
1242
+ "key": "greekSymbols",
1243
+ "isSelected": false,
1244
+ "selectedButtons": [
1245
+ "alpha",
1246
+ "beta",
1247
+ "gamma",
1248
+ "delta",
1249
+ "varepsilon",
1250
+ "zeta",
1251
+ "eta",
1252
+ "theta",
1253
+ "iota",
1254
+ "kappa",
1255
+ "lambda",
1256
+ "mu",
1257
+ "nu",
1258
+ "xi",
1259
+ "pi",
1260
+ "rho",
1261
+ "sigma",
1262
+ "tau",
1263
+ "upsilon",
1264
+ "phi",
1265
+ "chi",
1266
+ "psi",
1267
+ "omega",
1268
+ "digamma",
1269
+ "gammaUpper",
1270
+ "deltaUppercase",
1271
+ "thetaUpper",
1272
+ "lambdaUpper",
1273
+ "xiUpper",
1274
+ "piUpper",
1275
+ "sigmaUpper",
1276
+ "upsilonUpper",
1277
+ "phiUpper",
1278
+ "psiUpper",
1279
+ "omegaUpper"
1280
+ ]
1281
+ },
1282
+ {
1283
+ "label": "Measurement",
1284
+ "key": "measurement",
1285
+ "isSelected": false,
1286
+ "selectedButtons": [
1287
+ "millilitre",
1288
+ "litre",
1289
+ "fluidOunce",
1290
+ "pint",
1291
+ "gallon",
1292
+ "millimeter",
1293
+ "centimeter",
1294
+ "meter",
1295
+ "kilometer",
1296
+ "inch",
1297
+ "foot",
1298
+ "mile",
1299
+ "microgram",
1300
+ "milligram",
1301
+ "gram",
1302
+ "kilogram",
1303
+ "ounce",
1304
+ "pound",
1305
+ "millisecond",
1306
+ "second"
1307
+ ]
1308
+ },
1309
+ {
1310
+ "label": "Delimiters",
1311
+ "key": "extendedDelimiters",
1312
+ "isSelected": false,
1313
+ "selectedButtons": [
1314
+ "lfloor",
1315
+ "rfloor",
1316
+ "lceil",
1317
+ "rceil",
1318
+ "wedge",
1319
+ "vee",
1320
+ "equivalance",
1321
+ "logicalNot",
1322
+ "existentialQuantifier",
1323
+ "forAll",
1324
+ "oplus",
1325
+ "upwardsArrow",
1326
+ "openCurlBracket",
1327
+ "closedCurlBracket",
1328
+ "groupinparathesis",
1329
+ "groupinbrackets",
1330
+ "angleBracket",
1331
+ "groupinbraces",
1332
+ "singleSquareOpen",
1333
+ "singleSquareClose"
1334
+ ]
1335
+ },
1336
+ {
1337
+ "label": "Calculus",
1338
+ "key": "calculus",
1339
+ "isSelected": false,
1340
+ "selectedButtons": [
1341
+ "limitXTo",
1342
+ "deltaUppercase",
1343
+ "integral",
1344
+ "doubleIntegral",
1345
+ "tripleIntegral",
1346
+ "summation",
1347
+ "partialDerivative",
1348
+ "nabla",
1349
+ "fraction",
1350
+ "iota",
1351
+ "textJ",
1352
+ "textK",
1353
+ "textD",
1354
+ "textF",
1355
+ "groupinparathesis",
1356
+ "varepsilon",
1357
+ "eulersNumber",
1358
+ "lineIntegral",
1359
+ "closedSurfaceIntegral",
1360
+ "closedVolumeIntegral"
1361
+ ]
1362
+ },
1363
+ {
1364
+ "label": "Other Symbols",
1365
+ "key": "otherSymbols",
1366
+ "isSelected": false,
1367
+ "selectedButtons": [
1368
+ "longdivision",
1369
+ "letterR",
1370
+ "vert",
1371
+ "propto",
1372
+ "dotMultiplier",
1373
+ "textA",
1374
+ "textB",
1375
+ "textABC",
1376
+ "forAll",
1377
+ "iota",
1378
+ "infinity",
1379
+ "degree",
1380
+ "forwardSlash"
1381
+ ]
1382
+ }
1383
+ ],
1384
+ "customizeStamp": [
1385
+ {
1386
+ "defaultStamp": true,
1387
+ "selected": true,
1388
+ "id": "1",
1389
+ "stampUrl": "StampIcon1",
1390
+ "name": "Stamp 1"
1391
+ },
1392
+ {
1393
+ "defaultStamp": true,
1394
+ "selected": true,
1395
+ "id": "2",
1396
+ "stampUrl": "StampIcon2",
1397
+ "name": "Stamp 2"
1398
+ },
1399
+ {
1400
+ "defaultStamp": true,
1401
+ "selected": true,
1402
+ "id": "3",
1403
+ "stampUrl": "StampIcon3",
1404
+ "name": "Stamp 3"
1405
+ },
1406
+ {
1407
+ "defaultStamp": true,
1408
+ "selected": true,
1409
+ "id": "4",
1410
+ "stampUrl": "StampIcon4",
1411
+ "name": "Stamp 4"
1412
+ },
1413
+ {
1414
+ "defaultStamp": true,
1415
+ "selected": true,
1416
+ "id": "5",
1417
+ "stampUrl": "StampIcon5",
1418
+ "name": "Stamp 5"
1419
+ },
1420
+ {
1421
+ "defaultStamp": true,
1422
+ "selected": true,
1423
+ "id": "6",
1424
+ "stampUrl": "StampIcon6",
1425
+ "name": "Stamp 6"
1426
+ },
1427
+ {
1428
+ "defaultStamp": true,
1429
+ "selected": true,
1430
+ "id": "7",
1431
+ "stampUrl": "StampIcon7",
1432
+ "name": "Stamp 7"
1433
+ },
1434
+ {
1435
+ "defaultStamp": true,
1436
+ "selected": true,
1437
+ "id": "8",
1438
+ "stampUrl": "StampIcon8",
1439
+ "name": "Stamp 8"
1440
+ },
1441
+ {
1442
+ "defaultStamp": true,
1443
+ "selected": true,
1444
+ "id": "9",
1445
+ "stampUrl": "StampIcon9",
1446
+ "name": "Stamp 9"
1447
+ },
1448
+ {
1449
+ "defaultStamp": true,
1450
+ "selected": true,
1451
+ "id": "10",
1452
+ "stampUrl": "StampIcon10",
1453
+ "name": "Stamp 10"
1454
+ },
1455
+ {
1456
+ "defaultStamp": true,
1457
+ "selected": true,
1458
+ "id": "11",
1459
+ "stampUrl": "StampIcon11",
1460
+ "name": "Stamp 11"
1461
+ },
1462
+ {
1463
+ "defaultStamp": true,
1464
+ "selected": true,
1465
+ "id": "12",
1466
+ "stampUrl": "StampIcon12",
1467
+ "name": "Stamp 12"
1468
+ },
1469
+ {
1470
+ "defaultStamp": true,
1471
+ "selected": true,
1472
+ "id": "13",
1473
+ "stampUrl": "StampIcon13",
1474
+ "name": "Stamp 13"
1475
+ }
1476
+ ]
1477
+ },
1478
+ "content": {
1479
+ "questionItemInstruction": "<p>question instruction text</p>\n"
1480
+ },
1481
+ "penaltyPoints": null,
1482
+ "minScoreIfAttempted": null,
1483
+ "teacherGuideline": "",
1484
+ "scoringGuidance": "",
1485
+ "sampleResponse": "",
1486
+ "resources": []
1487
+ }
1488
+ ],
1489
+ "resources": [],
1490
+ "statusId": 1,
1491
+ "version": 1
1492
+ }
1493
+ }
1494
+ },
1495
+ "query": "mutation setItem($input: SetItemInput) {\n setItem(input: $input) {\n success\n statusCode\n message\n data {\n settings\n id\n version\n contentVersion\n contentId\n title\n statusId\n instruction\n description\n authorName\n createdAt\n updatedAt\n createdBy\n referenceId\n questionId\n questionTags {\n id\n name\n type\n __typename\n }\n metadata {\n id\n metaKey\n metaKeyValue\n __typename\n }\n questions {\n id\n instruction\n points\n typeId\n questionXml\n referenceId\n updatedAt\n createdBy\n scoringTypeId\n teacherGuideline\n penaltyPoints\n minScoreIfAttempted\n minScoreType\n penaltyPointType\n isAutoPenaltySetting\n isNegativeRounded\n specificPenaltyType\n penaltyPointsForEach\n isAutoScored\n createdAt\n scoringGuidance\n sampleResponse\n resources {\n id\n name\n referenceId\n resourceTypeId\n metadata\n settings\n content\n type\n isCustomResource\n __typename\n }\n type {\n id\n name\n __typename\n }\n serialNo\n metadata\n correctResponse {\n id\n questionPartId\n xmlIdentifier\n mappedKey\n isCaseSensitive\n answerSetId\n alternateId\n __typename\n }\n mappedCorrectResponse {\n id\n questionPartId\n mappedKey\n mappedValue\n xmlIdentifier\n answerSetId\n alternateId\n __typename\n }\n defaultResponse {\n id\n questionPartId\n xmlIdentifier\n responseText\n __typename\n }\n answerSets {\n id\n points\n cellFillCount\n matchPositionOfSelectedCells\n __typename\n }\n __typename\n }\n resources {\n id\n name\n referenceId\n resourceTypeId\n serialNo\n metadata\n createdAt\n updatedAt\n createdBy\n resourceList {\n id\n name\n referenceId\n resourceTypeId\n metadata\n settings\n content\n type\n isCustomResource\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"
1496
+ }
1497
+ }).then((resp) => {
1498
+ if (resp.status.toString().startsWith('5') && retries > 0) {
1499
+ cy.log('ENCOUNTERED A 5xx ERROR');
1500
+ }
1501
+ var currCreatedAndUpdatedAtDate = [];
1502
+ currCreatedAndUpdatedAtDate.push(resp.body.data.setItem.data.createdAt);
1503
+ currCreatedAndUpdatedAtDate.push(resp.body.data.setItem.data.updatedAt);
1504
+ createdAndUpdatedAtDate.push(currCreatedAndUpdatedAtDate);
1505
+ questionAndResourceReferenceIds.push(currentReferenceIds);
1506
+ itemReferenceIds.push(itemName);
1507
+ cy.log(createdAndUpdatedAtDate);
1508
+ cy.log(questionAndResourceReferenceIds);
1509
+ cy.log(itemReferenceIds);
1510
+ });
1511
+ });
1512
+ });
1513
+
1514
+ Cypress.Commands.add('deleteThinkSphereItem', (itemName) => {
1515
+ const token = window.localStorage.getItem('ngie_accessToken');
1516
+ const firstName = window.localStorage.getItem('ngie_firstName');
1517
+ const lastName = window.localStorage.getItem('ngie_lastName');
1518
+ const userID = window.localStorage.getItem('ngie_userId');
1519
+
1520
+ cy.request({
1521
+ headers: {
1522
+ Authorization: `${token}`,
1523
+ 'content-type': 'application/json',
1524
+ },
1525
+ method: 'POST',
1526
+ url: `${Cypress.env('SANDBOX_GRAPHQL_SERVICES_URL')}/`,
1527
+ body: [
1528
+ {
1529
+ "operationName": "generateSignedRequest",
1530
+ "variables": {
1531
+ "input": {
1532
+ "service": "author",
1533
+ "type": "item",
1534
+ "userId": userID,
1535
+ "requestPacket": {
1536
+ "mode": "thinkSphereItemList",
1537
+ "config": {
1538
+ "loaderType": "full-screen",
1539
+ "itemList": {
1540
+ "limit": 20,
1541
+ "toolbar": {
1542
+ "add": true
1543
+ },
1544
+ "filter": {
1545
+ "enableFilter": true,
1546
+ "filterBackdrop": "div",
1547
+ "showFilterPopup": false
1548
+ },
1549
+ "actions": {
1550
+ "showActionsColumn": true,
1551
+ "options": [
1552
+ {
1553
+ "id": "delete",
1554
+ "label": "Delete"
1555
+ },
1556
+ {
1557
+ "id": "duplicate",
1558
+ "label": "Duplicate/New Version"
1559
+ }
1560
+ ]
1561
+ }
1562
+ },
1563
+ "isCustomLoader": true,
1564
+ "customLoaderId": "globalLoader"
1565
+ },
1566
+ "user": {
1567
+ "firstName": firstName,
1568
+ "lastName": lastName,
1569
+ "id": userID
1570
+ },
1571
+ "systemGeneratedItems": {
1572
+ "referenceIds": [""]
1573
+ }
1574
+ },
1575
+ "domain": domainName
1576
+ }
1577
+ },
1578
+ "query": "query generateSignedRequest($input: GenerateSignedRequest) {\n generateSignedRequest(input: $input) {\n success\n signedRequest {\n authentication {\n timestamp\n domain\n consumerKey\n signature\n userId\n __typename\n }\n request\n __typename\n }\n __typename\n }\n}\n"
1579
+ }
1580
+ ]
1581
+ }).then((resp) => {
1582
+ if (resp.status.toString().startsWith('5') && retries > 0) {
1583
+ cy.log('ENCOUNTERED A 5xx ERROR');
1584
+ }
1585
+ const currRequest = resp.body[0].data.generateSignedRequest.signedRequest.request;
1586
+ const currAuthentication = resp.body[0].data.generateSignedRequest.signedRequest.authentication;
1587
+ delete currAuthentication.userId;
1588
+ delete currAuthentication.__typename;
1589
+ delete currRequest.__typename;
1590
+ cy.request({
1591
+ headers: {
1592
+ Authorization: `${token}`,
1593
+ 'content-type': "application/json",
1594
+ Origin: `${Cypress.env('SANDBOX_SERVICES_URL')}`,
1595
+ },
1596
+ method: 'POST',
1597
+ url: `${Cypress.env('SERVICES_URL')}${Cypress.env('GRAPHQL_URL')}/`,
1598
+ body: {
1599
+ "operationName": "deleteItem",
1600
+ "variables": {
1601
+ "input": {
1602
+ "authentication": currAuthentication,
1603
+ "request": currRequest,
1604
+ "service": "author",
1605
+ "userRequest": {
1606
+ "itemReference": `${itemName}`
1607
+ }
1608
+ }
1609
+ },
1610
+ "query": "mutation deleteItem($input: DeleteItemInput) {\n deleteItem(input: $input) {\n message\n success\n __typename\n }\n}\n"
1611
+ }
1612
+ }).then((resp) => {
1613
+ if (resp.status.toString().startsWith('5') && retries > 0) {
1614
+ cy.log('ENCOUNTERED A 5xx ERROR');
1615
+ }
1616
+ });
1617
+ });
1618
+ });