itemengine-cypress-automation 1.0.154 → 1.0.155

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +1 -1
  2. package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +5 -5
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +2 -2
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -4
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +4 -4
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +1 -1
  8. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +6 -6
  9. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -3
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +34 -29
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
  14. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -0
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +4 -1
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -2
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -0
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +20 -8
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -2
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +3 -3
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +5 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +5 -2
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +2 -2
  35. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
  36. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +4 -3
  37. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
  38. package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +0 -8
  39. package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +1 -1
  40. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +39 -35
  41. package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +1 -1
  42. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +8 -6
  43. package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +475 -0
  44. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +669 -0
  45. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +1 -1
  46. package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +0 -11
  47. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +204 -0
  48. package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +229 -0
  49. package/cypress/e2e/ILC/GridFill/gridLayoutPreviewTabFunctionality.js +219 -0
  50. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -0
  51. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +2 -2
  52. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -2
  53. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  54. package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
  55. package/cypress/e2e/ILC/Matching/headerSection.js +82 -0
  56. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +93 -0
  57. package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
  58. package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +3 -0
  59. package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  60. package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +8 -10
  61. package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +3 -3
  62. package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +16 -25
  63. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
  64. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +403 -0
  65. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +363 -0
  66. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +393 -0
  67. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +377 -0
  68. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
  69. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +341 -0
  70. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +373 -0
  71. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +0 -1
  72. package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +27 -8
  73. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +15 -34
  74. package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -15
  75. package/cypress/e2e/ILC/ShortTextResponseNew/specifyCorrectAnswerSection.js +4 -4
  76. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +4 -2
  77. package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
  78. package/cypress/e2e/ILC/SingleSelection/specifyCorrectAnswerSection.js +3 -3
  79. package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +1 -1
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +183 -0
  81. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +185 -0
  82. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +263 -0
  83. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
  84. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +233 -0
  85. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +205 -0
  86. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +233 -0
  87. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +214 -0
  88. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
  89. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
  90. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +213 -0
  91. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +21 -17
  92. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
  93. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +25 -25
  94. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +20 -17
  95. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  96. package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +2 -3
  97. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +3 -3
  98. package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +2 -2
  99. package/cypress/fixtures/fillColorDefaultProperties.js +35 -0
  100. package/cypress/fixtures/theme/ilc.json +2 -1
  101. package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
  102. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  103. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  104. package/cypress/pages/components/backgroundImageUploadComponent.js +4 -1
  105. package/cypress/pages/components/colorPopupComponent.js +6 -3
  106. package/cypress/pages/components/commonComponents.js +1 -1
  107. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -3
  108. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +47 -12
  109. package/cypress/pages/components/gridQuestionCommonComponent.js +0 -81
  110. package/cypress/pages/components/imageCanvasComponent.js +10 -8
  111. package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
  112. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  113. package/cypress/pages/components/questionInstructionsComponent.js +1 -1
  114. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  115. package/cypress/pages/essayResponsePage.js +4 -4
  116. package/cypress/pages/fillInTheGapsDragAndDropPage.js +34 -23
  117. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
  118. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +26 -4
  119. package/cypress/pages/fillInTheGapsOverImageTextPage.js +0 -29
  120. package/cypress/pages/graphingPage.js +26 -16
  121. package/cypress/pages/gridFillPage.js +1610 -90
  122. package/cypress/pages/matchingPage.js +164 -20
  123. package/cypress/pages/multipleSelectionGridPage.js +82 -2
  124. package/cypress/pages/multipleSelectionPage.js +7 -2
  125. package/cypress/pages/rulerPage.js +3 -8
  126. package/cypress/pages/shortTextResponsePage.js +13 -0
  127. package/cypress/pages/simpleCalculatorPage.js +8 -0
  128. package/cypress/pages/singleSelectionGridPage.js +58 -2
  129. package/cypress/pages/textEntryMathPage.js +58 -11
  130. package/cypress/pages/uploadResponsePage.js +4 -2
  131. package/package.json +1 -1
  132. package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
  133. package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -41,6 +41,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
41
41
  });
42
42
 
43
43
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
44
+ shortTextResponsePage.steps.resetQuestionPreview();
44
45
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
45
46
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
46
47
  shortTextResponsePage.steps.checkAnswer();
@@ -48,6 +49,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
48
49
  });
49
50
 
50
51
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the correct response field should be displayed', () => {
52
+ shortTextResponsePage.steps.resetQuestionPreview();
51
53
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
52
54
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
53
55
  shortTextResponsePage.steps.checkAnswer();
@@ -55,6 +57,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
55
57
  });
56
58
 
57
59
  it('When user attempts the question with the exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
60
+ shortTextResponsePage.steps.resetQuestionPreview();
58
61
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
59
62
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
60
63
  shortTextResponsePage.steps.checkAnswer();
@@ -82,6 +85,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
82
85
  });
83
86
 
84
87
  it('When user attempts the question with a sentence that includes the answer with incorrect casing, then full score should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
88
+ shortTextResponsePage.steps.resetQuestionPreview();
85
89
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
86
90
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
87
91
  shortTextResponsePage.steps.checkAnswer();
@@ -97,6 +101,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
97
101
  });
98
102
 
99
103
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
104
+ shortTextResponsePage.steps.resetQuestionPreview();
100
105
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
101
106
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
102
107
  shortTextResponsePage.steps.checkAnswer();
@@ -104,6 +109,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
104
109
  });
105
110
 
106
111
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
112
+ shortTextResponsePage.steps.resetQuestionPreview();
107
113
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
108
114
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
109
115
  shortTextResponsePage.steps.checkAnswer();
@@ -111,6 +117,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
111
117
  });
112
118
 
113
119
  it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
120
+ shortTextResponsePage.steps.resetQuestionPreview();
114
121
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
115
122
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
116
123
  shortTextResponsePage.steps.checkAnswer();
@@ -138,6 +145,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
138
145
  });
139
146
 
140
147
  it('When user attempts the question with a sentence that includes the answer with incorrect casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
148
+ shortTextResponsePage.steps.resetQuestionPreview();
141
149
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
142
150
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
143
151
  shortTextResponsePage.steps.checkAnswer();
@@ -153,6 +161,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
153
161
  });
154
162
 
155
163
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
164
+ shortTextResponsePage.steps.resetQuestionPreview();
156
165
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
157
166
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
158
167
  shortTextResponsePage.steps.checkAnswer();
@@ -160,6 +169,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
160
169
  });
161
170
 
162
171
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the correct response field should be displayed', () => {
172
+ shortTextResponsePage.steps.resetQuestionPreview();
163
173
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
164
174
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
165
175
  shortTextResponsePage.steps.checkAnswer();
@@ -167,6 +177,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
167
177
  });
168
178
 
169
179
  it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
180
+ shortTextResponsePage.steps.resetQuestionPreview();
170
181
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
171
182
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
172
183
  shortTextResponsePage.steps.checkAnswer();
@@ -192,6 +203,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
192
203
  });
193
204
 
194
205
  it('When user attempts the question with a sentence that includes the answer with incorrect casing, then full points should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
206
+ shortTextResponsePage.steps.resetQuestionPreview();
195
207
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
196
208
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
197
209
  shortTextResponsePage.steps.checkAnswer();
@@ -207,6 +219,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
207
219
  });
208
220
 
209
221
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
222
+ shortTextResponsePage.steps.resetQuestionPreview();
210
223
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
211
224
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
212
225
  shortTextResponsePage.steps.checkAnswer();
@@ -214,6 +227,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
214
227
  });
215
228
 
216
229
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
230
+ shortTextResponsePage.steps.resetQuestionPreview();
217
231
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
218
232
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
219
233
  shortTextResponsePage.steps.checkAnswer();
@@ -221,6 +235,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
221
235
  });
222
236
 
223
237
  it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
238
+ shortTextResponsePage.steps.resetQuestionPreview();
224
239
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
225
240
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
226
241
  shortTextResponsePage.steps.checkAnswer();
@@ -249,8 +264,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
249
264
  });
250
265
 
251
266
  it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
252
- shortTextResponsePage.steps.switchToEditTab();
253
- shortTextResponsePage.steps.switchToPreviewTab();
267
+ shortTextResponsePage.steps.resetQuestionPreview();
254
268
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
255
269
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
256
270
  shortTextResponsePage.steps.checkAnswer();
@@ -274,6 +288,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
274
288
  });
275
289
 
276
290
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
291
+ shortTextResponsePage.steps.resetQuestionPreview();
277
292
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
278
293
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
279
294
  shortTextResponsePage.steps.checkAnswer();
@@ -281,6 +296,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
281
296
  });
282
297
 
283
298
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
299
+ shortTextResponsePage.steps.resetQuestionPreview();
284
300
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
285
301
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
286
302
  shortTextResponsePage.steps.checkAnswer();
@@ -315,8 +331,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
315
331
  });
316
332
 
317
333
  it('When user attempts the question with a sentence which includes the answer with incorrect casing then full points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
318
- shortTextResponsePage.steps.switchToEditTab();
319
- shortTextResponsePage.steps.switchToPreviewTab();
334
+ shortTextResponsePage.steps.resetQuestionPreview();
320
335
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
321
336
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
322
337
  shortTextResponsePage.steps.checkAnswer();
@@ -340,6 +355,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
340
355
  });
341
356
 
342
357
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
358
+ shortTextResponsePage.steps.resetQuestionPreview();
343
359
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
344
360
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
345
361
  shortTextResponsePage.steps.checkAnswer();
@@ -347,6 +363,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
347
363
  });
348
364
 
349
365
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
366
+ shortTextResponsePage.steps.resetQuestionPreview();
350
367
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
351
368
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
352
369
  shortTextResponsePage.steps.checkAnswer();
@@ -381,8 +398,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
381
398
  });
382
399
 
383
400
  it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
384
- shortTextResponsePage.steps.switchToEditTab();
385
- shortTextResponsePage.steps.switchToPreviewTab();
401
+ shortTextResponsePage.steps.resetQuestionPreview();
386
402
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
387
403
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
388
404
  shortTextResponsePage.steps.checkAnswer();
@@ -406,6 +422,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
406
422
  });
407
423
 
408
424
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
425
+ shortTextResponsePage.steps.resetQuestionPreview();
409
426
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
410
427
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
411
428
  shortTextResponsePage.steps.checkAnswer();
@@ -413,6 +430,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
413
430
  });
414
431
 
415
432
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
433
+ shortTextResponsePage.steps.resetQuestionPreview();
416
434
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
417
435
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
418
436
  shortTextResponsePage.steps.checkAnswer();
@@ -448,8 +466,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
448
466
  });
449
467
 
450
468
  it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
451
- shortTextResponsePage.steps.switchToEditTab();
452
- shortTextResponsePage.steps.switchToPreviewTab();
469
+ shortTextResponsePage.steps.resetQuestionPreview();
453
470
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
454
471
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
455
472
  shortTextResponsePage.steps.checkAnswer();
@@ -473,6 +490,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
473
490
  });
474
491
 
475
492
  it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
493
+ shortTextResponsePage.steps.resetQuestionPreview();
476
494
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
477
495
  shortTextResponsePage.steps.verifyPreviewScore(0, 10);
478
496
  shortTextResponsePage.steps.checkAnswer();
@@ -480,6 +498,7 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
480
498
  });
481
499
 
482
500
  it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
501
+ shortTextResponsePage.steps.resetQuestionPreview();
483
502
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
484
503
  shortTextResponsePage.steps.verifyPreviewScore(10, 10);
485
504
  shortTextResponsePage.steps.checkAnswer();
@@ -263,47 +263,28 @@ describe('Create question page - Short text response: Question Instructions, Set
263
263
  it('When the user reaches the character limit, then the warning message \'Maximum # characters have been entered\' should be displayed', () => {
264
264
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Correct');
265
265
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Corre');
266
- shortTextResponsePage.steps.verifyWarningMessage('Maximum 5 characters have been entered.');
266
+ shortTextResponsePage.steps.verifyWarningMessage('Error: Maximum 5 characters have been entered.');
267
267
  });
268
268
 
269
- it('CSS of \'Character limit reached\' warning message and container', { tags: 'css' }, () => {
270
- utilities.verifyCSS(shortTextResponsePage.warningMessage(), {
271
- 'color': css.color.warningMessage,
272
- 'font-size': css.fontSize.normal,
273
- 'font-weight': css.fontWeight.regular
274
- });
275
- utilities.verifyCSS(shortTextResponsePage.warningMessageContainer().find('svg'), {
276
- 'color': css.color.warningMessage,
277
- });
278
- utilities.verifyCSS(shortTextResponsePage.warningMessageContainer(), {
279
- 'border': `1px solid ${css.color.warningContainerBorder}`
280
- });
281
- utilities.verifyCSS(shortTextResponsePage.warningMessageContainer(), {
282
- 'background-color': css.color.warningContainerBackground
283
- });
284
- });
285
-
286
- it('Accessibility of \'Character limit reached\' warning container', { tags: 'a11y' }, () => {
287
- cy.checkAccessibility(shortTextResponsePage.warningMessageContainer());
288
- });
269
+ shortTextResponsePage.tests.verifyErrorMessageCSSAndA11y();
289
270
 
290
271
  it('When the user removes/deletes some characters, the warning message should disappear', () => {
291
272
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('{backspace}');
292
273
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('');
293
- shortTextResponsePage.steps.verifyWarningMessageNotExist();
274
+ shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
294
275
  });
295
276
 
296
277
  it('When the user sets 3 as minimum character limit and enters the character less than the minimum character limit value set and focus out of response field, then the warning message \'Minimum 3 characters are required\' should be displayed', () => {
297
278
  shortTextResponsePage.steps.setMinimumLimit(3);
298
279
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Lo');
299
- shortTextResponsePage.steps.focusOutOfInputFieldSpecifyCorrectAnswerSection();
300
- shortTextResponsePage.steps.verifyWarningMessage('Minimum 3 characters are required.');
280
+ shortTextResponsePage.steps.focusOutOfSpecifyCorrectAnswerInputField();
281
+ shortTextResponsePage.steps.verifyWarningMessage('Error: Minimum 3 characters are required.');
301
282
  });
302
283
 
303
284
  it('When the user enters the character greater than the minimum character limit value set by the user, then the warning message should disappear', () => {
304
- shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('loelwy');
305
- shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('loelw');
306
- shortTextResponsePage.steps.verifyWarningMessageNotExist();
285
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('loel');
286
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('loel');
287
+ shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
307
288
  });
308
289
  });
309
290
 
@@ -324,7 +305,7 @@ describe('Create question page - Short text response: Question Instructions, Set
324
305
  it('When the user reaches the word limit, then the warning message \'Maximum # words have been entered\' should be displayed', () => {
325
306
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('The elephant played piano under the sunshine while riding a bicycle');
326
307
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('The elephant played piano under the sunshinewhileridingabicycle');
327
- shortTextResponsePage.steps.verifyWarningMessage('Maximum 7 words have been entered.');
308
+ shortTextResponsePage.steps.verifyWarningMessage('Error: Maximum 7 words have been entered.');
328
309
  });
329
310
 
330
311
  it('When the user removes/deletes some words, the warning message should disappear', () => {
@@ -335,8 +316,8 @@ describe('Create question page - Short text response: Question Instructions, Set
335
316
 
336
317
  it('When the user enters the word less than the minimum word limit value set by the user and focus out of response field, then the warning message \'Minimum # words are required\' should be displayed', () => {
337
318
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('abc abc');
338
- shortTextResponsePage.steps.focusOutOfInputFieldSpecifyCorrectAnswerSection();
339
- shortTextResponsePage.steps.verifyWarningMessage('Minimum 3 words are required.');
319
+ shortTextResponsePage.steps.focusOutOfSpecifyCorrectAnswerInputField();
320
+ shortTextResponsePage.steps.verifyWarningMessage('Error: Minimum 3 words are required.');
340
321
  });
341
322
 
342
323
  it('When the user enters the word greater than the minimum word limit value set by the user, then the warning message should disappear', () => {
@@ -389,7 +370,7 @@ describe('Create question page - Short text response: Question Instructions, Set
389
370
  it('When the user reaches the character limit, then the warning message \'Maximum # characters have been entered\' should be displayed', () => {
390
371
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Correct');
391
372
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('Corre');
392
- shortTextResponsePage.steps.verifyWarningMessage('Maximum 5 characters have been entered.');
373
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Maximum 5 characters have been entered.');
393
374
  });
394
375
 
395
376
  it('CSS of \'Character limit reached\' warning message and container', { tags: 'css' }, () => {
@@ -422,7 +403,7 @@ describe('Create question page - Short text response: Question Instructions, Set
422
403
  it('When the user enters the character less than the minimum character limit value set by the user and focus out of response field, then the warning message \'Minimum # characters are required\' should be displayed', () => {
423
404
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Lo');
424
405
  shortTextResponsePage.steps.focusOutOfResponseField();
425
- shortTextResponsePage.steps.verifyWarningMessage('Minimum 3 characters are required.');
406
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Minimum 3 characters are required.');
426
407
  });
427
408
 
428
409
  it('When the user enters the character greater than the minimum character limit value set by the user, then the warning message should disappear', () => {
@@ -468,7 +449,7 @@ describe('Create question page - Short text response: Question Instructions, Set
468
449
  it('When the user reaches the word limit, then the warning message \'Maximum # words have been entered\' should be displayed', () => {
469
450
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Answer entered is correctly entered');
470
451
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('Answer entered is correctly entered');
471
- shortTextResponsePage.steps.verifyWarningMessage('Maximum 5 words have been entered.');
452
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Maximum 5 words have been entered.');
472
453
  });
473
454
 
474
455
  it('When the user removes/deletes some words, the warning message should disappear', () => {
@@ -481,7 +462,7 @@ describe('Create question page - Short text response: Question Instructions, Set
481
462
  cy.log('Pre-step: Clearing the response field');
482
463
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('abc abc');
483
464
  shortTextResponsePage.steps.focusOutOfResponseField();
484
- shortTextResponsePage.steps.verifyWarningMessage('Minimum 3 words are required.');
465
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Minimum 3 words are required.');
485
466
  });
486
467
 
487
468
  it('When the user enters the word greater than the minimum word limit value set by the user, then the warning message should disappear', () => {
@@ -55,60 +55,58 @@ describe('Create Item page - Short text response ', () => {
55
55
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Hi23(^^)');
56
56
  });
57
57
 
58
- it('When user selects \'Number\' in accepted student input, then text inside the answer input field should only include numbers part from the previously entered input', () => {
58
+ it('When user selects \'Number\' in accepted student input, then text inside the answer input field should be removed and user should be able to include numbers in the input field', () => {
59
59
  shortTextResponsePage.steps.selectAcceptedStudentInputType(0, 'Number');
60
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('');
61
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('23');
60
62
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('23');
61
63
  });
62
64
 
63
65
  it('User should not be able to enter characters or special symbols i.e. answer input field should only contain numbers', () => {
64
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
65
66
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('ABc^12');
66
67
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('12');
67
68
  });
68
69
 
69
70
  it('User should be able to enter negative numbers, decimal numbers and zero in answer input field', () => {
70
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
71
71
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('-5');
72
72
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('-5');
73
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
74
73
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('29.54');
75
74
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('29.54');
76
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
77
75
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('0');
78
76
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('0');
79
77
  });
80
78
 
81
- it('When user selects \'Integer\' in accepted student input, then text inside the answer input field should only include whole numbers part from the previously entered input', () => {
79
+ it('When user selects \'Integer\' in accepted student input, then text inside the answer input field should be removed and user should be able to include numbers', () => {
82
80
  shortTextResponsePage.steps.selectAcceptedStudentInputType(0, 'Integer');
81
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('');
82
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('2954');
83
83
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('2954');
84
84
  });
85
85
 
86
86
  it('When \'Integer\' is selected in accepted student input, then user should not be able to add characters or special symbols i.e. input field should only include whole numbers', () => {
87
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
88
87
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('29hi*5k4.5');
89
88
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('29545');
90
89
  });
91
90
 
92
91
  it('User should be able to add zero in input field', () => {
93
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
94
92
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('0');
95
93
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('0');
96
94
  });
97
95
 
98
96
  it('User should not be able to add negative number i.e. input field should only include positive whole numbers', () => {
99
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
100
97
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('-44');
101
98
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('44');
102
99
  });
103
100
 
104
- it('When user selects \'Text\' in accepted student input again, then answer input field should contain text from previously added input', () => {
101
+ it('When user selects \'Text\' in accepted student input again, then answer input field should be removed and user should be able to enter text in input field', () => {
105
102
  shortTextResponsePage.steps.selectAcceptedStudentInputType(0, 'Text');
106
- shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('44');
103
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('');
104
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Text');
105
+ shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Text');
107
106
  });
108
107
 
109
108
  it('When user adds alternate answer input field, then accepted student input should be applied on both the response answer input fields in the response accordion', () => {
110
109
  shortTextResponsePage.steps.addAlternativeAnswerAccordion(1);
111
- shortTextResponsePage.steps.clearSpecifyCorrectAnswerInputField();
112
110
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Hi12');
113
111
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Hi12');
114
112
  });
@@ -131,7 +129,7 @@ describe('Create Item page - Short text response ', () => {
131
129
  it('When user enters numerical values in the response input field, then warning message \'Only text can be typed.\' should appear', () => {
132
130
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('23');
133
131
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('');
134
- shortTextResponsePage.steps.verifyWarningMessage('Only text can be typed.');
132
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Only text can be typed.');
135
133
  });
136
134
 
137
135
  it('CSS of warning message', { tags: 'css' }, () => {
@@ -187,7 +185,7 @@ describe('Create Item page - Short text response ', () => {
187
185
  it('When user enters alphanumeric values in the response input field, then and warning message \'Only number can be typed.\' should appear', () => {
188
186
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower');
189
187
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('');
190
- shortTextResponsePage.steps.verifyWarningMessage('Only number can be typed.');
188
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Only number can be typed.');
191
189
  });
192
190
 
193
191
  it('When user enters numeric text in response field then warning message should disappear', () => {
@@ -221,7 +219,7 @@ describe('Create Item page - Short text response ', () => {
221
219
 
222
220
  it('When user enters alphanumeric values in the response input field, then warning message \'Only integer can be typed.\' should appear', () => {
223
221
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower.*');
224
- shortTextResponsePage.steps.verifyWarningMessage('Only integer can be typed.');
222
+ shortTextResponsePage.steps.verifyWarningMessagePreviewTab('Only integer can be typed.');
225
223
  });
226
224
 
227
225
  it('When user enters integer text in response field then warning message should disappear', () => {
@@ -37,7 +37,7 @@ describe('Create Item page - single selection: Specify correct answer, Alternati
37
37
 
38
38
  it('When user has added an alternate answer accordion, then the newly added alternate answer accordion should be in expanded state and the correct answer accordion should be in collapsed state', () => {
39
39
  shortTextResponsePage.steps.verifyCorrectAnswerAccordionIsCollapsed();
40
- shortTextResponsePage.steps.verifyAlternateAnswerAccordionIsExpanded(1);
40
+ shortTextResponsePage.steps.verifyAlternateAnswerAccordionIsExpanded(0);
41
41
  });
42
42
 
43
43
  //Failed due to https://redmine.zeuslearning.com/issues/561067
@@ -54,13 +54,13 @@ describe('Create Item page - single selection: Specify correct answer, Alternati
54
54
  shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Petals');
55
55
  shortTextResponsePage.steps.allotPoints(5);
56
56
  shortTextResponsePage.steps.deleteAlternativeAnswerAccordion(1);
57
- shortTextResponsePage.steps.verifyAlternativeAnswerAccordionNotExists(2);
58
- shortTextResponsePage.steps.verifyAlternativeAnswerAccordionLabel(1);
57
+ shortTextResponsePage.steps.verifyAlternativeAnswerAccordionNotExists(1);
58
+ shortTextResponsePage.steps.verifyAlternativeAnswerAccordionLabel(0);
59
59
  });
60
60
 
61
61
  it('When correct answers and points are set in alternate answer and user clicks on correct answer accordion, then correct answer accordion should be expanded and the alternate answer accordion should be collapsed', () => {
62
62
  shortTextResponsePage.steps.expandCorrectAnswerAccordion();
63
- shortTextResponsePage.steps.verifyAlternateAnswerAccordionIsCollapsed(1);
63
+ shortTextResponsePage.steps.verifyAlternateAnswerAccordionIsCollapsed(0);
64
64
  });
65
65
  });
66
66
  });
@@ -66,6 +66,8 @@ describe('Simple calculator - Customize calculator settings, show calculator vis
66
66
  });
67
67
 
68
68
  it('When the user selects the "Parentheses" button, the "Sign change" and "Square root" buttons should continue to stay in deselected state', () => {
69
+ cy.log('Pre step: Deselecting the parenthesis button first')
70
+ simpleCalculatorPage.steps.deselectCustomizeCalculatorSettingsParenthesesButton();
69
71
  simpleCalculatorPage.steps.selectCustomizeCalculatorSettingsParenthesesButton();
70
72
  simpleCalculatorPage.steps.verifyCustomizeCalculatorSettingsSignChangeButtonDeselectedState();
71
73
  simpleCalculatorPage.steps.verifyCustomizeCalculatorSettingsSquareRootButtonDeselectedState();
@@ -75,11 +77,11 @@ describe('Simple calculator - Customize calculator settings, show calculator vis
75
77
  utilities.verifyCSS(simpleCalculatorPage.customizeCalculatorSettingsLabel(), {
76
78
  'color': css.color.labels,
77
79
  'font-size': css.fontSize.default,
78
- 'font-weight': css.fontWeight.regular
80
+ 'font-weight': css.fontWeight.semibold
79
81
  });
80
82
  cy.log('CSS of unselected button')
81
83
  utilities.verifyCSS(simpleCalculatorPage.customizeCalculatorSettingsPiButton().find('[class*="CalculatorStyleIconLabelWrapper"]'), {
82
- 'background-color': css.color.secondaryBtnBg
84
+ 'background-color': css.color.transparent
83
85
  });
84
86
  utilities.verifyCSS(utilities.getNthElement(simpleCalculatorPage.customizeCalculatorSettingsLabel(), 3), {
85
87
  'color': css.color.secondaryBtn,
@@ -25,7 +25,7 @@ describe('Create Item page - Single Selection - Block', () => {
25
25
  before(() => {
26
26
  cy.log('Navigating to Single Selection - block question type');
27
27
  singleSelectionPage.steps.navigateToCreateQuestion('single selection - block');
28
- singleSelectionPage.steps.expandAdditonalSettings();
28
+ singleSelectionPage.steps.expandAdditionalSettings();
29
29
  singleSelectionPage.steps.addInputToOptionsInputField(options);
30
30
  });
31
31
 
@@ -62,7 +62,7 @@ describe('Create Item page - Single Selection - Block', () => {
62
62
  before(() => {
63
63
  cy.log('Navigating to Single Selection - block question type');
64
64
  singleSelectionPage.steps.navigateToCreateQuestion('single selection - block');
65
- singleSelectionPage.steps.expandAdditonalSettings();
65
+ singleSelectionPage.steps.expandAdditionalSettings();
66
66
  singleSelectionPage.steps.switchToPreviewTab();
67
67
  });
68
68
 
@@ -64,9 +64,9 @@ describe('Create Item page - single selection: Specify correct answer, Alternati
64
64
  cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
65
65
  singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(2);
66
66
  singleSelectionPage.steps.allotPoints(5);
67
- singleSelectionPage.steps.deleteAlternativeAnswerAccordion(1);
68
- singleSelectionPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
69
- singleSelectionPage.steps.verifyAlternativeAnswerAccordionLabel(1);
67
+ singleSelectionPage.steps.deleteAlternativeAnswerAccordion(0);
68
+ singleSelectionPage.steps.verifyAlternativeAnswerAccordionNotExists(1);
69
+ singleSelectionPage.steps.verifyAlternativeAnswerAccordionLabel(0);
70
70
  });
71
71
  });
72
72
  });
@@ -160,7 +160,7 @@ describe('Create Item page - Single selection: Student view settings', () => {
160
160
 
161
161
  singleSelectionPage.tests.verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS();
162
162
 
163
- it('When user checks the \'Allow student to check answer\' checkbox then \'Disable previous incorrect options\' checkbox and \'Maximum check answer attempts\' dropdown should be displayed', () => {
163
+ it('When user checks the \'Allow students to check answer\' checkbox then \'Disable previous incorrect options\' checkbox and \'Maximum check answer attempts\' dropdown should be displayed', () => {
164
164
  singleSelectionPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
165
165
  utilities.verifyInnerText(singleSelectionPage.disablePreviousIncorrectOptionLabel(), 'Disable previous incorrect options');
166
166
  utilities.verifyElementVisibilityState(singleSelectionPage.disablePreviousIncorrectOptionCheckbox(), 'exist');