itemengine-cypress-automation 1.0.276-updatedRepo12thDec-303c8a0.0 → 1.0.277

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) 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/gradingViewAndCorrectAnswerView.smoke.js +4 -2
  84. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +2 -4
  85. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -1
  86. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -2
  87. package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
  88. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
  89. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
  90. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +0 -6
  91. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  92. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  93. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  94. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  95. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  96. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  97. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -3
  98. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +0 -2
  99. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  100. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
  101. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  102. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
  103. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  104. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -2
  105. package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
  106. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -2
  107. package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -3
  108. package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +0 -4
  109. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +3 -2
  110. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +0 -5
  111. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
  112. package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +0 -3
  113. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +3 -6
  114. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  115. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  116. package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +1 -23
  117. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -476
  118. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  119. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +5 -7
  120. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
  121. package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
  122. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
  123. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
  124. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
  125. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
  126. package/cypress/pages/audioPlayerPage.js +2 -2
  127. package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
  128. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
  129. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +1 -19
  130. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
  131. package/cypress/pages/components/essayResponseCommonComponents.js +5 -6
  132. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  133. package/cypress/pages/components/layoutSectionComponent.js +2 -6
  134. package/cypress/pages/components/numberLineCommonComponent.js +5 -12
  135. package/cypress/pages/components/playbackControlsBaseComponent.js +0 -5
  136. package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
  137. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  138. package/cypress/pages/drawingResponsePage.js +1 -18
  139. package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -3
  140. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -19
  141. package/cypress/pages/gridFillPage.js +3 -2
  142. package/cypress/pages/listOrderingPage.js +12 -19
  143. package/cypress/pages/matchingPage.js +2 -16
  144. package/cypress/pages/textEntryMathPage.js +4 -716
  145. package/cypress/pages/textEntryMathWithImagePage.js +5 -133
  146. package/package.json +1 -1
  147. package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +0 -129
  148. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +0 -384
@@ -1,384 +0,0 @@
1
- import { dialogBoxBase, textEntryMathWithImagePage } from "../../../pages";
2
- import { colorPopupComponent } from "../../../pages/components";
3
- import abortEarlySetup from "../../../support/helpers/abortEarly";
4
- import utilities from "../../../support/helpers/utilities";
5
- const css = Cypress.env('css');
6
- const borderStyles = ["Dashed", "Dotted", "Solid", "None"]
7
- const modifiedColor = 'rgb(121, 60, 60)'
8
- const selectedStyle = 'dashed';
9
- const connectorStyles = ["Circle", "Square", "Diamond", "None"]
10
-
11
- describe('Create Item page - Text Entry Math: Style and layout customization', () => {
12
- before(() => {
13
- cy.loginAs('admin');
14
- });
15
-
16
- describe('Style and layout customization accordion', () => {
17
- abortEarlySetup();
18
- before(() => {
19
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
20
- cy.barsPreLoaderWait();
21
- textEntryMathWithImagePage.steps.addBackground();
22
- });
23
-
24
- textEntryMathWithImagePage.tests.verifyStyleAndLayoutCustomizationAccordionProperties();
25
- });
26
-
27
- describe('Style and layout customization accordion contents', () => {
28
- abortEarlySetup();
29
- before(() => {
30
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
31
- cy.barsPreLoaderWait();
32
- textEntryMathWithImagePage.steps.addBackground();
33
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
34
- });
35
-
36
- textEntryMathWithImagePage.tests.verifyStyleAndLayoutCustomizationAccordionContent('add background');
37
- });
38
-
39
- describe('Fill color - Edit tab', () => {
40
- abortEarlySetup();
41
- before(() => {
42
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
43
- cy.barsPreLoaderWait();
44
- textEntryMathWithImagePage.steps.addBackground();
45
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
46
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
47
- textEntryMathWithImagePage.steps.insertResponseArea(10);
48
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
49
- });
50
-
51
- textEntryMathWithImagePage.tests.verifyFillColorFunctionalityEditTab('add background');
52
- });
53
-
54
- describe('Fill color - Preview tab', () => {
55
- abortEarlySetup();
56
- before(() => {
57
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
58
- cy.barsPreLoaderWait();
59
- textEntryMathWithImagePage.steps.addBackground();
60
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
61
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
62
- textEntryMathWithImagePage.steps.insertResponseArea(10);
63
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
64
- textEntryMathWithImagePage.steps.switchToPreviewTab();
65
- });
66
-
67
- textEntryMathWithImagePage.tests.verifyFillColorFunctionalityPreviewTab('add background');
68
- });
69
-
70
- describe('Border color - Edit tab', () => {
71
- abortEarlySetup();
72
- before(() => {
73
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
74
- cy.barsPreLoaderWait();
75
- textEntryMathWithImagePage.steps.addBackground();
76
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
77
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
78
- textEntryMathWithImagePage.steps.insertResponseArea(10);
79
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
80
- });
81
-
82
- textEntryMathWithImagePage.tests.verifyBorderColorFunctionalityEditTab('add background');
83
- });
84
-
85
- describe('Border color - Preview tab', () => {
86
- abortEarlySetup();
87
- before(() => {
88
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
89
- cy.barsPreLoaderWait();
90
- textEntryMathWithImagePage.steps.addBackground();
91
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
92
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
93
- textEntryMathWithImagePage.steps.insertResponseArea(10);
94
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
95
- textEntryMathWithImagePage.steps.switchToPreviewTab();
96
- });
97
-
98
- textEntryMathWithImagePage.tests.verifyBorderColorFunctionalityPreviewTab('add background');
99
- });
100
-
101
- describe('Color popup functionality', () => {
102
- abortEarlySetup();
103
- before(() => {
104
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
105
- cy.barsPreLoaderWait();
106
- textEntryMathWithImagePage.steps.addBackground();
107
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
108
- });
109
-
110
- textEntryMathWithImagePage.tests.verifyEditColorPopupFunctionality('add background');
111
- });
112
-
113
- describe('Color popup - Updating the selected color', () => {
114
- abortEarlySetup();
115
- before(() => {
116
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
117
- cy.barsPreLoaderWait();
118
- textEntryMathWithImagePage.steps.addBackground();
119
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
120
- });
121
-
122
- textEntryMathWithImagePage.tests.verifyColorPopupUpdatingSelectedColorFunctionality();
123
- });
124
-
125
- describe('Color popup - \'Cancel\' and \'Ok\' buttons', () => {
126
- abortEarlySetup();
127
- before(() => {
128
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
129
- cy.barsPreLoaderWait();
130
- textEntryMathWithImagePage.steps.addBackground();
131
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
132
- });
133
-
134
- textEntryMathWithImagePage.tests.verifyColorPopUpCancelOkButtonFunctionality();
135
- });
136
-
137
- describe('Border style - Edit tab', () => {
138
- abortEarlySetup();
139
- before(() => {
140
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
141
- cy.barsPreLoaderWait();
142
- textEntryMathWithImagePage.steps.addBackground();
143
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
144
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
145
- textEntryMathWithImagePage.steps.insertResponseArea(10);
146
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
147
- });
148
-
149
- it('When the "dashed" border style is in selected state, then the border style of the text containers in the canvas image should be "dashed"', () => {
150
- textEntryMathWithImagePage.steps.verifyResponseAreaOverImageBorderStyle(0, 'dashed');
151
- });
152
-
153
- borderStyles.forEach((style) => {
154
- it(`When the user selects ${style}, then the border style of the text containers in the canvas image should update to ${style}`, () => {
155
- textEntryMathWithImagePage.steps.selectBorderStyleToggleButton(style);
156
- textEntryMathWithImagePage.steps.verifyResponseAreaOverImageBorderStyle(0, style);
157
- });
158
- })
159
- });
160
-
161
- describe('Border style - Preview tab', () => {
162
- abortEarlySetup();
163
- before(() => {
164
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
165
- cy.barsPreLoaderWait();
166
- textEntryMathWithImagePage.steps.addBackground();
167
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
168
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
169
- textEntryMathWithImagePage.steps.insertResponseArea(10);
170
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion()
171
- textEntryMathWithImagePage.steps.switchToPreviewTab();
172
- });
173
-
174
- textEntryMathWithImagePage.tests.verifyBorderStylePreviewTab('add background');
175
- });
176
-
177
- describe('Set height and width for all text containers Contents and Functionality', () => {
178
- abortEarlySetup();
179
- before(() => {
180
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
181
- cy.barsPreLoaderWait();
182
- textEntryMathWithImagePage.steps.addBackground();
183
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
184
- textEntryMathWithImagePage.steps.insertResponseArea(60);
185
- textEntryMathWithImagePage.steps.insertResponseArea(20);
186
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
187
- });
188
-
189
- it('\'Set height and width for all text containers\' label and checkbox should be visible and by default it should be checked', () => {
190
- utilities.verifyTextContent(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel(), 'Set height and width for all text containers');
191
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox(), 'visible');
192
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersCheckbox(), 'visible');
193
- textEntryMathWithImagePage.steps.verifyCheckboxIsCheckedForSetHeightAndWidth();
194
- });
195
-
196
- it('\'Height(px)\' and \'Width(px)\' label and height input field ,width input filed should be visible and by default input field should be empty', () => {
197
- utilities.verifyTextContent(textEntryMathWithImagePage.heightLabel(), 'Height (px)');
198
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.heightLabel(), 'visible');
199
- utilities.verifyTextContent(textEntryMathWithImagePage.widthLabel(), 'Width (px)');
200
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.widthLabel(), 'visible');
201
- utilities.verifyTextContent(textEntryMathWithImagePage.heightInputField(), '');
202
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.heightInputField(), 'visible');
203
- utilities.verifyTextContent(textEntryMathWithImagePage.widthInputField(), '');
204
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.widthInputField(), 'visible');
205
- });
206
-
207
- it('By default height and width of the text container is 32px and 120px ', () => {
208
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(0, '32px');
209
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(0, '120px');
210
- });
211
-
212
- it('When user insert value in height and width input fields then value should be visible', () => {
213
- textEntryMathWithImagePage.steps.enterValueInHeightInputField(50);
214
- textEntryMathWithImagePage.steps.enterValueInWidthInputField(150);
215
- textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('50');
216
- textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('150');
217
- textEntryMathWithImagePage.steps.clearHeightInputField();
218
- textEntryMathWithImagePage.steps.clearWidthInputField();
219
- });
220
-
221
- it('User should not be able to enter text,special characters in input field', () => {
222
- textEntryMathWithImagePage.steps.enterValueInHeightInputField('50a@,');
223
- textEntryMathWithImagePage.steps.enterValueInWidthInputField('asd@');
224
- textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('50');
225
- textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('');
226
- textEntryMathWithImagePage.steps.clearHeightInputField();
227
- textEntryMathWithImagePage.steps.clearWidthInputField();
228
- });
229
-
230
- it('User should not able to enter more than three digit number in height and width input field', () => {
231
- textEntryMathWithImagePage.steps.enterValueInHeightInputField(9999);
232
- textEntryMathWithImagePage.steps.enterValueInWidthInputField(1000);
233
- textEntryMathWithImagePage.steps.verifyHeightInputFieldValue('999');
234
- textEntryMathWithImagePage.steps.verifyWidthInputFieldValue('100');
235
- });
236
-
237
- it('When user inserts 90px in the height input field, then changes should be reflected in the edit tab textContainer height and value of height input field is 90', () => {
238
- textEntryMathWithImagePage.steps.clearHeightInputField();
239
- textEntryMathWithImagePage.steps.enterValueInHeightInputField(90);
240
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(0, '90px');
241
- });
242
-
243
- it('When user inserts 500px in the width input field, then changes should be reflected in the edit tab textContainer width and value of width input field is 500', () => {
244
- textEntryMathWithImagePage.steps.clearWidthInputField();
245
- textEntryMathWithImagePage.steps.enterValueInWidthInputField(210);
246
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(0, '210px');
247
- });
248
-
249
- it('When the user clear the height and weight input field and add a new text container ,then height and width of textContainer is default height and width', () => {
250
- textEntryMathWithImagePage.steps.clearHeightInputField();
251
- textEntryMathWithImagePage.steps.clearWidthInputField();
252
- textEntryMathWithImagePage.steps.insertResponseArea(20);
253
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '32px');
254
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(2, '120px');
255
- });
256
-
257
- it('CSS of "Set height and width for all text containers" section contents', { tags: 'css' }, () => {
258
- utilities.verifyCSS(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel(), {
259
- 'color': css.color.labelText,
260
- 'font-size': css.fontSize.normal,
261
- 'font-weight': css.fontWeight.regular
262
- });
263
- });
264
-
265
- it('Accessibility of "Set height and width for all text containers" section contents', { tags: 'a11y' }, () => {
266
- cy.checkAccessibility(textEntryMathWithImagePage.setHeightAndWidthForAllTextContainersLabel().parents('.set-textContainer-dimensions-checkbox'));
267
- });
268
- });
269
-
270
- describe('Set height and width for all text containers - Preview tab', () => {
271
- abortEarlySetup();
272
- before(() => {
273
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
274
- cy.barsPreLoaderWait();
275
- textEntryMathWithImagePage.steps.addBackground();
276
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
277
- textEntryMathWithImagePage.steps.insertResponseArea(60);
278
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
279
- textEntryMathWithImagePage.steps.switchToPreviewTab();
280
- });
281
-
282
- it('When the user has not set any height or width values in the "Set height and width for all text containers" section,then the dimensions of the text containers should be default', () => {
283
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(0, '32px');
284
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(0, '122px');
285
- });
286
-
287
- it('When user update height and width of the textContainer then the changes should be reflected in the preview tab textContainer', () => {
288
- textEntryMathWithImagePage.steps.switchToEditTab();
289
- textEntryMathWithImagePage.steps.enterValueInHeightInputField(80);
290
- textEntryMathWithImagePage.steps.enterValueInWidthInputField(180);
291
- textEntryMathWithImagePage.steps.switchToPreviewTab();
292
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(0, '80px');
293
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(0, '182px');
294
- });
295
-
296
- it('When the user clear the height and weight input field and add a new text container ,then height and width of textContainer is default height and width in preview tab', () => {
297
- textEntryMathWithImagePage.steps.switchToEditTab();
298
- textEntryMathWithImagePage.steps.clearHeightInputField();
299
- textEntryMathWithImagePage.steps.clearWidthInputField();
300
- textEntryMathWithImagePage.steps.insertResponseArea(20);
301
- textEntryMathWithImagePage.steps.switchToPreviewTab();
302
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '32px');
303
- textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
304
- });
305
- });
306
-
307
- describe('Text container connector style contents', () => {
308
- abortEarlySetup();
309
- before(() => {
310
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
311
- cy.barsPreLoaderWait();
312
- textEntryMathWithImagePage.steps.addBackground();
313
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
314
- });
315
-
316
- it('"Text container connector style" label should be displayed', () => {
317
- utilities.verifyInnerText(textEntryMathWithImagePage.textContainerConnectorStyleLabel(), 'Text container connector style');
318
- });
319
-
320
- it('"Connector end point shape" label along with four icon buttons - "Circle", "Square", "Diamond" and "None" should be displayed. By default, "Circle" option should be in selected state', () => {
321
- utilities.verifyInnerText(textEntryMathWithImagePage.connectorEndPointShapeLabel(), 'Connector end point shape');
322
- connectorStyles.forEach((option) => {
323
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.connectorEndPointShapeOptions(option.toLowerCase()), 'exist');
324
- });
325
- textEntryMathWithImagePage.steps.verifyConnectorStyleOptionSelected('circle')
326
- });
327
- });
328
-
329
- describe('Text container connector style - Edit tab', () => {
330
- abortEarlySetup();
331
- before(() => {
332
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
333
- cy.barsPreLoaderWait();
334
- textEntryMathWithImagePage.steps.addBackground();
335
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
336
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
337
- textEntryMathWithImagePage.steps.insertResponseArea(10);
338
- textEntryMathWithImagePage.steps.selectResponseArea(0);
339
- textEntryMathWithImagePage.steps.selectResponseAreaPointerStyle('left');
340
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
341
- });
342
-
343
- it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "dashed"', () => {
344
- textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShape('Circle');
345
- });
346
-
347
- connectorStyles.forEach((button) => {
348
- it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
349
- textEntryMathWithImagePage.steps.selectEndPointShapeButton(button);
350
- textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShape(button);
351
- });
352
- })
353
- });
354
-
355
- describe('Text container connector style - Preview tab', () => {
356
- abortEarlySetup();
357
- before(() => {
358
- textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
359
- cy.barsPreLoaderWait();
360
- textEntryMathWithImagePage.steps.addBackground();
361
- textEntryMathWithImagePage.steps.expandStyleAndLayoutCustomizationAccordion();
362
- textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
363
- textEntryMathWithImagePage.steps.verifyImageIsUploaded();
364
- textEntryMathWithImagePage.steps.insertResponseArea(10);
365
- textEntryMathWithImagePage.steps.selectResponseArea(0);
366
- textEntryMathWithImagePage.steps.selectResponseAreaPointerStyle('left');
367
- textEntryMathWithImagePage.steps.switchToPreviewTab();
368
- });
369
-
370
- it('When the "Circle" connector style is in selected state, then the connector style of the text containers in the canvas image should be "dashed"', () => {
371
- textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab('Circle');
372
- });
373
-
374
- connectorStyles.forEach((button) => {
375
- it(`When the user selects ${button}, then the connector style of the text containers in the canvas image should update to ${button}`, () => {
376
- textEntryMathWithImagePage.steps.switchToEditTab();
377
- textEntryMathWithImagePage.steps.selectEndPointShapeButton(button);
378
- textEntryMathWithImagePage.steps.switchToPreviewTab();
379
- textEntryMathWithImagePage.steps.verifyResponseAreaConnectorEndPointShapePreviewTab(button);
380
- });
381
- })
382
- });
383
-
384
- });