itemengine-cypress-automation 1.0.573-IEI-7080-f70315e.0 → 1.0.573-IEI-7079-ed54ea2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
  11. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -24
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +181 -0
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +37 -2
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +72 -4
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +19 -1
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +56 -1
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +57 -3
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +15 -18
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +54 -1
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +12 -0
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomizationAllViews.js +156 -0
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +0 -2
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +7 -108
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +7 -108
  35. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +7 -108
  36. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +9 -124
  37. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -123
  38. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +8 -123
  39. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -108
  40. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +6 -93
  41. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -108
  42. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +2 -23
  43. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
  44. package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
  45. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
  46. package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
  47. package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
  48. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
  49. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +284 -17
  51. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +397 -25
  52. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +320 -20
  53. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
  54. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +97 -10
  55. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
  56. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
  57. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
  58. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +24 -14
  59. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
  60. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +26 -16
  61. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +25 -15
  62. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
  63. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -13
  64. package/cypress/e2e/ILC/dataApi/saveItems.js +1 -1
  65. package/cypress/e2e/ILC/dataApi/saveQuestions.js +7 -7
  66. package/cypress/e2e/ILC/dataApi/saveQuestionsMCQAlternateAnswers.js +6 -6
  67. package/cypress/pages/chartsBarPage.js +44 -1
  68. package/cypress/pages/chartsDotPlotPage.js +99 -1
  69. package/cypress/pages/chartsLinePage.js +48 -1
  70. package/cypress/pages/components/additionalSettingsPanel.js +9 -0
  71. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  72. package/cypress/pages/components/colorPopupComponent.js +1 -1
  73. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +4 -10
  74. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +14 -37
  75. package/cypress/pages/components/gradingViewEnumerationComponent.js +5 -0
  76. package/cypress/pages/components/imageCanvasComponent.js +0 -3
  77. package/cypress/pages/components/placeholderTextSectionComponent.js +10 -0
  78. package/cypress/pages/components/showAlternativeAnswersComponent.js +41 -65
  79. package/cypress/pages/fillInTheGapsOverImageTextPage.js +21 -1
  80. package/cypress/pages/imageHighlightPage.js +184 -7
  81. package/cypress/pages/itemPreviewPage.js +1 -0
  82. package/cypress/pages/multipleSelectionPage.js +32 -0
  83. package/cypress/pages/singleSelectionPage.js +17 -0
  84. package/cypress/support/helpers/utilities.js +16 -0
  85. package/package.json +1 -1
  86. package/scripts/sorry-cypress.mjs +47 -53
  87. package/service.yaml +2 -2
@@ -1,6 +1,8 @@
1
1
  import { chartsDotPlotPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
+
4
6
  describe('Create item page - Charts-Dot plot : All or nothing with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -24,12 +26,12 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
24
26
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
25
27
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
26
28
  chartsDotPlotPage.steps.allotPoints(30);
27
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
29
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
28
30
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
29
31
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
30
32
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
31
33
  chartsDotPlotPage.steps.allotPoints(30);
32
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
34
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
33
35
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
34
36
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
35
37
  //chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
@@ -68,6 +70,8 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
68
70
 
69
71
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed in the dot column attempted correctly, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
70
72
  chartsDotPlotPage.steps.resetQuestionPreview();
73
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 1, min: 1, interval: 1, defaultDots: 1 });
74
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
71
75
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
72
76
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
73
77
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -80,6 +84,9 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
80
84
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
81
85
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
82
86
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
87
+ if (alternativeAnswerCheck === 'true') {
88
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
89
+ }
83
90
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
84
91
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column attempted correctly, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
85
92
  chartsDotPlotPage.steps.checkAnswer();
@@ -95,7 +102,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
95
102
 
96
103
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
97
104
  chartsDotPlotPage.steps.resetQuestionPreview();
98
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
105
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
99
106
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
100
107
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
101
108
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -108,6 +115,9 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
108
115
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
109
116
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
110
117
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
118
+ if (alternativeAnswerCheck === 'true') {
119
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
120
+ }
111
121
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
112
122
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column attempted correctly, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
113
123
  chartsDotPlotPage.steps.checkAnswer();
@@ -123,7 +133,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
123
133
 
124
134
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column attempted correctly, incorrect icon should be displayed in the dot column set incorrectly and a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
125
135
  chartsDotPlotPage.steps.resetQuestionPreview();
126
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
136
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
127
137
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
128
138
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
129
139
  chartsDotPlotPage.steps.switchToGradingView();
@@ -140,6 +150,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
140
150
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
141
151
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
142
152
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
+ if (alternativeAnswerCheck === 'true') {
154
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
155
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
156
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
157
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
158
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
159
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
160
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
161
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
162
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
163
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
164
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
165
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
166
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
167
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
168
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
169
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
170
+ }
143
171
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
144
172
  /*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column attempted correctly, incorrect icon should be displayed in the dot column set incorrectly and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
145
173
  chartsDotPlotPage.steps.checkAnswer();
@@ -156,7 +184,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
156
184
  //Need to remove skip once https://redmine.zeuslearning.com/issues/577731 is resolved.
157
185
  it.skip('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column attempted correctly, incorrect icon should be displayed in the dot column set incorrectly and a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
158
186
  chartsDotPlotPage.steps.resetQuestionPreview();
159
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
187
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
160
188
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
161
189
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
162
190
  chartsDotPlotPage.steps.switchToGradingView();
@@ -173,6 +201,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
173
201
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
174
202
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
175
203
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
204
+ if (alternativeAnswerCheck === 'true') {
205
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
206
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
207
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
208
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
209
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
210
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
211
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
212
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
213
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
214
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
215
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
216
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
217
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
218
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
219
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
220
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
221
+ }
176
222
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
177
223
  /*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column attempted correctly, incorrect icon should be displayed in the dot column set incorrectly and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
178
224
  chartsDotPlotPage.steps.checkAnswer();
@@ -188,7 +234,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
188
234
 
189
235
  it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in attempted dot column from the alternative accordion, incorrect icon should be displayed in dot column set incorrectly, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
190
236
  chartsDotPlotPage.steps.resetQuestionPreview();
191
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
237
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
192
238
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
193
239
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
194
240
  chartsDotPlotPage.steps.switchToGradingView();
@@ -205,6 +251,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
205
251
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
206
252
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
207
253
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
254
+ if (alternativeAnswerCheck === 'true') {
255
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
256
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
257
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
258
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
259
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
260
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
261
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
262
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
263
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
264
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
265
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
266
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
267
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
268
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
269
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
270
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
271
+ }
208
272
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
209
273
  /*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed in attempted dot column from the alternative accordion, incorrect icon should be displayed in dot column set incorrectly, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
210
274
  chartsDotPlotPage.steps.checkAnswer();
@@ -225,7 +289,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
225
289
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
226
290
  chartsDotPlotPage.steps.switchToGradingView();
227
291
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
228
- chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
292
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
229
293
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
230
294
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
231
295
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
@@ -237,6 +301,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
237
301
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
238
302
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
239
303
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
304
+ if (alternativeAnswerCheck === 'true') {
305
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
306
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
307
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
308
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
309
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
310
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
311
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
312
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
313
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
314
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
315
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
316
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
317
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
318
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
319
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
320
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
321
+ }
240
322
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
241
323
  /*cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
242
324
  chartsDotPlotPage.steps.checkAnswer();
@@ -252,7 +334,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
252
334
 
253
335
  it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
254
336
  chartsDotPlotPage.steps.resetQuestionPreview();
255
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
337
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
256
338
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
257
339
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
258
340
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
@@ -270,6 +352,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
270
352
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
271
353
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
272
354
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
355
+ if (alternativeAnswerCheck === 'true') {
356
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
357
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
358
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
359
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
360
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
361
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
362
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
363
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
364
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
365
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
366
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
367
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
368
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
369
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
370
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
371
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
372
+ }
273
373
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
274
374
  /*cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
275
375
  chartsDotPlotPage.steps.checkAnswer();
@@ -285,7 +385,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
285
385
 
286
386
  it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in correctly attempted dot column from correct accordion and incorrect icon should be displayed in incorrectly attempted dot column from alternate accordion, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
287
387
  chartsDotPlotPage.steps.resetQuestionPreview();
288
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
388
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
289
389
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
290
390
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
291
391
  chartsDotPlotPage.steps.switchToGradingView();
@@ -302,6 +402,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
302
402
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
303
403
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
304
404
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
405
+ if (alternativeAnswerCheck === 'true') {
406
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
407
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
408
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
409
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
410
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
411
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
412
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
413
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
414
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
415
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
416
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
417
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
418
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
419
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
420
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
421
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
422
+ }
305
423
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
306
424
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in correctly attempted dot column from correct accordion and incorrect icon should be displayed in incorrectly attempted dot column from alternate accordion and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
307
425
  chartsDotPlotPage.steps.checkAnswer();
@@ -318,7 +436,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
318
436
  it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in correctly attempted common dot column and incorrect icons should be displayed in incorrectly set dot column, \'Your answer is incorrect\' and correct answer section should be displayed with responses from correct accordion', () => {
319
437
  chartsDotPlotPage.steps.resetQuestionPreview();
320
438
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
321
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
439
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
322
440
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
323
441
  chartsDotPlotPage.steps.switchToGradingView();
324
442
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -334,6 +452,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
334
452
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
335
453
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
336
454
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
455
+ if (alternativeAnswerCheck === 'true') {
456
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
457
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
458
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
459
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
460
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
461
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
462
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
463
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
464
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
465
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
466
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
467
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
468
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
469
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
470
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
471
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
472
+ }
337
473
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
338
474
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in correctly attempted common dot column and incorrect icons should be displayed in incorrectly set dot column and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
339
475
  chartsDotPlotPage.steps.checkAnswer();
@@ -350,7 +486,7 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
350
486
  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 icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
351
487
  chartsDotPlotPage.steps.resetQuestionPreview();
352
488
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
353
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
489
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
354
490
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
355
491
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
356
492
  chartsDotPlotPage.steps.switchToGradingView();
@@ -367,6 +503,24 @@ describe('Create item page - Charts-Dot plot : All or nothing with alternative a
367
503
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
368
504
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
369
505
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
506
+ if (alternativeAnswerCheck === 'true') {
507
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
508
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
509
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
510
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
511
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
512
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
513
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
514
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(30 points)');
515
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
516
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
517
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
518
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
519
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
520
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
521
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
522
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
523
+ }
370
524
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
371
525
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
372
526
  chartsDotPlotPage.steps.checkAnswer();