itemengine-cypress-automation 1.0.573-IEI-7080-f70315e.0 → 1.0.573-IEI-7065-Improve-test-coverage-for-essay-response-c25d1ee.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
  2. package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
  3. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +14 -1
  4. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
  5. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +116 -4
  6. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +93 -0
  7. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
  8. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +11 -1
  9. package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +29 -2
  10. package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +11 -1
  11. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +75 -0
  12. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +13 -0
  13. package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +181 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +37 -2
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +72 -4
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +19 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +56 -1
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +57 -3
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +15 -18
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +54 -1
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +12 -0
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomizationAllViews.js +156 -0
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +0 -2
  25. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +7 -108
  26. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +7 -108
  27. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +7 -108
  28. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +9 -124
  29. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -123
  30. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +8 -123
  31. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -108
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +6 -93
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -108
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +2 -23
  35. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
  36. package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
  37. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
  38. package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
  39. package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
  40. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
  41. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
  42. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +284 -17
  43. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +397 -25
  44. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +320 -20
  45. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
  46. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +97 -10
  47. package/cypress/e2e/ILC/dataApi/saveItems.js +1 -1
  48. package/cypress/e2e/ILC/dataApi/saveQuestions.js +7 -7
  49. package/cypress/e2e/ILC/dataApi/saveQuestionsMCQAlternateAnswers.js +6 -6
  50. package/cypress/pages/components/additionalSettingsPanel.js +9 -0
  51. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  52. package/cypress/pages/components/colorPopupComponent.js +1 -1
  53. package/cypress/pages/components/equationEditorSectionCommonComponent.js +21 -0
  54. package/cypress/pages/components/essayResponseCommonComponents.js +20 -1
  55. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +4 -10
  56. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +14 -37
  57. package/cypress/pages/components/gradingViewEnumerationComponent.js +5 -0
  58. package/cypress/pages/components/imageCanvasComponent.js +0 -3
  59. package/cypress/pages/components/placeholderTextSectionComponent.js +10 -0
  60. package/cypress/pages/components/showAlternativeAnswersComponent.js +41 -65
  61. package/cypress/pages/essayResponsePage.js +2 -0
  62. package/cypress/pages/fillInTheGapsOverImageTextPage.js +21 -1
  63. package/cypress/pages/imageHighlightPage.js +184 -7
  64. package/cypress/pages/itemPreviewPage.js +1 -0
  65. package/cypress/pages/multipleSelectionPage.js +32 -0
  66. package/cypress/pages/singleSelectionPage.js +17 -0
  67. package/cypress/support/helpers/utilities.js +16 -0
  68. package/package.json +1 -1
  69. package/scripts/sorry-cypress.mjs +47 -53
  70. package/service.yaml +2 -2
@@ -1,9 +1,6 @@
1
1
  import { fillInTheGapsTextPage } from "../../../../pages";
2
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
3
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
3
 
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
6
-
7
4
  describe('Create item page - Fill in the gaps with text: Partial equal weights with alternative answers', () => {
8
5
  before(() => {
9
6
  cy.loginAs('admin');
@@ -28,21 +25,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
28
25
  it('When the user selects \'Grading\' view without attempting the question, correct answers section should be displayed with correct answers from the correct accordion and respective response area numeration', () => {
29
26
  fillInTheGapsTextPage.steps.switchToGradingView();
30
27
  fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
31
- if (alternativeAnswerCheck) {
32
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
33
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
34
- {
35
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
36
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
37
- },
38
- {
39
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
40
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
41
- }
42
- ]);
43
- } else {
44
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
45
- }
28
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
46
29
  });
47
30
 
48
31
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect and correct answer section should not be displayed', () => {
@@ -94,21 +77,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
94
77
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
95
78
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
96
79
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
97
- if (alternativeAnswerCheck) {
98
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
99
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
100
- {
101
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
102
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
103
- },
104
- {
105
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
106
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
107
- }
108
- ]);
109
- } else {
110
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
111
- }
80
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
112
81
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
113
82
  /*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
114
83
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -128,21 +97,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
128
97
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
129
98
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
130
99
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
131
- if (alternativeAnswerCheck) {
132
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
133
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
134
- {
135
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
136
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
137
- },
138
- {
139
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
140
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
141
- }
142
- ]);
143
- } else {
144
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
145
- }
100
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
146
101
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
147
102
  /*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response correct/incorrect status message should not be displayed and correct answer section should not be displayed')
148
103
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -162,21 +117,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
162
117
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
163
118
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
164
119
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
165
- if (alternativeAnswerCheck) {
166
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
167
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
168
- {
169
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
170
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
171
- },
172
- {
173
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
174
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
175
- }
176
- ]);
177
- } else {
178
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
179
- }
120
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
180
121
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
181
122
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
182
123
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -196,21 +137,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
196
137
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
197
138
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
198
139
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
199
- if (alternativeAnswerCheck) {
200
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
201
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
202
- {
203
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
204
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
205
- },
206
- {
207
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
208
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
209
- }
210
- ]);
211
- } else {
212
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
213
- }
140
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
214
141
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
215
142
  /*cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response correct/incorrect status message should not be displayed and correct answer section should not be displayed')
216
143
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -230,21 +157,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
230
157
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
231
158
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
232
159
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
233
- if (alternativeAnswerCheck) {
234
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
235
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
236
- {
237
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
238
- points: ['(15 points)', '(5 points)', '(5 points)', '(5 points)'],
239
- },
240
- {
241
- correctAnswers: [['Petals'],['Leaves'],['Stem']],
242
- points: ['(9 points)', '(3 points)', '(3 point)', '(3 points)'],
243
- }
244
- ]);
245
- } else {
246
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
247
- }
160
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
248
161
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
249
162
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response correct/incorrect status message should not be displayed and correct answer section should not be displayed')
250
163
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -270,21 +183,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
270
183
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(1);
271
184
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
272
185
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
273
- if (alternativeAnswerCheck) {
274
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
275
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
276
- {
277
- correctAnswers: [['Flower'],['Leaf'],['Stem']],
278
- points: ['(23 points)', '(7.67 points)', '(7.67 points)', '(7.67 points)'],
279
- },
280
- {
281
- correctAnswers: [['Petals'],['Leaves'],['Branch']],
282
- points: ['(5 points)', '(1.67 points)', '(1.67 point)', '(1.67 points)'],
283
- }
284
- ]);
285
- } else {
286
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
287
- }
186
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
288
187
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
289
188
  /*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on the \'Check answer\' button, correct icons should be displayed beside correct accordion responses, incorrect icons should be displayed for the alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
290
189
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -1,10 +1,7 @@
1
1
  import { fillInTheGapsTextPage } from "../../../../pages";
2
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
3
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
3
  import utilities from "../../../../support/helpers/utilities";
5
4
 
6
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
7
-
8
5
  describe('Create item page - Fill in the gaps with text: Response level alternate answer basic scoring', () => {
9
6
  before(() => {
10
7
  cy.loginAs('admin');
@@ -30,16 +27,7 @@ describe('Create item page - Fill in the gaps with text: Response level alternat
30
27
  fillInTheGapsTextPage.steps.switchToGradingView();
31
28
  fillInTheGapsTextPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
32
29
  fillInTheGapsTextPage.steps.verifyResponseAreaNumeration();
33
- if (alternativeAnswerCheck) {
34
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
35
- {
36
- correctAnswers: [['Flower', 'Fruit']],
37
- points: ['(15 points)'],
38
- },
39
- ]);
40
- } else {
41
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower']);
42
- }
30
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower']);
43
31
  });
44
32
 
45
33
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides the incorrect response, a status message with text \'Your answer is incorrect\' and correct answer section with the first correct answer set in the response accordion should be displayed', () => {
@@ -48,16 +36,7 @@ describe('Create item page - Fill in the gaps with text: Response level alternat
48
36
  fillInTheGapsTextPage.steps.switchToGradingView();
49
37
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
50
38
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
51
- if (alternativeAnswerCheck) {
52
- fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionWithAlternateAnswer([
53
- {
54
- correctAnswers: [['Flower', 'Fruit']],
55
- points: ['(15 points)'],
56
- },
57
- ]);
58
- } else {
59
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower']);
60
- }
39
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower']);
61
40
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
62
41
  /*cy.log('When the user attempts the question incorrectly and clicks on \'Check answer\' button, incorrect icon should be displayed besides the incorrect response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
63
42
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -198,4 +198,90 @@ describe('Create Item page - Image highlight : Additional settings', () => {
198
198
  imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
199
199
  });
200
200
  });
201
+
202
+ describe('Additional settings: Enumeration placement and details section', () => {
203
+ abortEarlySetup();
204
+ before(() => {
205
+ imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
206
+ cy.barsPreLoaderWait();
207
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
208
+ imageHighlightPage.steps.addTextInQuestionInstructionsInputField('Select the appropriate highlight in the image below');
209
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
210
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
211
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
212
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
213
+ imageHighlightPage.steps.allotPoints(10);
214
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
215
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
216
+ imageHighlightPage.steps.expandAdditionalSettings();
217
+ imageHighlightPage.steps.switchToPreviewTab();
218
+ });
219
+
220
+ it('The enumeration placement label should be displayed in the additional settings accordion of edit tab and should contain text "Enumeration placement"', () => {
221
+ imageHighlightPage.steps.switchToEditTab();
222
+ utilities.verifyInnerText(imageHighlightPage.enumerationPlacementLabel(), 'Enumeration placement');
223
+ utilities.verifyElementVisibilityState(imageHighlightPage.enumerationPlacementLabel(), 'visible');
224
+ });
225
+
226
+ it('Toggle buttons with options "Top", "Center" and "Bottom" should be present for enumeration placement and by default "Top" enumeration placement toggle button should be selected and other toggles should not be not selected', () => {
227
+ utilities.verifyElementVisibilityState(imageHighlightPage.enumerationToggleButtonContainer(), 'visible');
228
+ utilities.verifyElementVisibilityState(imageHighlightPage.enumerationPlacementTopToggleButton(), 'visible');
229
+ utilities.verifyElementVisibilityState(imageHighlightPage.enumerationPlacementCenterToggleButton(), 'visible');
230
+ utilities.verifyElementVisibilityState(imageHighlightPage.enumerationPlacementBottomToggleButton(), 'visible');
231
+ utilities.verifiedElementSelectedNotSelectedState(imageHighlightPage.enumerationPlacementTopToggleButton(), 'selected');
232
+ utilities.verifiedElementSelectedNotSelectedState(imageHighlightPage.enumerationPlacementCenterToggleButton(), 'notSelected');
233
+ utilities.verifiedElementSelectedNotSelectedState(imageHighlightPage.enumerationPlacementBottomToggleButton(), 'notSelected');
234
+ });
235
+
236
+ it('When toggle button for "Enumeration placement" is set to "Top" then the numeration placement should be updated to top for the highlight region in the preview tab', () => {
237
+ imageHighlightPage.steps.switchToPreviewTab();
238
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
239
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
240
+ imageHighlightPage.steps.switchToGradingView();
241
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Top', 0);
242
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Top', 1);
243
+ });
244
+
245
+ it('When the user changes "Enumeration placement" to bottom then the numeration placement should be updated to bottom for the highlight region in the preview tab', () => {
246
+ imageHighlightPage.steps.switchToEditTab();
247
+ imageHighlightPage.steps.selectBottomEnumerationPlacementToggle();
248
+ imageHighlightPage.steps.switchToPreviewTab();
249
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
250
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
251
+ imageHighlightPage.steps.switchToGradingView();
252
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Bottom', 0);
253
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Bottom', 1);
254
+ });
255
+
256
+ it('When the user changes "Enumeration placement" to center then the numeration placement should be updated to center for the highlight region in the preview tab', () => {
257
+ imageHighlightPage.steps.switchToEditTab();
258
+ imageHighlightPage.steps.selectCenterEnumerationPlacementToggle();
259
+ imageHighlightPage.steps.switchToPreviewTab();
260
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
261
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
262
+ imageHighlightPage.steps.switchToGradingView();
263
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Center', 0);
264
+ imageHighlightPage.steps.verifyNumerationPlacementForHighlightRegionInPreviewTab('Center', 1);
265
+ });
266
+
267
+ it('When the user has set "ARIA label", then it should be present for the highlight region in the preview tab', () => {
268
+ imageHighlightPage.steps.switchToEditTab();
269
+ imageHighlightPage.steps.enterTextInAriaLabelInputField(0, 'Correct response 1');
270
+ imageHighlightPage.steps.switchToPreviewTab();
271
+ imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Correct response 1, Response 1 of 2');
272
+ imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
273
+ });
274
+
275
+ it('Accessibility of input field in preview tab when custom \'ARIA label\' is set', { tags: 'a11y' }, () => {
276
+ cy.checkAccessibility(imageHighlightPage.highlightPreviewTab());
277
+ });
278
+
279
+ it('When the user clears the set value in the "ARIA label" input field, then the default aria labels should be present for the highlight region in the preview tab', () => {
280
+ imageHighlightPage.steps.switchToEditTab();
281
+ imageHighlightPage.steps.clearTextInAriaLabelInputField(0);
282
+ imageHighlightPage.steps.switchToPreviewTab();
283
+ imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(0, 'Response 1 of 2');
284
+ imageHighlightPage.steps.verifyHighlightRegionAriaLabelPreviewTab(1, 'Response 2 of 2');
285
+ });
286
+ });
201
287
  });
@@ -122,6 +122,18 @@ describe('Create item page - Image highlight: Background image section', () => {
122
122
  imageHighlightPage.steps.uncheckFillImageToCanvasCheckbox();
123
123
  });
124
124
 
125
+ it('When user unchecks \'Fill image to canvas\' checkbox, then the original image dimensions should be restored', () => {
126
+ imageHighlightPage.steps.switchToPreviewTab();
127
+ imageHighlightPage.steps.verifyImageUploadedPreviewTab();
128
+ imageHighlightPage.steps.verifyImageDimensionsPreviewTab(500, 500);
129
+ });
130
+
131
+ it('When user unchecks \'Fill image to canvas\' checkbox, saves the question then the original image dimensions should be restored in item preview', () => {
132
+ imageHighlightPage.steps.saveAQuestionWithIncompleteAuthoring();
133
+ imageHighlightPage.steps.verifyImageDimensionsPreviewTab(500, 500);
134
+ imageHighlightPage.steps.clickOnEditQuestionButton();
135
+ });
136
+
125
137
  it('\'Lock aspect ratio\' and \'Reset dimensions\' buttons should be displayed and by default \'Lock aspect ratio\' button should be locked', () => {
126
138
  utilities.verifyElementVisibilityState(imageHighlightPage.lockAspectRatioButton(), 'visible');
127
139
  utilities.verifyElementVisibilityState(imageHighlightPage.resetDimensionsButton(), 'visible');
@@ -220,7 +232,7 @@ describe('Create item page - Image highlight: Background image section', () => {
220
232
  });
221
233
  });
222
234
 
223
- describe.skip('Canvas width, Canvas height, Image alternative text - Edit tab canvas section functionality', () => {
235
+ describe('Canvas width, Canvas height, Image alternative text - Edit tab canvas section functionality', () => {
224
236
  abortEarlySetup();
225
237
  before(() => {
226
238
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -242,6 +254,7 @@ describe('Create item page - Image highlight: Background image section', () => {
242
254
 
243
255
  it('When aspect ratio is unlocked and user changes the value in height input field, then width input field should remain unchanged and the dimensions should be updated in the image popup preview section', () => {
244
256
  imageHighlightPage.steps.updateCanvasHeight(500);
257
+ cy.wait(500); //wait added to stabilize the test as sometimes it fails due to slow rendering of canvas preview section
245
258
  imageHighlightPage.steps.verifyCanvasHeight(500);
246
259
  imageHighlightPage.steps.verifyCanvasWidth(500);
247
260
  imageHighlightPage.steps.verifyCanvasHeightSpecifyCorrectAnswer(500);
@@ -251,8 +264,9 @@ describe('Create item page - Image highlight: Background image section', () => {
251
264
  it('When user locks the aspect ratio button and changes the value in the width input field, the height input field should be updated accordingly to maintain the updated aspect ratio', () => {
252
265
  imageHighlightPage.steps.lockAspectRatio();
253
266
  imageHighlightPage.steps.updateCanvasWidth(800);
254
- imageHighlightPage.steps.verifyCanvasHeight(500);
255
- imageHighlightPage.steps.verifyCanvasHeightSpecifyCorrectAnswer(500);
267
+ cy.wait(500); //wait added to stabilize the test as sometimes it fails due to slow rendering of canvas preview section
268
+ imageHighlightPage.steps.verifyCanvasHeight(450);
269
+ imageHighlightPage.steps.verifyCanvasHeightSpecifyCorrectAnswer(450);
256
270
  });
257
271
 
258
272
  it('When user selects the \'Reset dimensions\' button the height and width should reset to the original values', () => {
@@ -294,28 +308,47 @@ describe('Create item page - Image highlight: Background image section', () => {
294
308
  imageHighlightPage.steps.verifyCanvasImageTopLeftAlignedInPreviewTab();
295
309
  });
296
310
 
297
- it('When user selects \'Center\' image alignment in edit tab, then canvas image should be aligned to center in preview tab ', () => {
311
+ it('When \'Top left\' image alignment is selected by default, saves the question then in item preview the canvas image should be aligned to top left', () => {
312
+ imageHighlightPage.steps.saveAQuestionWithIncompleteAuthoring();
313
+ imageHighlightPage.steps.switchToPreviewTab();
314
+ imageHighlightPage.steps.verifyImageUploadedPreviewTab();
315
+ imageHighlightPage.steps.verifyCanvasImageTopLeftAlignedInPreviewTab();
298
316
  imageHighlightPage.steps.switchToEditTab();
317
+ imageHighlightPage.steps.clickOnEditQuestionButton();
318
+ });
319
+
320
+ it('When user selects \'Center\' image alignment in edit tab, then canvas image should be aligned to center in preview tab ', () => {
299
321
  imageHighlightPage.steps.selectCenterImageAlignment();
300
322
  imageHighlightPage.steps.switchToPreviewTab();
301
323
  imageHighlightPage.steps.verifyCanvasImageCenterAlignedInPreviewTab();
302
324
  });
303
325
 
304
- it('When user selects \'Top right\' image alignment, then canvas image should be aligned to top right in preview tab', () => {
326
+ it('When \'Center\' image alignment is selected by default, saves the question then in item preview the canvas image should be aligned to center', () => {
327
+ imageHighlightPage.steps.saveAQuestionWithIncompleteAuthoring();
328
+ imageHighlightPage.steps.switchToPreviewTab();
329
+ imageHighlightPage.steps.verifyImageUploadedPreviewTab();
330
+ imageHighlightPage.steps.verifyCanvasImageCenterAlignedInPreviewTab();
305
331
  imageHighlightPage.steps.switchToEditTab();
332
+ imageHighlightPage.steps.clickOnEditQuestionButton();
333
+ });
334
+
335
+ it('When user selects \'Top right\' image alignment, then canvas image should be aligned to top right in preview tab', () => {
306
336
  imageHighlightPage.steps.selectTopRightImageAlignment();
307
337
  imageHighlightPage.steps.switchToPreviewTab();
308
338
  imageHighlightPage.steps.verifyCanvasImageTopRightAlignedInPreviewTab();
309
339
  });
310
340
 
311
- it('When user selects \'Top left\' image alignment again, then image should be aligned to top left inside the canvas in preview tab', () => {
312
- imageHighlightPage.steps.switchToEditTab();
313
- imageHighlightPage.steps.selectTopLeftImageAlignment();
341
+ it('When \'Top right\' image alignment is selected by default, saves the question then in item preview the canvas image should be aligned to center', () => {
342
+ imageHighlightPage.steps.saveAQuestionWithIncompleteAuthoring();
314
343
  imageHighlightPage.steps.switchToPreviewTab();
315
- imageHighlightPage.steps.verifyCanvasImageTopLeftAlignedInPreviewTab();
344
+ imageHighlightPage.steps.verifyImageUploadedPreviewTab();
345
+ imageHighlightPage.steps.verifyCanvasImageTopRightAlignedInPreviewTab();
346
+ imageHighlightPage.steps.switchToEditTab();
347
+ imageHighlightPage.steps.clickOnEditQuestionButton();
316
348
  });
317
349
 
318
350
  it('When opacity is 100 percent by default, then canvas image should have 100 percent opacity in preview tab ', () => {
351
+ imageHighlightPage.steps.switchToPreviewTab();
319
352
  imageHighlightPage.steps.verifyOpacityValueForCanvasImageInPreviewTab(100);
320
353
  });
321
354
 
@@ -333,6 +366,15 @@ describe('Create item page - Image highlight: Background image section', () => {
333
366
  imageHighlightPage.steps.verifyOpacityValueForCanvasImageInPreviewTab(40);
334
367
  });
335
368
 
369
+ it('When user changes opacity input field value in edit tab, saves the question then opacity for canvas image should change accordingly in item preview tab ', () => {
370
+ imageHighlightPage.steps.switchToEditTab();
371
+ imageHighlightPage.steps.enterInputToOpacityInputField(50);
372
+ imageHighlightPage.steps.saveQuestion();
373
+ imageHighlightPage.steps.switchToItemPreviewTab();
374
+ imageHighlightPage.steps.verifyOpacityValueForCanvasImageInItemPreviewTab(50);
375
+ imageHighlightPage.steps.clickOnEditQuestionButton();
376
+ });
377
+
336
378
  it('When user checks \'Fill image to canvas\' checkbox in edit tab, then image should be adjusted to fit inside the canvas in preview tab', () => {
337
379
  imageHighlightPage.steps.switchToEditTab();
338
380
  imageHighlightPage.steps.checkFillImageToCanvasCheckbox();
@@ -340,6 +382,15 @@ describe('Create item page - Image highlight: Background image section', () => {
340
382
  imageHighlightPage.steps.verifyImageFitsToCanvasInPreviewTab();
341
383
  });
342
384
 
385
+ it('When user checks \'Fill image to canvas\' checkbox in edit tab, saves the question, then image should be adjusted to fit inside the canvas in item preview', () => {
386
+ imageHighlightPage.steps.switchToEditTab();
387
+ imageHighlightPage.steps.checkFillImageToCanvasCheckbox();
388
+ imageHighlightPage.steps.saveQuestion();
389
+ imageHighlightPage.steps.switchToPreviewTab();
390
+ imageHighlightPage.steps.verifyImageFitsToCanvasInPreviewTab();
391
+ imageHighlightPage.steps.clickOnEditQuestionButton();
392
+ });
393
+
343
394
  it('When user unchecks \'Fill image to canvas\' checkbox, then image dimensions should set to default state in preview tab', () => {
344
395
  imageHighlightPage.steps.switchToEditTab();
345
396
  imageHighlightPage.steps.uncheckFillImageToCanvasCheckbox();
@@ -10,10 +10,11 @@ const branchesHighlightRegion = [[50, 30], [50, 42], [65, 42], [65, 30]];
10
10
  const leafHighlightRegion = [[26, 26], [26, 36], [48, 36], [48, 26]];
11
11
  const rootsHighlightRegion = [[45, 45], [45, 55], [57, 55], [57, 45]];
12
12
 
13
- const defaultStateColor = 'rgb(120, 60, 60)';
13
+ const defaultStateColor = 'rgba(60, 73, 120, 0.4)';
14
+ const defaultStateColorSpecifyPossibleOptions = 'rgba(60, 120, 119, 0.7)';
14
15
  const activeStateColor = 'rgb(60, 120, 120)';
15
- const defaultStateBorderColorWithOpacity = 'rgba(120, 61, 61, 0.5)';
16
- const defaultStateBorderColorWithNoOpacity = 'rgba(120, 60, 60, 0)';
16
+ const defaultStateBorderColorWithOpacity = 'rgba(79, 60, 120, 0.5)';
17
+ const defaultStateBorderColorWithNoOpacity = 'rgba(79, 60, 120, 0)';
17
18
 
18
19
  describe('Create Item page - Image highlight: Customize image highlight style', () => {
19
20
  before(() => {
@@ -151,9 +152,9 @@ describe('Create Item page - Image highlight: Customize image highlight style',
151
152
  imageHighlightPage.steps.clickOnFillColorIcon();
152
153
  imageHighlightPage.steps.clickOnActiveStateColorEditButton();
153
154
  colorPopupComponent.steps.clickInColorSaturationPalette();
154
- imageHighlightPage.steps.verifySelectedColorBlock(defaultStateColor);
155
+ imageHighlightPage.steps.verifySelectedColorBlock(defaultStateColorSpecifyPossibleOptions);
155
156
  imageHighlightPage.steps.clickOnOkButton();
156
- imageHighlightPage.steps.verifyEditedFillColorInSpecifyCorrectAnswerSection(0, defaultStateColor);
157
+ imageHighlightPage.steps.verifyEditedFillColorInSpecifyCorrectAnswerSection(0, defaultStateColorSpecifyPossibleOptions);
157
158
  imageHighlightPage.steps.verifyEditedFillColorInSpecifyCorrectAnswerSection(1, activeStateColor);
158
159
  });
159
160
  });
@@ -323,7 +324,8 @@ describe('Create Item page - Image highlight: Customize image highlight style',
323
324
 
324
325
  // Change 'Stroke color' to 'Border color' in the following tests after https://redmine.zeuslearning.com/issues/580697 has been resolved.
325
326
 
326
- describe('Border color image highlight style : Edit tab content and functionality', () => {
327
+ //Remove skip once https://weldnorthed.atlassian.net/browse/IEI-6981 is resolved.
328
+ describe.skip('Border color image highlight style : Edit tab content and functionality', () => {
327
329
  abortEarlySetup();
328
330
  before(() => {
329
331
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -349,9 +351,9 @@ describe('Create Item page - Image highlight: Customize image highlight style',
349
351
  utilities.verifyElementVisibilityState(imageHighlightPage.colorPopupWrapper(), 'visible');
350
352
  });
351
353
 
352
- it('The popup should contain \'Border color\' label and two color boxes with label \'Default\' and \'Active\'. Both color boxes should have edit color button.Verify defualt color of both \'Default\' and \'Active\' color boxes', () => {
354
+ it('The popup should contain \'Stroke color\' label and two color boxes with label \'Default\' and \'Active\'. Both color boxes should have edit color button.Verify defualt color of both \'Default\' and \'Active\' color boxes', () => {
353
355
  utilities.verifyElementVisibilityState(imageHighlightPage.colorPopupMenuLabel(), 'visible');
354
- utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), 'Border color');
356
+ utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), 'Stroke color');
355
357
  utilities.verifyElementVisibilityState(imageHighlightPage.defaultStateColorLabel(), 'visible');
356
358
  utilities.verifyInnerText(imageHighlightPage.defaultStateColorLabel(), 'Default');
357
359
  utilities.verifyElementVisibilityState(imageHighlightPage.activeStateColorLabel(), 'visible');
@@ -479,7 +481,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
479
481
 
480
482
  it('\'Border style\' icon should be displayed and as user hovers over it then a tooltip \'Border style\' should be displayed', () => {
481
483
  utilities.verifyElementVisibilityState(imageHighlightPage.borderStyleButton(), 'visible');
482
- imageHighlightPage.steps.verifyToolTipText(3, imageHighlightPage.borderStyleButton(), 'Border style');
484
+ imageHighlightPage.steps.verifyToolTipText(3, imageHighlightPage.borderStyleButton(), 'Border Style');
483
485
  });
484
486
 
485
487
  it('When user clicks on the \'Border style\' icon then a popup should be displayed', () => {
@@ -622,7 +624,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
622
624
  });
623
625
 
624
626
  //Remove skip once ⁠https://redmine.zeuslearning.com/issues/579605 is resolved
625
- describe.skip('Fill color image highlight style : Preview tab and functionality', () => {
627
+ describe('Fill color image highlight style : Preview tab and functionality', () => {
626
628
  abortEarlySetup();
627
629
  before(() => {
628
630
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -700,7 +702,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
700
702
  });
701
703
 
702
704
  //Remove skip once ⁠https://redmine.zeuslearning.com/issues/579605 is resolved
703
- describe.skip('Border color image highlight style : Preview tab functionality', () => {
705
+ describe('Border color image highlight style : Preview tab functionality', () => {
704
706
  abortEarlySetup();
705
707
  before(() => {
706
708
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -778,7 +780,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
778
780
  });
779
781
 
780
782
  //Remove skip once ⁠https://redmine.zeuslearning.com/issues/579605 is resolved
781
- describe.skip('Border style image highlight style : Preview tab functionality', () => {
783
+ describe('Border style image highlight style : Preview tab functionality', () => {
782
784
  abortEarlySetup();
783
785
  before(() => {
784
786
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -102,8 +102,7 @@ describe('Create Item page - Image Highlight : Image selection style', () => {
102
102
 
103
103
  });
104
104
 
105
- //Need to remove skip once https://redmine.zeuslearning.com/issues/579605
106
- describe.skip('Image selection style: Preview tab functionality', () => {
105
+ describe('Image selection style: Preview tab functionality', () => {
107
106
  abortEarlySetup();
108
107
  before(() => {
109
108
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
@@ -139,6 +138,17 @@ describe('Create Item page - Image Highlight : Image selection style', () => {
139
138
  imageHighlightPage.steps.switchToEditTab();
140
139
  });
141
140
 
141
+ it('When user has selected \'Outline\' image selection style, saves the question and selects a highlighted region in \'Preview tab\' section then the region should be outlined and unselected highlighted regions should be in default state', () => {
142
+ imageHighlightPage.steps.saveAQuestionWithIncompleteAuthoring();
143
+ imageHighlightPage.steps.switchToPreviewTab();
144
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
145
+ imageHighlightPage.steps.verifyOutlineHighlightRegionItemPreviewTabSection(0);
146
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
147
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
148
+ imageHighlightPage.steps.switchToEditTab();
149
+ imageHighlightPage.steps.clickOnEditQuestionButton();
150
+ });
151
+
142
152
  it('When user has selected \'Pattern\' image selection style and selects a highlighted region in \'Preview tab\' section then the region should be filled with pattern and unselected highlighted regions should be in default state', () => {
143
153
  imageHighlightPage.steps.selectpatternToggleButton();
144
154
  imageHighlightPage.steps.verifyToggleButtonSelected('Pattern');
@@ -148,6 +158,5 @@ describe('Create Item page - Image Highlight : Image selection style', () => {
148
158
  imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
149
159
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
150
160
  });
151
-
152
161
  });
153
162
  });