itemengine-cypress-automation 1.0.275 → 1.0.277-revert-134-updatedRepo12thDec-108a6c6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +2 -1
  2. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
  3. package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
  4. package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +5 -11
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +0 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +5 -7
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -6
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -8
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +0 -8
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +0 -4
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +0 -2
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
  13. package/cypress/e2e/ILC/EssayResponse/toolSettings.js +2 -8
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -2
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +0 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +0 -2
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  21. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  22. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  27. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
  30. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -2
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  38. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
  39. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  40. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -4
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +0 -2
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +1 -2
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
  51. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
  52. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
  53. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  54. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  55. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  56. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
  57. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  58. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
  59. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  60. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  61. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
  62. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  63. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  64. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  65. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  66. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  67. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  68. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  69. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  70. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
  71. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
  72. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
  73. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
  74. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
  75. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
  76. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
  77. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
  78. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
  79. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
  80. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  81. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
  82. package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
  83. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +2 -4
  84. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -1
  85. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -2
  86. package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
  87. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
  88. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  89. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +0 -6
  90. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  91. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  92. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  93. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  94. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  95. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  96. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -3
  97. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +0 -2
  98. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  99. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
  100. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
  101. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -2
  102. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
  103. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -2
  104. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -3
  105. package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +0 -4
  106. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +3 -2
  107. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +0 -5
  108. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
  109. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +0 -3
  110. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +3 -6
  111. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  112. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  113. package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +1 -23
  114. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -476
  115. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  116. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +5 -7
  117. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
  118. package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
  119. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
  120. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
  121. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
  122. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
  123. package/cypress/pages/audioPlayerPage.js +2 -2
  124. package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
  125. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
  126. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +1 -19
  127. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
  128. package/cypress/pages/components/essayResponseCommonComponents.js +5 -6
  129. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  130. package/cypress/pages/components/layoutSectionComponent.js +2 -6
  131. package/cypress/pages/components/numberLineCommonComponent.js +5 -12
  132. package/cypress/pages/components/playbackControlsBaseComponent.js +0 -5
  133. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
  134. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  135. package/cypress/pages/drawingResponsePage.js +1 -18
  136. package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -3
  137. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -19
  138. package/cypress/pages/gridFillPage.js +3 -2
  139. package/cypress/pages/listOrderingPage.js +12 -19
  140. package/cypress/pages/matchingPage.js +2 -16
  141. package/cypress/pages/textEntryMathPage.js +4 -716
  142. package/cypress/pages/textEntryMathWithImagePage.js +5 -133
  143. package/package.json +1 -1
  144. package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +0 -129
  145. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +0 -384
@@ -1,4 +1,4 @@
1
- import { imageCanvasComponent, backgroundImageUploadComponent, questionInstructionsComponent, autoScoredScoringPreviewTab, connectorStyleStyleAndLayoutCustomizationComponent } from "./components"
1
+ import { imageCanvasComponent, backgroundImageUploadComponent, questionInstructionsComponent, autoScoredScoringPreviewTab } from "./components"
2
2
  import { textEntryMathPage } from "./textEntryMathPage";
3
3
  import { dialogBoxBase } from "./dialogBoxBase";
4
4
  import utilities from "../support/helpers/utilities";
@@ -9,7 +9,7 @@ const selectors = {
9
9
  ...imageCanvasComponent,
10
10
  ...textEntryMathPage,
11
11
  ...dialogBoxBase,
12
- ...connectorStyleStyleAndLayoutCustomizationComponent,
12
+
13
13
  addBackgroundButton: () => cy.get('[data-ngie-testid="add-background-tab"]'),
14
14
  responseFieldPreviewTab: () => cy.get('.cloze-math-background-preview .equation-input-without-andornment .mq-root-block'),
15
15
  canvasInPreviewTab: () => cy.get('[class*="PreviewTabstyles__ContentWrapper"] .image-container'),
@@ -17,18 +17,7 @@ const selectors = {
17
17
  tickIcon: () => cy.get('.add-background-tick-icon-wrapper [data-name*="Rectangle"]'),
18
18
  responseFieldWrapperPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="__PointerWrapper"]'),
19
19
  pointerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="_PointerDiv"]'),
20
- responseFieldNumerationPreviewTab: () => cy.get('.image-container .response-input-adornment'),
21
- cancelButton: () => cy.get('[data-testid*="reject-button"]'),
22
- setHeightAndWidthForAllTextContainersLabel: () => cy.get('.set-textContainer-dimensions-checkbox label'),
23
- setHeightAndWidthForAllTextContainersCheckbox: () => cy.get('.set-textContainer-dimensions-checkbox .ngie-checkbox'),
24
- heightLabel: () => cy.get('[aria-labelledby="Height (px)"]'),
25
- widthLabel: () => cy.get('[aria-labelledby="Width (px)"]'),
26
- heightInputField: () => cy.get('.MuiInputBase-input[aria-label="Height (px)"]'),
27
- widthInputField: () => cy.get('.MuiInputBase-input[aria-label="Width (px)"]'),
28
- textContainerEditTab: () => cy.get('.canvas-dropzone'),
29
- textContainerPreviewTab: () => cy.get('.equation-input-component'),
30
- textContainerConnectorStyleLabel: () => cy.get('.set-text-connector-style .textContainer-label'),
31
- responseAreaNew: () => cy.get('.canvas-dropzone')
20
+ responseFieldNumerationPreviewTab: () => cy.get('.image-container .response-input-adornment')
32
21
  }
33
22
 
34
23
  const steps = {
@@ -36,7 +25,7 @@ const steps = {
36
25
  ...imageCanvasComponent.steps,
37
26
  ...questionInstructionsComponent.steps,
38
27
  ...textEntryMathPage.steps,
39
- ...connectorStyleStyleAndLayoutCustomizationComponent.steps,
28
+
40
29
  addBackground: () => {
41
30
  textEntryMathWithImagePage.addBackgroundButton()
42
31
  .click();
@@ -206,130 +195,13 @@ const steps = {
206
195
  .should('have.text', `${index + 1}`)
207
196
  });
208
197
  },
209
-
210
- clickOnCancelButton: () => {
211
- textEntryMathWithImagePage.cancelButton()
212
- .click();
213
- },
214
-
215
- verifyCheckboxIsCheckedForSetHeightAndWidth: () => {
216
- textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
217
- .should('have.class', 'Mui-checked')
218
- },
219
-
220
- verifyCheckboxIsUncheckedForSetHeightAndWidth: () => {
221
- textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
222
- .should('have.class', 'icon-checkbox-deselected')
223
- },
224
-
225
- checkSetHeightAndWidth: () => {
226
- textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox()
227
- .click();
228
- },
229
-
230
- /**
231
- * This function verifies the height of textContainer
232
- * @param {number} index of the textContainer
233
- * @param {string} height of the textContainer
234
- */
235
- verifyHeightOfTextContainerInEditTab: (index, height) => {
236
- utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerEditTab(), index), {
237
- 'height': height
238
- });
239
- },
240
-
241
- /**
242
- * This function verifies the width of textContainer
243
- * @param {number} index of the textContainer
244
- * @param {string} width of the textContainer
245
- */
246
- verifyWidthOfTextContainerInEditTab: (index, width) => {
247
- utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerEditTab(), index), {
248
- 'width': width
249
- });
250
- },
251
-
252
- /**
253
- * This function verifies the width of textContainer
254
- * @param {number} index of the textContainer
255
- * @param {string} width of the textContainer
256
- */
257
- verifyWidthOfTextContainerInPreviewTab: (index, width) => {
258
- utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerPreviewTab(), index), {
259
- 'width': width
260
- });
261
- },
262
-
263
- /**
264
- * This function verifies the height of textContainer
265
- * @param {number} index of the textContainer
266
- * @param {string} height of the textContainer
267
- */
268
- verifyHeightOfTextContainerInPreviewTab: (index, height) => {
269
- utilities.verifyCSS(utilities.getNthElement(textEntryMathWithImagePage.textContainerPreviewTab(), index), {
270
- 'height': height
271
- });
272
- },
273
-
274
- /**
275
- *@description this function insert value in height Input field
276
- *@param {number} value of input field
277
- */
278
- enterValueInHeightInputField: (value) => {
279
- textEntryMathWithImagePage.heightInputField()
280
- .click()
281
- .type(value)
282
- .blur()
283
- },
284
-
285
- /**
286
- *@description this function insert value in width Input field
287
- *@param {number} value of input field
288
- */
289
- enterValueInWidthInputField: (value) => {
290
- textEntryMathWithImagePage.widthInputField()
291
- .click()
292
- .type(value)
293
- .blur()
294
- },
295
-
296
- clearWidthInputField: () => {
297
- textEntryMathWithImagePage.widthInputField()
298
- .clear()
299
- .blur()
300
- },
301
-
302
- clearHeightInputField: () => {
303
- textEntryMathWithImagePage.heightInputField()
304
- .clear()
305
- .blur()
306
- },
307
-
308
- /**
309
- *@description this function verify the value of height input Field
310
- *@param {string} value of input field
311
- */
312
- verifyHeightInputFieldValue: (value) => {
313
- textEntryMathWithImagePage.heightInputField()
314
- .should('have.value', value)
315
- },
316
-
317
- /**
318
- *@description this function verify the value of width input Field
319
- *@param {string} value of input field
320
- */
321
- verifyWidthInputFieldValue: (value) => {
322
- textEntryMathWithImagePage.widthInputField()
323
- .should('have.value', value)
324
- }
325
198
  }
326
199
 
327
200
  const tests = {
328
201
  ...backgroundImageUploadComponent.tests,
329
202
  ...imageCanvasComponent.tests,
330
203
  ...questionInstructionsComponent.tests,
331
- ...autoScoredScoringPreviewTab.tests,
332
- ...textEntryMathPage.tests,
204
+ ...autoScoredScoringPreviewTab.tests
333
205
  }
334
206
 
335
207
  export const textEntryMathWithImagePage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.275",
3
+ "version": "1.0.277-revert-134-updatedRepo12thDec-108a6c6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,129 +0,0 @@
1
- import { textEntryMathPage } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- describe('Create Item page - Text Entry Math: Style and layout customization', () => {
4
- before(() => {
5
- cy.loginAs('admin');
6
- });
7
-
8
- describe('Style and layout customization accordion', () => {
9
- abortEarlySetup();
10
- before(() => {
11
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
12
- cy.barsPreLoaderWait();
13
- });
14
-
15
- textEntryMathPage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
16
- });
17
-
18
- describe('Style and layout customization accordion contents', () => {
19
- abortEarlySetup();
20
- before(() => {
21
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
22
- cy.barsPreLoaderWait();
23
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
24
- });
25
-
26
- textEntryMathPage.tests.verifyStyleAndLayoutCustomizationAccordionContent('add structure');
27
- });
28
-
29
- describe('Fill color - Edit tab', () => {
30
- abortEarlySetup();
31
- before(() => {
32
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
33
- cy.barsPreLoaderWait();
34
- textEntryMathPage.steps.addResponseArea();
35
- textEntryMathPage.steps.addResponseArea();
36
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
37
- });
38
-
39
- textEntryMathPage.tests.verifyFillColorFunctionalityEditTab('add structure');
40
- });
41
-
42
- describe('Fill color - Preview tab', () => {
43
- abortEarlySetup();
44
- before(() => {
45
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
46
- cy.barsPreLoaderWait();
47
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
48
- textEntryMathPage.steps.addResponseArea();
49
- textEntryMathPage.steps.addResponseArea();
50
- textEntryMathPage.steps.switchToPreviewTab();
51
- });
52
-
53
- textEntryMathPage.tests.verifyFillColorFunctionalityPreviewTab('add structure');
54
- });
55
-
56
- describe('Border color - Edit tab', () => {
57
- abortEarlySetup();
58
- before(() => {
59
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
60
- cy.barsPreLoaderWait();
61
- textEntryMathPage.steps.addResponseArea();
62
- textEntryMathPage.steps.addResponseArea();
63
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
64
- });
65
-
66
- textEntryMathPage.tests.verifyBorderColorFunctionalityEditTab('add structure');
67
- });
68
-
69
- describe('Border color - Preview tab', () => {
70
- abortEarlySetup();
71
- before(() => {
72
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
73
- cy.barsPreLoaderWait();
74
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
75
- textEntryMathPage.steps.addResponseArea();
76
- textEntryMathPage.steps.addResponseArea();
77
- textEntryMathPage.steps.switchToPreviewTab();
78
- });
79
-
80
- textEntryMathPage.tests.verifyBorderColorFunctionalityPreviewTab('add structure');
81
- });
82
-
83
- describe('Color popup functionality', () => {
84
- abortEarlySetup();
85
- before(() => {
86
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
87
- cy.barsPreLoaderWait();
88
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
89
- });
90
-
91
- textEntryMathPage.tests.verifyEditColorPopupFunctionality('add structure');
92
- });
93
-
94
- describe('Color popup - Updating the selected color', () => {
95
- abortEarlySetup();
96
- before(() => {
97
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
98
- cy.barsPreLoaderWait();
99
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
100
- });
101
-
102
- textEntryMathPage.tests.verifyColorPopupUpdatingSelectedColorFunctionality();
103
- });
104
-
105
- describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
106
- abortEarlySetup();
107
- before(() => {
108
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
109
- cy.barsPreLoaderWait();
110
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
111
- });
112
-
113
- textEntryMathPage.tests.verifyColorPopUpCancelOkButtonFunctionality();
114
- });
115
-
116
- describe('Border style - Preview tab', () => {
117
- abortEarlySetup();
118
- before(() => {
119
- textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
120
- cy.barsPreLoaderWait();
121
- textEntryMathPage.steps.expandStyleAndLayoutCustomizationAccordion();
122
- textEntryMathPage.steps.addResponseArea();
123
- textEntryMathPage.steps.addResponseArea();
124
- textEntryMathPage.steps.switchToPreviewTab();
125
- });
126
-
127
- textEntryMathPage.tests.verifyBorderStylePreviewTab('add structure');
128
- });
129
- });