itemengine-cypress-automation 1.0.209-graphqlStagingUpdate-7ab593a.0 → 1.0.210-1stJulyFixes-e873781.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +1 -1
  2. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +1 -1
  3. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -1
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +22 -22
  5. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  6. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
  7. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  8. package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +1 -1
  9. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +824 -388
  10. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
  11. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  12. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  13. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +19 -18
  14. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +27 -26
  15. package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternatePoints.js +27 -26
  16. package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +10 -9
  17. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +23 -22
  18. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +7 -6
  19. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +29 -28
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +30 -29
  21. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +22 -21
  22. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsScoring.js +7 -6
  23. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +27 -26
  24. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +30 -29
  25. package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +21 -14
  26. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +17 -15
  27. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -4
  28. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -5
  29. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
  30. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -1
  31. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +16 -16
  32. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +4 -2
  33. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +7 -7
  34. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +4 -4
  35. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +7 -9
  36. package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +4 -0
  37. package/cypress/pages/components/createCustomCategoryFlyout.js +4 -3
  38. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
  39. package/cypress/pages/gridFillPage.js +5 -0
  40. package/cypress/pages/imageHighlightPage.js +2 -2
  41. package/cypress/pages/videoResponsePage.js +1 -1
  42. package/package.json +1 -1
@@ -35,6 +35,7 @@ describe('Create Item page - Image highlight: Partial different weights with alt
35
35
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
36
36
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
37
37
  imageHighlightPage.steps.allotPartialDifferentWeightsPoints({ 0: 12, 1: 8 });
38
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
38
39
  //imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
39
40
  imageHighlightPage.steps.switchToPreviewTab();
40
41
  });
@@ -44,11 +45,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
44
45
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
45
46
  imageHighlightPage.steps.switchToGradingView();
46
47
  imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
47
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
48
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
48
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
49
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
49
50
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
50
51
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
51
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
52
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
52
53
  });
53
54
 
54
55
  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 answer section should not be displayed', () => {
@@ -58,9 +59,9 @@ describe('Create Item page - Image highlight: Partial different weights with alt
58
59
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
59
60
  imageHighlightPage.steps.switchToGradingView();
60
61
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
61
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
62
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
62
63
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
63
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
64
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
64
65
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
65
66
  utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
66
67
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -101,11 +102,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
101
102
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
102
103
  imageHighlightPage.steps.verifyPreviewScore(11, 20);
103
104
  imageHighlightPage.steps.switchToGradingView();
104
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
105
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
105
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
106
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
106
107
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
107
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
108
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
108
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
109
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
109
110
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
110
111
 
111
112
  /*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 answer section should not be displayed')
@@ -122,11 +123,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
122
123
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
123
124
  imageHighlightPage.steps.verifyPreviewScore(8, 20);
124
125
  imageHighlightPage.steps.switchToGradingView();
125
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
126
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
126
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
127
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
127
128
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
128
129
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
129
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
130
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
130
131
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
131
132
 
132
133
  /*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 answer section should not be displayed')
@@ -144,11 +145,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
144
145
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
145
146
  imageHighlightPage.steps.verifyPreviewScore(11, 20);
146
147
  imageHighlightPage.steps.switchToGradingView();
147
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
148
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
149
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
150
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
151
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
148
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
149
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
150
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
151
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
152
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
152
153
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
154
 
154
155
  /*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 answer section should not be displayed')
@@ -167,10 +168,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
167
168
  imageHighlightPage.steps.verifyPreviewScore(12, 20);
168
169
  imageHighlightPage.steps.switchToGradingView();
169
170
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
170
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
171
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
171
172
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
172
173
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
173
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
174
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
174
175
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
175
176
 
176
177
  /*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 answer section should not be displayed')
@@ -188,10 +189,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
188
189
  imageHighlightPage.steps.verifyPreviewScore(12, 20);
189
190
  imageHighlightPage.steps.switchToGradingView();
190
191
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
191
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
192
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
192
193
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
193
194
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
194
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
195
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
195
196
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
196
197
 
197
198
  /*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, no icon should be displayed beside unattempted response correct answer section should not be displayed')
@@ -211,10 +212,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
211
212
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
212
213
  imageHighlightPage.steps.switchToGradingView();
213
214
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
214
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
215
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
216
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
217
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
215
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
216
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
217
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
218
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
218
219
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
220
 
220
221
  /*cy.log('When the user has attempted the question with partially correct with all the response and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, correct answer section should not be displayed')
@@ -231,11 +232,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
231
232
  imageHighlightPage.steps.highlightARegionInPreviewTab(2);
232
233
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
233
234
  imageHighlightPage.steps.switchToGradingView();
234
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
235
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
235
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
236
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
236
237
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
237
238
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
238
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
239
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
239
240
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
240
241
 
241
242
  /*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 answer section should not be displayed')
@@ -35,6 +35,7 @@ describe('Create Item page - Image highlight: Partial different weights with alt
35
35
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
36
36
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
37
37
  imageHighlightPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 12 });
38
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
38
39
  //imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
39
40
  imageHighlightPage.steps.switchToPreviewTab();
40
41
  });
@@ -44,11 +45,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
44
45
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
45
46
  imageHighlightPage.steps.switchToGradingView();
46
47
  imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
47
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
48
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
48
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
49
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
49
50
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
50
51
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
51
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
52
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
52
53
  });
53
54
 
54
55
  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 answer section should not be displayed', () => {
@@ -58,9 +59,9 @@ describe('Create Item page - Image highlight: Partial different weights with alt
58
59
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
59
60
  imageHighlightPage.steps.switchToGradingView();
60
61
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
61
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
62
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
62
63
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
63
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
64
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
64
65
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
65
66
  utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
66
67
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -101,11 +102,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
101
102
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
102
103
  imageHighlightPage.steps.verifyPreviewScore(11, 20);
103
104
  imageHighlightPage.steps.switchToGradingView();
104
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
105
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
105
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
106
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
106
107
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
107
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
108
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
108
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
109
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
109
110
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
110
111
 
111
112
  /*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 answer section should not be displayed')
@@ -122,11 +123,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
122
123
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
123
124
  imageHighlightPage.steps.verifyPreviewScore(12, 20);
124
125
  imageHighlightPage.steps.switchToGradingView();
125
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
126
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
126
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
127
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
127
128
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
128
129
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
129
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
130
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
130
131
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
131
132
 
132
133
  /*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 answer section should not be displayed')
@@ -144,11 +145,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
144
145
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
145
146
  imageHighlightPage.steps.verifyPreviewScore(12, 20);
146
147
  imageHighlightPage.steps.switchToGradingView();
147
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
148
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
149
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
150
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
151
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
148
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
149
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
150
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
151
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
152
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
152
153
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
154
 
154
155
  /*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 answer section should not be displayed')
@@ -167,10 +168,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
167
168
  imageHighlightPage.steps.verifyPreviewScore(9, 20);
168
169
  imageHighlightPage.steps.switchToGradingView();
169
170
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
170
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
171
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
171
172
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
172
173
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
173
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
174
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
174
175
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
175
176
 
176
177
  /*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 answer section should not be displayed')
@@ -188,10 +189,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
188
189
  imageHighlightPage.steps.verifyPreviewScore(9, 20);
189
190
  imageHighlightPage.steps.switchToGradingView();
190
191
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
191
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
192
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
192
193
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
193
194
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
194
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
195
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
195
196
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
196
197
 
197
198
  /*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, no icon should be displayed beside unattempted response correct answer section should not be displayed')
@@ -211,10 +212,10 @@ describe('Create Item page - Image highlight: Partial different weights with alt
211
212
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
212
213
  imageHighlightPage.steps.switchToGradingView();
213
214
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
214
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
215
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
216
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
217
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
215
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
216
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
217
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
218
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
218
219
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
220
 
220
221
  /*cy.log('When the user has attempted the question with partially correct with all the response and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, correct answer section should not be displayed')
@@ -231,11 +232,11 @@ describe('Create Item page - Image highlight: Partial different weights with alt
231
232
  imageHighlightPage.steps.highlightARegionInPreviewTab(2);
232
233
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
233
234
  imageHighlightPage.steps.switchToGradingView();
234
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
235
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
235
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
236
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
236
237
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
237
238
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
238
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
239
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
239
240
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
240
241
 
241
242
  /*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 answer section should not be displayed')
@@ -267,7 +268,7 @@ describe('Create Item page - Image highlight: Partial different weights with alt
267
268
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
268
269
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
269
270
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
270
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
271
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
271
272
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
272
273
 
273
274
  /*cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green check-mark icons should be displayed for the correct tab option, red cross-mark icon should be displayed for the alternate tab options, correct answers container should not be displayed and correct/incorrect answer label and its border should not be displayed')
@@ -36,6 +36,7 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
36
36
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
37
37
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
38
38
  imageHighlightPage.steps.allotPoints(20);
39
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
39
40
  //imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
40
41
  imageHighlightPage.steps.switchToPreviewTab();
41
42
  });
@@ -45,8 +46,8 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
45
46
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
46
47
  imageHighlightPage.steps.switchToGradingView();
47
48
  imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
48
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
49
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
49
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
50
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
50
51
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
51
52
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
52
53
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
@@ -59,9 +60,9 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
59
60
  imageHighlightPage.steps.verifyPreviewScore(12, 20);
60
61
  imageHighlightPage.steps.switchToGradingView();
61
62
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
62
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
63
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
63
64
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
64
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
65
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
65
66
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
66
67
  utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
67
68
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -102,10 +103,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
102
103
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
103
104
  imageHighlightPage.steps.verifyPreviewScore(6, 20);
104
105
  imageHighlightPage.steps.switchToGradingView();
105
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
106
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
106
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
107
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
107
108
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
108
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
109
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
109
110
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
110
111
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
111
112
 
@@ -123,8 +124,8 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
123
124
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
124
125
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
125
126
  imageHighlightPage.steps.switchToGradingView();
126
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
127
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
127
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
128
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
128
129
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
129
130
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
130
131
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
@@ -145,10 +146,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
145
146
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
146
147
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
147
148
  imageHighlightPage.steps.switchToGradingView();
148
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
149
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
150
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
151
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
149
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
150
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
151
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
152
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
152
153
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
153
154
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
154
155
 
@@ -167,7 +168,7 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
167
168
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
168
169
  imageHighlightPage.steps.switchToGradingView();
169
170
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
170
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
171
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
171
172
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
172
173
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
173
174
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
@@ -191,8 +192,8 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
191
192
  imageHighlightPage.steps.switchToGradingView();
192
193
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
193
194
  imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
194
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
195
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
195
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
196
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
196
197
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
197
198
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
198
199
 
@@ -210,8 +211,8 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
210
211
  imageHighlightPage.steps.highlightARegionInPreviewTab(2);
211
212
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
212
213
  imageHighlightPage.steps.switchToGradingView();
213
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
214
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
214
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
215
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
215
216
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
216
217
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
217
218
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
@@ -242,9 +243,9 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
242
243
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
243
244
  imageHighlightPage.steps.verifyPreviewScore(25, 50);
244
245
  imageHighlightPage.steps.switchToGradingView();
245
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(0);
246
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
247
- imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
246
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
247
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
248
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
248
249
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
249
250
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 2', 'Option 3'], [1, 2]);
250
251
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -30,6 +30,7 @@ describe('Create item page - Image highlight: Partial equal weights', () => {
30
30
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
31
31
  imageHighlightPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
32
32
  imageHighlightPage.steps.allotPoints(15);
33
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
33
34
  //imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
34
35
  imageHighlightPage.steps.switchToPreviewTab();
35
36
  });
@@ -46,9 +47,9 @@ describe('Create item page - Image highlight: Partial equal weights', () => {
46
47
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
47
48
  imageHighlightPage.steps.verifyPreviewScore(0, 15);
48
49
  imageHighlightPage.steps.switchToGradingView();
49
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
50
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
51
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
50
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
51
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
52
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(2);
52
53
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
53
54
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2', 'Option 3'], [1, 2, 3]);
54
55
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -68,8 +69,8 @@ describe('Create item page - Image highlight: Partial equal weights', () => {
68
69
  imageHighlightPage.steps.verifyPreviewScore(5, 15);
69
70
  imageHighlightPage.steps.switchToGradingView();
70
71
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
71
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
72
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
72
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
73
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(2);
73
74
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
74
75
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2', 'Option 3'], [1, 2, 3]);
75
76
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -90,7 +91,7 @@ describe('Create item page - Image highlight: Partial equal weights', () => {
90
91
  imageHighlightPage.steps.switchToGradingView();
91
92
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
92
93
  imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
93
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
94
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(2);
94
95
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
95
96
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2', 'Option 3'], [1, 2, 3]);
96
97
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -36,6 +36,7 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
36
36
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
37
37
  imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
38
38
  imageHighlightPage.steps.allotPoints(20);
39
+ imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
39
40
  //imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
40
41
  imageHighlightPage.steps.switchToPreviewTab();
41
42
  });
@@ -45,11 +46,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
45
46
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
46
47
  imageHighlightPage.steps.switchToGradingView();
47
48
  imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
48
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
49
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
49
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
50
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
50
51
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
51
52
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
52
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
53
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
53
54
  });
54
55
 
55
56
  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 answer section should not be displayed', () => {
@@ -59,9 +60,9 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
59
60
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
60
61
  imageHighlightPage.steps.switchToGradingView();
61
62
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
62
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
63
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
63
64
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
64
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
65
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
65
66
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
66
67
  utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
67
68
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -102,11 +103,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
102
103
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
103
104
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
104
105
  imageHighlightPage.steps.switchToGradingView();
105
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
106
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
106
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
107
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
107
108
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
108
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
109
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
109
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
110
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
110
111
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
111
112
 
112
113
  /*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 answer section should not be displayed')
@@ -123,11 +124,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
123
124
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
124
125
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
125
126
  imageHighlightPage.steps.switchToGradingView();
126
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
127
- imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
127
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
128
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
128
129
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
129
130
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
130
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
131
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
131
132
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
132
133
 
133
134
  /*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 answer section should not be displayed')
@@ -145,11 +146,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
145
146
  imageHighlightPage.steps.highlightARegionInPreviewTab(3);
146
147
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
147
148
  imageHighlightPage.steps.switchToGradingView();
148
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
149
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
150
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
151
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
152
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
149
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
150
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
151
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
152
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
153
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
153
154
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
154
155
 
155
156
  /*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 answer section should not be displayed')
@@ -167,10 +168,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
167
168
  imageHighlightPage.steps.verifyPreviewScore(10, 20);
168
169
  imageHighlightPage.steps.switchToGradingView();
169
170
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
170
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
171
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
171
172
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
172
173
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
173
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
174
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
174
175
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
175
176
 
176
177
  /*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, no icon should be displayed beside unattempted response correct answer section should not be displayed')
@@ -190,10 +191,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
190
191
  imageHighlightPage.steps.verifyPreviewScore(20, 20);
191
192
  imageHighlightPage.steps.switchToGradingView();
192
193
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
193
- imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
194
- imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
195
- imageHighlightPage.steps.verifyCorrectHighlightRegion(3);
196
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
194
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
195
+ imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
196
+ imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
197
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
197
198
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
198
199
 
199
200
  /*cy.log('When the user has attempted the question with partially correct with all the response and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, correct answer section should not be displayed')
@@ -210,11 +211,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
210
211
  imageHighlightPage.steps.highlightARegionInPreviewTab(2);
211
212
  imageHighlightPage.steps.verifyPreviewScore(0, 20);
212
213
  imageHighlightPage.steps.switchToGradingView();
213
- imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
214
- imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
214
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
215
+ imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
215
216
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
216
217
  imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
217
- imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 4'], [1, 2]);
218
+ imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
218
219
  imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
220
 
220
221
  /*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 answer section should not be displayed')