itemengine-cypress-automation 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.0 → 1.0.578-IEI-7079-de6e553.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 (34) 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 +184 -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/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
  23. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
  24. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
  25. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +164 -14
  26. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
  27. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +167 -16
  28. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +178 -15
  29. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
  30. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +165 -13
  31. package/cypress/pages/chartsBarPage.js +44 -1
  32. package/cypress/pages/chartsDotPlotPage.js +99 -1
  33. package/cypress/pages/chartsLinePage.js +48 -1
  34. package/package.json +1 -1
@@ -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: Partial equal with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -21,14 +23,14 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
21
23
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
22
24
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
23
25
  chartsDotPlotPage.steps.allotPoints(30);
24
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
25
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
26
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
27
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
26
28
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
27
29
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
28
30
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
29
31
  chartsDotPlotPage.steps.allotPoints(30);
30
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
31
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
32
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
33
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
32
34
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
33
35
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
34
36
  chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
@@ -69,6 +71,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
69
71
 
70
72
  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 dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed', () => {
71
73
  chartsDotPlotPage.steps.resetQuestionPreview();
74
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
75
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
72
76
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
73
77
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
74
78
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -81,6 +85,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
81
85
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
82
86
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
83
87
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
88
+ if (alternativeAnswerCheck === 'true') {
89
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
90
+ }
84
91
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
85
92
  /*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 dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed')
86
93
  chartsDotPlotPage.steps.checkAnswer();
@@ -96,7 +103,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
96
103
 
97
104
  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 icon should be displayed in dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed', () => {
98
105
  chartsDotPlotPage.steps.resetQuestionPreview();
99
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
106
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
107
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
100
108
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
101
109
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
102
110
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -109,6 +117,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
109
117
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
110
118
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
111
119
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
120
+ if (alternativeAnswerCheck === 'true') {
121
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
122
+ }
112
123
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
113
124
  /*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 dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed')
114
125
  chartsDotPlotPage.steps.checkAnswer();
@@ -124,7 +135,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
124
135
 
125
136
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correct accordion and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
126
137
  chartsDotPlotPage.steps.resetQuestionPreview();
127
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
138
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
139
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
128
140
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
129
141
  chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
130
142
  chartsDotPlotPage.steps.switchToGradingView();
@@ -143,6 +155,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
143
155
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
144
156
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
145
157
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
158
+ //alternative answer
159
+ if (alternativeAnswerCheck === 'true') {
160
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
161
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
162
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
163
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
164
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
165
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
166
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
167
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
168
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
169
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
170
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
171
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
172
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
173
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
174
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
175
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
176
+ }
146
177
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
147
178
  /*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 dot column set correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
148
179
  chartsDotPlotPage.steps.checkAnswer();
@@ -158,7 +189,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
158
189
 
159
190
  it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
160
191
  chartsDotPlotPage.steps.resetQuestionPreview();
161
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
192
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
193
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
162
194
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
163
195
  chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
164
196
  chartsDotPlotPage.steps.switchToGradingView();
@@ -177,6 +209,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
177
209
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
178
210
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
179
211
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
212
+ //alternative answer
213
+ if (alternativeAnswerCheck === 'true') {
214
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
215
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
216
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
217
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
218
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
219
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
220
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
221
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
222
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
223
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
224
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
228
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
229
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
230
+ }
180
231
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
181
232
  /*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 dot column set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
182
233
  chartsDotPlotPage.steps.checkAnswer();
@@ -192,7 +243,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
192
243
 
193
244
  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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
194
245
  chartsDotPlotPage.steps.resetQuestionPreview();
195
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
246
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
247
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
196
248
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
197
249
  chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
198
250
  chartsDotPlotPage.steps.switchToGradingView();
@@ -211,6 +263,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
211
263
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
212
264
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
213
265
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
266
+ //alternative answer
267
+ if (alternativeAnswerCheck === 'true') {
268
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
269
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
270
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
271
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
272
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
273
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
274
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
275
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
276
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
277
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
278
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
279
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
280
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
281
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
282
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
283
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
284
+ }
214
285
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
215
286
  /*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 dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
216
287
  chartsDotPlotPage.steps.checkAnswer();
@@ -227,7 +298,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
227
298
  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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in common dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
228
299
  chartsDotPlotPage.steps.resetQuestionPreview();
229
300
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
230
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
301
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
302
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
231
303
  chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
232
304
  chartsDotPlotPage.steps.switchToGradingView();
233
305
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -244,6 +316,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
244
316
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
245
317
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
246
318
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
319
+ //alternative answer
320
+ if (alternativeAnswerCheck === 'true') {
321
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
322
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
323
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
324
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
325
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
326
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
327
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
328
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
329
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
330
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
331
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
332
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
334
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
335
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
336
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
337
+ }
247
338
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
248
339
  /*cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
249
340
  chartsDotPlotPage.steps.checkAnswer();
@@ -259,7 +350,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
259
350
 
260
351
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers ', () => {
261
352
  chartsDotPlotPage.steps.resetQuestionPreview();
262
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
353
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
354
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
263
355
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
264
356
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
265
357
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
@@ -279,6 +371,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
279
371
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
280
372
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
281
373
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
374
+ //alternative answer
375
+ if (alternativeAnswerCheck === 'true') {
376
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
377
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
378
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
379
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
380
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
381
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
382
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
383
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
384
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
385
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
386
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
387
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
388
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
389
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
390
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
391
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
392
+ }
282
393
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
283
394
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
284
395
  chartsDotPlotPage.steps.checkAnswer();
@@ -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: Partial equal with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -22,14 +24,14 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
22
24
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
23
25
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
24
26
  chartsDotPlotPage.steps.allotPoints(30);
25
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
26
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
27
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
28
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
27
29
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
28
30
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
29
31
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
30
32
  chartsDotPlotPage.steps.allotPoints(18);
31
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
32
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
33
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
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.selectAutoScoredScoringSubtype('Partial equal weights');
@@ -71,6 +73,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
71
73
 
72
74
  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 dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
73
75
  chartsDotPlotPage.steps.resetQuestionPreview();
76
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
77
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
74
78
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
75
79
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
76
80
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -83,6 +87,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
83
87
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
84
88
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
85
89
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
90
+ if (alternativeAnswerCheck === 'true') {
91
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
92
+ }
86
93
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
87
94
  /*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 dot column attempted correctly, a status message and correct answer section should not be displayed')
88
95
  chartsDotPlotPage.steps.checkAnswer();
@@ -98,7 +105,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
98
105
 
99
106
  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 full points) and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
100
107
  chartsDotPlotPage.steps.resetQuestionPreview();
101
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
108
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
109
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
102
110
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
103
111
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
104
112
  chartsDotPlotPage.steps.verifyPreviewScore(18, 30);
@@ -111,6 +119,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
111
119
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
112
120
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
113
121
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
122
+ if (alternativeAnswerCheck === 'true') {
123
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
124
+ }
114
125
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
115
126
  /*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 dot column attempted correctly, a status message and correct answer section should not be displayed')
116
127
  chartsDotPlotPage.steps.checkAnswer();
@@ -126,7 +137,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
126
137
 
127
138
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
128
139
  chartsDotPlotPage.steps.resetQuestionPreview();
129
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
140
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
141
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
130
142
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
131
143
  chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
132
144
  chartsDotPlotPage.steps.switchToGradingView();
@@ -145,6 +157,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
145
157
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
146
158
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
147
159
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
160
+ //alternative answer
161
+ if (alternativeAnswerCheck === 'true') {
162
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
163
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
164
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
165
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
166
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
167
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
168
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
169
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
170
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
171
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
172
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
173
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
174
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
175
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
176
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
177
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
178
+ }
148
179
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
149
180
  /*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 dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
150
181
  chartsDotPlotPage.steps.checkAnswer();
@@ -160,7 +191,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
160
191
 
161
192
  it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
162
193
  chartsDotPlotPage.steps.resetQuestionPreview();
163
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
194
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
195
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
164
196
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
165
197
  chartsDotPlotPage.steps.verifyPreviewScore(15, 30);
166
198
  chartsDotPlotPage.steps.switchToGradingView();
@@ -179,6 +211,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
179
211
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
180
212
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
181
213
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
214
+ //alternative answer
215
+ if (alternativeAnswerCheck === 'true') {
216
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
217
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
218
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
219
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
220
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
221
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
222
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
223
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
224
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
228
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
229
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
230
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
231
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
232
+ }
182
233
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
183
234
  /*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 dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
184
235
  chartsDotPlotPage.steps.checkAnswer();
@@ -194,7 +245,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
194
245
 
195
246
  it('When the user attempts the question partially correct with all the responses correct as per the alternate accordion but one response incomplete, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly from the alternative accordion and a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
196
247
  chartsDotPlotPage.steps.resetQuestionPreview();
197
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
248
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
249
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
198
250
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
199
251
  chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
200
252
  chartsDotPlotPage.steps.switchToGradingView();
@@ -213,6 +265,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
213
265
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
214
266
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
215
267
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
268
+ //alternative answer
269
+ if (alternativeAnswerCheck === 'true') {
270
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
271
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
272
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
273
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
274
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
275
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
276
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
277
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
278
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
279
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
280
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
281
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
282
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
283
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
284
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
285
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
286
+ }
216
287
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
217
288
  /*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 the dot column from the correct accordion, incorrect icon should be displayed in the dot column from the alternative accordion and, a status message should not be displayed and correct answer section should not be displayed')
218
289
  chartsDotPlotPage.steps.checkAnswer();
@@ -228,7 +299,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
228
299
 
229
300
  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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly from the alternative accordion as score achieved from the correct responses is more than alternate responses, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
230
301
  chartsDotPlotPage.steps.resetQuestionPreview();
231
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
302
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
303
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
232
304
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
233
305
  chartsDotPlotPage.steps.verifyPreviewScore(15, 30);
234
306
  chartsDotPlotPage.steps.switchToGradingView();
@@ -247,6 +319,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
247
319
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
248
320
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
249
321
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
322
+ //alternative answer
323
+ if (alternativeAnswerCheck === 'true') {
324
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
325
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
326
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
327
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
328
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
329
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
330
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
331
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
332
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
334
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
335
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
336
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
337
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
338
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
339
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
340
+ }
250
341
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
251
342
  /*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 dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly from the alternative accordion, a status message should not be displayed and correct answer section should not be displayed')
252
343
  chartsDotPlotPage.steps.checkAnswer();
@@ -263,7 +354,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
263
354
  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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
264
355
  chartsDotPlotPage.steps.resetQuestionPreview();
265
356
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
266
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
357
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
358
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
267
359
  chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
268
360
  chartsDotPlotPage.steps.switchToGradingView();
269
361
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -280,6 +372,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
280
372
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
281
373
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
282
374
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
375
+ //alternative answer
376
+ if (alternativeAnswerCheck === 'true') {
377
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
378
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
379
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
380
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
381
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
382
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
383
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
384
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
385
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
386
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
387
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
388
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
389
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
390
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
391
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
392
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
393
+ }
283
394
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
284
395
  /*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 common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
285
396
  chartsDotPlotPage.steps.checkAnswer();
@@ -295,7 +406,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
295
406
 
296
407
  it('When the user attempts the question incorrectly, then the user should be awarded points for correct bar only and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted incorrectly, a status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
297
408
  chartsDotPlotPage.steps.resetQuestionPreview();
298
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
409
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
410
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
299
411
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
300
412
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
301
413
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
@@ -315,6 +427,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
315
427
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
316
428
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
317
429
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
430
+ //alternative answer
431
+ if (alternativeAnswerCheck === 'true') {
432
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
433
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
434
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
435
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
436
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
437
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
438
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
439
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
440
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
441
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
442
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
443
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
444
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
445
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
446
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
447
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
448
+ }
318
449
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
319
450
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed in dot column attempted incorrectly, a status message should not be displayed and correct answer section should not be displayed')
320
451
  chartsDotPlotPage.steps.checkAnswer();
@@ -335,20 +466,22 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
335
466
  chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('All or nothing');
336
467
  chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
337
468
  chartsDotPlotPage.steps.allotPoints(14);
338
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 2, min: 1, interval: 1, defaultDots: 0 });
469
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
339
470
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
340
471
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
341
472
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
342
473
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
343
474
  chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
344
475
  chartsDotPlotPage.steps.allotPoints(41);
345
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1 });
476
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
346
477
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 3, min: 1, interval: 1 });
347
478
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 4, min: 1, interval: 1 });
348
479
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
349
480
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
350
481
  chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
351
482
  chartsDotPlotPage.steps.switchToPreviewTab();
483
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
484
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
352
485
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
353
486
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
354
487
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
@@ -369,6 +502,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
369
502
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
370
503
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
371
504
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
505
+ //alternative answer
506
+ if (alternativeAnswerCheck === 'true') {
507
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.83 pts)');
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, '(Points per response - 2.33 pts)');
515
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ 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.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
519
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
520
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
521
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
522
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
523
+ }
372
524
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
373
525
  /*cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, correct icons should be displayed in the correct responses from the correct accordion, incorrect icons should be displayed in the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
374
526
  chartsDotPlotPage.steps.checkAnswer();