itemengine-cypress-automation 1.0.205-8thJuneFixes-5ad148f.0 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +2 -2
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +302 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +282 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +385 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +386 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +386 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +337 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -1
  9. package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +258 -0
  10. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  11. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +439 -0
  12. package/cypress/e2e/ILC/ChartsBar/headerSection.js +105 -0
  13. package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +450 -0
  14. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +91 -0
  15. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +73 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +3 -2
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +6 -6
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +169 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +119 -0
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +277 -0
  28. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +0 -2
  29. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -5
  30. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +1 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +4 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -0
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +14 -1
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/styleAndLayoutCutomization.js +378 -0
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +479 -0
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +3 -1
  39. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +7 -7
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +1 -0
  41. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -0
  42. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  43. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
  44. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +7 -7
  45. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
  46. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -4
  47. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +10 -9
  48. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -0
  49. package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +36 -16
  51. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +326 -176
  52. package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
  53. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +37 -15
  54. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +38 -17
  55. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +441 -186
  56. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +33 -14
  57. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +330 -164
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +1 -1
  59. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  60. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +4 -4
  61. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +20 -7
  62. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +83 -66
  63. package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
  64. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +25 -17
  65. package/cypress/e2e/ILC/SingleSelection/trueOrFalseCreateItem.js +2 -2
  66. package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettings.js +89 -0
  67. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
  68. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -2
  69. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -2
  70. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  71. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -2
  72. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
  73. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +1 -1
  74. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +15 -15
  75. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +21 -21
  76. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +17 -17
  77. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +21 -21
  78. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
  79. package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +8 -4
  80. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +0 -1
  81. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  82. package/cypress/pages/audioResponsePage.js +1 -1
  83. package/cypress/pages/chartsBarPage.js +785 -5
  84. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  85. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  86. package/cypress/pages/components/barAndLineChartComponent.js +180 -9
  87. package/cypress/pages/components/chartsCommonComponent.js +1 -0
  88. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +77 -0
  89. package/cypress/pages/components/essayResponseCommonComponents.js +2 -3
  90. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
  91. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +24 -7
  92. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +8 -4
  93. package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
  94. package/cypress/pages/components/imageCanvasComponent.js +112 -2
  95. package/cypress/pages/components/index.js +1 -0
  96. package/cypress/pages/components/layoutSectionComponent.js +4 -3
  97. package/cypress/pages/dragAndDropIntoCategoriesPage.js +960 -3
  98. package/cypress/pages/drawingResponsePage.js +2 -2
  99. package/cypress/pages/fillInTheGapsDragAndDropPage.js +4 -3
  100. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +18 -3
  101. package/cypress/pages/fillInTheGapsOverImageTextPage.js +65 -3
  102. package/cypress/pages/listOrderingPage.js +3 -3
  103. package/cypress/pages/multipleSelectionPage.js +77 -25
  104. package/cypress/pages/rulerPage.js +5 -0
  105. package/cypress/pages/singleSelectionPage.js +40 -1
  106. package/cypress/pages/videoResponsePage.js +1 -1
  107. package/package.json +2 -2
@@ -32,32 +32,42 @@ describe('Create item page - Multiple selection: All or nothing with alternative
32
32
  multipleSelectionPage.steps.switchToPreviewTab();
33
33
  });
34
34
 
35
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the correct accordion, correct answer label and border should not be displayed', () => {
35
+ it('When the user selects \'Grading\' view without attempting the question, no icons should only be displayed besides unattempted options, correct answer label and border should not be displayed and correct responses from correct accordion should be displayed in correct answer section', () => {
36
36
  multipleSelectionPage.steps.switchToGradingView();
37
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
38
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
39
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
40
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
41
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
37
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
38
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
39
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
40
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
41
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
42
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
42
43
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
43
44
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
44
- multipleSelectionPage.steps.switchToStudentView();
45
+ //correct answer section
46
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
47
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
48
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
49
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
50
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
51
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
52
+ multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
45
53
  });
46
54
 
47
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
55
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from correct accordion and status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
48
56
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
49
57
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
50
58
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
51
59
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
52
60
  multipleSelectionPage.steps.switchToGradingView();
53
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
54
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
55
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
56
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
57
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
61
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
62
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
63
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
64
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
65
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
66
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
58
67
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
59
- multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
60
- /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
68
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
69
+ //multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
70
+ /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
61
71
  multipleSelectionPage.steps.checkAnswer();
62
72
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
63
73
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
@@ -89,21 +99,23 @@ describe('Create item page - Multiple selection: All or nothing with alternative
89
99
  });
90
100
 
91
101
  //Failing due to: https://redmine.zeuslearning.com/issues/553572
92
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
102
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion , status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
93
103
  multipleSelectionPage.steps.resetQuestionPreview();
94
104
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
95
105
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
96
106
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
97
107
  multipleSelectionPage.steps.verifyPreviewScore(10, 20);
98
108
  multipleSelectionPage.steps.switchToGradingView();
99
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
100
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
101
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
102
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
103
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
109
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
110
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
111
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
112
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
113
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
114
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
104
115
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
116
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
105
117
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
106
- /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
118
+ /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
107
119
  multipleSelectionPage.steps.checkAnswer();
108
120
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
109
121
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -113,21 +125,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
113
125
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
114
126
  });
115
127
 
116
- it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
128
+ it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and no icons should be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct responses from correct accordion should be displayed in correct answer section', () => {
117
129
  multipleSelectionPage.steps.resetQuestionPreview();
118
130
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
119
131
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
120
132
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
121
133
  multipleSelectionPage.steps.switchToGradingView();
122
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
123
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
124
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
125
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
126
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
127
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
134
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
135
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
136
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
137
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
138
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
139
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
128
140
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
141
+ //correct answer section
142
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
143
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
144
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
145
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
146
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
147
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
129
148
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
130
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
149
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
131
150
  multipleSelectionPage.steps.checkAnswer();
132
151
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
133
152
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -136,21 +155,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
136
155
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
137
156
  });
138
157
 
139
- it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
158
+ it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and no icons should be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses and status message \'Your answer is incorrect\' should be displayed below the question preview and correct responses from correct accordion should be displayed in correct answer section', () => {
140
159
  multipleSelectionPage.steps.resetQuestionPreview();
141
160
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
142
161
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
143
162
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
144
163
  multipleSelectionPage.steps.switchToGradingView();
145
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
146
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
147
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
148
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
149
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
150
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
164
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
165
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
166
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
167
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
168
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
169
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
151
170
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
171
+ //correct answer section
172
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
173
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
174
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
175
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
176
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
177
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
152
178
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
179
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
154
180
  multipleSelectionPage.steps.checkAnswer();
155
181
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
156
182
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
@@ -159,19 +185,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
159
185
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
160
186
  });
161
187
 
162
- it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion answer responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
188
+ it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses and no icons should be displayed besides unattempted options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct responses from correct accordion should be displayed in correct answer section', () => {
163
189
  multipleSelectionPage.steps.resetQuestionPreview();
164
190
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
165
191
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
166
192
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
167
193
  multipleSelectionPage.steps.switchToGradingView();
168
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
169
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
170
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
171
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
194
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
195
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
196
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
197
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
198
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
199
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
172
200
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
201
+ //correct answer section
202
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
203
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
204
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
205
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
206
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
207
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
173
208
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
174
- /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
209
+ /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
175
210
  multipleSelectionPage.steps.checkAnswer();
176
211
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
177
212
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
@@ -181,19 +216,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
181
216
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
182
217
  });
183
218
 
184
- it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses and unattempted correct options from the correct accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
219
+ it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses and no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct responses from correct accordion should be displayed in correct answer section', () => {
185
220
  multipleSelectionPage.steps.resetQuestionPreview();
186
221
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
187
222
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
188
223
  multipleSelectionPage.steps.switchToGradingView();
189
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
190
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
191
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
192
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
193
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
224
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
225
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
226
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
227
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
228
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
229
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
194
230
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
231
+ //correct answer section
232
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
233
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
234
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
235
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
236
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
237
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
195
238
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
196
- /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
239
+ /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
197
240
  multipleSelectionPage.steps.checkAnswer();
198
241
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
199
242
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
@@ -201,20 +244,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
201
244
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
202
245
  });
203
246
 
204
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
247
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct responses from correct accordion should be displayed in correct answer section', () => {
205
248
  multipleSelectionPage.steps.resetQuestionPreview();
206
249
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
207
250
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
208
251
  multipleSelectionPage.steps.switchToGradingView();
209
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
210
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
211
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
212
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
213
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
214
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
252
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
253
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
254
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
255
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
256
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
257
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
215
258
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
216
- multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
217
- /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
259
+ //correct answer section
260
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
261
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
262
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
263
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
264
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
265
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
266
+ // multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
267
+ /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
218
268
  multipleSelectionPage.steps.checkAnswer();
219
269
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
220
270
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
@@ -285,33 +335,43 @@ describe('Create item page - Multiple selection: All or nothing with alternative
285
335
  multipleSelectionPage.steps.switchToPreviewTab();
286
336
  });
287
337
 
288
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the alternative accordion, correct answer label and border should not be displayed', () => {
338
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides unattempted options, correct answer from alternative accordion should be displayed in correct answer section', () => {
289
339
  multipleSelectionPage.steps.switchToGradingView();
290
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
291
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
292
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
293
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
294
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
340
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
341
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
342
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
343
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
344
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
345
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
295
346
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
296
347
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
297
- multipleSelectionPage.steps.switchToStudentView();
348
+ //correct answer section
349
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
350
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
351
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
352
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
353
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
354
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
355
+ multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
298
356
  });
299
357
 
300
358
  //Failing due to: https://redmine.zeuslearning.com/issues/553586
301
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the correct accordion and unattempted correct options from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
359
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the correct accordion and no icons should be displayed besides unattempted options and status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
302
360
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
303
361
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
304
362
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
305
363
  multipleSelectionPage.steps.verifyPreviewScore(10, 20);
306
364
  multipleSelectionPage.steps.switchToGradingView();
307
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
308
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
309
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
310
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
311
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
365
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
366
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
367
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
368
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
369
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
370
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
312
371
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
372
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
313
373
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
314
- /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
374
+ /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
315
375
  multipleSelectionPage.steps.checkAnswer();
316
376
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
317
377
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
@@ -321,21 +381,23 @@ describe('Create item page - Multiple selection: All or nothing with alternative
321
381
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
322
382
  });
323
383
 
324
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
384
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from alternative accordion and no icons should be displayed besides unattempted options, and status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
325
385
  multipleSelectionPage.steps.resetQuestionPreview();
326
386
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
327
387
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
328
388
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
329
389
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
330
390
  multipleSelectionPage.steps.switchToGradingView();
331
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
332
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
333
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
334
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
335
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
391
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
392
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
393
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
394
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
395
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
396
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
336
397
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
398
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
337
399
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
338
- /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
400
+ /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
339
401
  multipleSelectionPage.steps.checkAnswer();
340
402
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
341
403
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -346,21 +408,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
346
408
  });
347
409
 
348
410
  //Failing due to: https://redmine.zeuslearning.com/issues/553593
349
- it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
411
+ it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, no icons should be displayed besides unattempted options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
350
412
  multipleSelectionPage.steps.resetQuestionPreview();
351
413
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
352
414
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
353
415
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
354
416
  multipleSelectionPage.steps.switchToGradingView();
355
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
356
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
357
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
358
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
359
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
360
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
417
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
418
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
419
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
420
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
421
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
422
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
361
423
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
424
+ //correct answer section
425
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
426
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
427
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
428
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
429
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
430
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
362
431
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
363
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
432
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
364
433
  multipleSelectionPage.steps.checkAnswer();
365
434
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
366
435
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -369,21 +438,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
369
438
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
370
439
  });
371
440
 
372
- it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
441
+ it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should =be displayed besides correct responses, no icons should be displayed besides unattempted options, incorrect icon should be displayed besides the incorrect responses and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
373
442
  multipleSelectionPage.steps.resetQuestionPreview();
374
443
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
375
444
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
376
445
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
377
446
  multipleSelectionPage.steps.switchToGradingView();
378
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
379
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
380
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
381
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
382
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
383
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
447
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
448
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
449
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
450
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
451
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
452
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
384
453
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
454
+ //correct answer section
455
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
456
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
457
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
458
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
459
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
460
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
385
461
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
386
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
462
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
387
463
  multipleSelectionPage.steps.checkAnswer();
388
464
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
389
465
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
@@ -392,19 +468,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
392
468
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
393
469
  });
394
470
 
395
- it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion answer responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
471
+ it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses and no icons should be displayed besides unattempted options, incorrect icon should be displayed besides correct accordion responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
396
472
  multipleSelectionPage.steps.resetQuestionPreview();
397
473
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
398
474
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
399
475
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
400
476
  multipleSelectionPage.steps.switchToGradingView();
401
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(0);
402
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
403
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
404
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
477
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
478
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
479
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
480
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
481
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
482
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
405
483
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
484
+ //correct answer section
485
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
486
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
487
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
488
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
489
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
490
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
406
491
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
407
- /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
492
+ /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
408
493
  multipleSelectionPage.steps.checkAnswer();
409
494
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
410
495
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
@@ -413,19 +498,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
413
498
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
414
499
  });
415
500
 
416
- it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response and unattempted correct options from the alternative accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
501
+ it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response , no icons should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
417
502
  multipleSelectionPage.steps.resetQuestionPreview();
418
503
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
419
504
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
420
505
  multipleSelectionPage.steps.switchToGradingView();
421
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
422
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
423
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
424
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
425
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
506
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
507
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
508
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
509
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
510
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
511
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
426
512
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
513
+ //correct answer section
514
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
515
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
516
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
517
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
518
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
519
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
427
520
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
428
- /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common response, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
521
+ /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common response, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
429
522
  multipleSelectionPage.steps.checkAnswer();
430
523
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
431
524
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
@@ -433,20 +526,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
433
526
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
434
527
  });
435
528
 
436
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should only be displayed besides unattempted correct options from the alternative accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
529
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
437
530
  multipleSelectionPage.steps.resetQuestionPreview();
438
531
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
439
532
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
440
533
  multipleSelectionPage.steps.switchToGradingView();
441
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
442
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
443
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
444
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
445
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
446
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
534
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
535
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
536
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
537
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
538
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
539
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
447
540
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
541
+ //correct answer section
542
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
543
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(1);
544
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
545
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
546
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
547
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
448
548
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
449
- /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
549
+ /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
450
550
  multipleSelectionPage.steps.checkAnswer();
451
551
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
452
552
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
@@ -478,32 +578,42 @@ describe('Create item page - Multiple selection: All or nothing with alternative
478
578
  multipleSelectionPage.steps.switchToPreviewTab();
479
579
  });
480
580
 
481
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the correct accordion, correct answer label and border should not be displayed', () => {
581
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides unattempted options and correct answer from correct accordion should be displayed in correct answer section', () => {
482
582
  multipleSelectionPage.steps.switchToGradingView();
483
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
484
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
485
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
486
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
487
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
583
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
584
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
585
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
586
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
587
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
588
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
488
589
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
489
590
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
490
- multipleSelectionPage.steps.switchToStudentView();
591
+ //correct answer section
592
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
593
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
594
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
595
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
596
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
597
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
598
+ multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
491
599
  });
492
600
 
493
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
601
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from correct accordion, and status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
494
602
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
495
603
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
496
604
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
497
605
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
498
606
  multipleSelectionPage.steps.switchToGradingView();
499
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
500
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
501
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
502
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
503
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
607
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
608
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
609
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
610
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
611
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
612
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
504
613
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
614
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
505
615
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
506
- /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
616
+ /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
507
617
  multipleSelectionPage.steps.checkAnswer();
508
618
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
509
619
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
@@ -513,21 +623,23 @@ describe('Create item page - Multiple selection: All or nothing with alternative
513
623
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
514
624
  });
515
625
 
516
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview', () => {
626
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview and correct answer section should not be displayed', () => {
517
627
  multipleSelectionPage.steps.resetQuestionPreview();
518
628
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
519
629
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
520
630
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
521
631
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
522
632
  multipleSelectionPage.steps.switchToGradingView();
523
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
524
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
525
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
526
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
527
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
633
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
634
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
635
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
636
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(3);
637
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
638
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
528
639
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
640
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
529
641
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
530
- /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label \'Correct answer\' should be displayed below the question preview')
642
+ /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
531
643
  multipleSelectionPage.steps.checkAnswer();
532
644
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
533
645
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -537,21 +649,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
537
649
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
538
650
  });
539
651
 
540
- it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
652
+ it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and no icons should be displayed besides unattempted options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
541
653
  multipleSelectionPage.steps.resetQuestionPreview();
542
654
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
543
655
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
544
656
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
545
657
  multipleSelectionPage.steps.switchToGradingView();
546
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
547
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
548
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
549
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
550
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
551
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
658
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
659
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
660
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
661
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
662
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
663
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
552
664
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
665
+ //correct answer section
666
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
667
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
668
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
669
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
670
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
671
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
553
672
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
554
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
673
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
555
674
  multipleSelectionPage.steps.checkAnswer();
556
675
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
557
676
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -560,21 +679,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
560
679
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
561
680
  });
562
681
 
563
- it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and unattempted correct options from the alternative accordion, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
682
+ it('When the user attempts the question with partially correct responses exclusively from the alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses and no icons should be displayed besides unattempted options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
564
683
  multipleSelectionPage.steps.resetQuestionPreview();
565
684
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
566
685
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
567
686
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
568
687
  multipleSelectionPage.steps.switchToGradingView();
569
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
570
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
571
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
572
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(3);
573
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(4);
574
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
688
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
689
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
690
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
691
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
692
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(4);
693
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
575
694
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
695
+ //correct answer section
696
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
697
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
698
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
699
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
700
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
701
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
576
702
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
577
- /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
703
+ /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
578
704
  multipleSelectionPage.steps.checkAnswer();
579
705
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
580
706
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
@@ -583,19 +709,28 @@ describe('Create item page - Multiple selection: All or nothing with alternative
583
709
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
584
710
  });
585
711
 
586
- it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion answer responses and unattempted correct options from the correct accordion, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
712
+ it('When the user attempts the question with equal number of correct responses from correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion answer responses, no icons should be displayed besides unattempted options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
587
713
  multipleSelectionPage.steps.resetQuestionPreview();
588
714
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
589
715
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
590
716
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
591
717
  multipleSelectionPage.steps.switchToGradingView();
592
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
593
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
594
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
595
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
718
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
719
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
720
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
721
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
722
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
723
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
596
724
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
725
+ //correct answer section
726
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
727
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
728
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
729
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
730
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
731
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
597
732
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
598
- /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
733
+ /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
599
734
  multipleSelectionPage.steps.checkAnswer();
600
735
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
601
736
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
@@ -604,19 +739,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
604
739
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
605
740
  });
606
741
 
607
- it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response and unattempted correct options from the correct accordion, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview', () => {
742
+ it('Race condition : When the user attempts the question with the common response between correct accordion and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the common response and no icons should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
608
743
  multipleSelectionPage.steps.resetQuestionPreview();
609
744
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
610
745
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
611
746
  multipleSelectionPage.steps.switchToGradingView();
612
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
613
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
614
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
615
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
616
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
747
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
748
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
749
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
750
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
751
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
752
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
617
753
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
754
+ //correct answer section
755
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
756
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
757
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
758
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
759
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
760
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
618
761
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
619
- /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
762
+ /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
620
763
  multipleSelectionPage.steps.checkAnswer();
621
764
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
622
765
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
@@ -624,20 +767,27 @@ describe('Create item page - Multiple selection: All or nothing with alternative
624
767
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
625
768
  });
626
769
 
627
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
770
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
628
771
  multipleSelectionPage.steps.resetQuestionPreview();
629
772
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
630
773
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
631
774
  multipleSelectionPage.steps.switchToGradingView();
632
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
633
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
634
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
635
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
636
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(4);
637
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(5);
775
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
776
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
777
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
778
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
779
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(4);
780
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(5);
638
781
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
782
+ //correct answer section
783
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
784
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
785
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
786
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
787
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
788
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
639
789
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
640
- /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label \'Incorrect answer\' should be displayed below the question preview')
790
+ /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
641
791
  multipleSelectionPage.steps.checkAnswer();
642
792
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
643
793
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);