itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.0 → 1.0.576

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 (50) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -205
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -205
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -248
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -247
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -223
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -175
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -191
  11. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -184
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -177
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -206
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -228
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -229
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -229
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -206
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -183
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -206
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -184
  22. package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
  23. package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
  24. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +13 -0
  25. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
  26. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +117 -4
  27. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +101 -4
  28. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
  29. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +12 -2
  30. package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +38 -3
  31. package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +41 -23
  32. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +78 -3
  33. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +15 -0
  34. package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
  35. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +10 -164
  36. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +11 -165
  37. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +11 -165
  38. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -164
  39. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
  40. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -167
  41. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +15 -178
  42. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
  43. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +13 -165
  44. package/cypress/pages/chartsBarPage.js +1 -44
  45. package/cypress/pages/chartsDotPlotPage.js +1 -99
  46. package/cypress/pages/chartsLinePage.js +1 -48
  47. package/cypress/pages/components/equationEditorSectionCommonComponent.js +20 -0
  48. package/cypress/pages/components/essayResponseCommonComponents.js +29 -1
  49. package/cypress/pages/essayResponsePage.js +3 -1
  50. package/package.json +1 -1
@@ -2,8 +2,6 @@ import { chartsDotPlotPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
 
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
6
-
7
5
  const css = Cypress.env('css');
8
6
 
9
7
  describe('Create item page - Charts - Dot plot : All or nothing with alternative answers', () => {
@@ -29,12 +27,12 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
29
27
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
30
28
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
31
29
  chartsDotPlotPage.steps.allotPoints(30);
32
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
30
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
33
31
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
34
32
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
35
33
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
36
34
  chartsDotPlotPage.steps.allotPoints(24);
37
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
35
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
38
36
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
39
37
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
40
38
  //chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
@@ -73,8 +71,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
73
71
 
74
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 for dot column attempted correctly, correct answer section should not be displayed and a status message with text \'Your answer is correct\' should be displayed above the question preview', () => {
75
73
  chartsDotPlotPage.steps.resetQuestionPreview();
76
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 1, min: 1, interval: 1, defaultDots: 1 });
77
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
78
74
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
79
75
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
80
76
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -87,9 +83,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
87
83
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
88
84
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
89
85
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
90
- if (alternativeAnswerCheck === 'true') {
91
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
92
- }
93
86
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
94
87
  /*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 for dot column attempted correctly, a status message with text \'Your answer is correct\' should be displayed above the question preview')
95
88
  chartsDotPlotPage.steps.checkAnswer();
@@ -127,7 +120,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
127
120
 
128
121
  it('When the user attempts the question with alternative accordion response, 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 for dot column attempted correctly, correct answer section should not be displayed and a status message with text \'Your answer is correct\' should be displayed', () => {
129
122
  chartsDotPlotPage.steps.resetQuestionPreview();
130
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
123
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
131
124
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
132
125
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
133
126
  chartsDotPlotPage.steps.verifyPreviewScore(24, 30);
@@ -140,9 +133,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
140
133
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
141
134
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
142
135
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
143
- if (alternativeAnswerCheck === 'true') {
144
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
145
- }
146
136
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
147
137
  /*cy.log('When the user has attempted the question with alternative accordion response and clicks on \'Check answer\' button, then correct icon should be displayed for dot column attempted correctly, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
148
138
  chartsDotPlotPage.steps.checkAnswer();
@@ -158,7 +148,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
158
148
 
159
149
  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 for dot column attempted correctly from correct accordion and incorrect icon should be displayed for dot column set incorrectly, correct answer section should be displayed with response from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
160
150
  chartsDotPlotPage.steps.resetQuestionPreview();
161
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
151
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
162
152
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
163
153
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
164
154
  chartsDotPlotPage.steps.switchToGradingView();
@@ -175,24 +165,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
175
165
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
176
166
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
177
167
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
178
- if (alternativeAnswerCheck === 'true') {
179
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
180
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
181
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
182
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
183
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
184
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
185
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
186
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
187
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
188
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
189
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
190
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
191
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
192
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
193
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
194
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
195
- }
196
168
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
197
169
  /*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 for dot column attempted correctly from correct accordion and incorrect icon should be displayed for dot column set incorrectly and a status message with text \'Your answer is incorrect\' should be displayed')
198
170
  chartsDotPlotPage.steps.checkAnswer();
@@ -209,7 +181,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
209
181
  //Remove the skip after https://redmine.zeuslearning.com/issues/577731 is resolved.
210
182
  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, incorrect icon should be displayed for dot column attempted incorrectly from alternate accordion, a status message with text \'Your answer is incorrect\' should be displayed', () => {
211
183
  chartsDotPlotPage.steps.resetQuestionPreview();
212
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
184
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
213
185
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
214
186
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
215
187
  chartsDotPlotPage.steps.switchToGradingView();
@@ -226,24 +198,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
226
198
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
227
199
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
228
200
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
- if (alternativeAnswerCheck === 'true') {
230
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
231
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
232
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
233
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
234
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
235
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
236
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
237
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
238
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
239
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
240
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
241
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
242
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
243
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
244
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
245
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
246
- }
247
201
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
248
202
  /*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 incorrect icon should be displayed for dot column attempted incorrectly from alternate accordion, a status message with text \'Your answer is incorrect\' should be displayed');
249
203
  chartsDotPlotPage.steps.checkAnswer();
@@ -259,7 +213,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
259
213
 
260
214
  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 the dot column response from the correct accordion, incorrect icon should be displayed in the dot column response from the alternative accordion, correct answer section with all correct answers from the correct accordion and a status message with text \'Your answer is incorrect\'', () => {
261
215
  chartsDotPlotPage.steps.resetQuestionPreview();
262
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
216
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
263
217
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
264
218
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
265
219
  chartsDotPlotPage.steps.switchToGradingView();
@@ -276,24 +230,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
276
230
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
277
231
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
278
232
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
279
- if (alternativeAnswerCheck === 'true') {
280
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
281
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
282
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
283
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
284
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
285
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
286
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
287
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
288
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
289
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
290
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
291
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
292
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
293
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
294
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
295
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
296
- }
297
233
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
298
234
  /*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 unselected and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column response from the correct accordion, incorrect icon should be displayed in the dot column response from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed');
299
235
  chartsDotPlotPage.steps.checkAnswer();
@@ -314,7 +250,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
314
250
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
315
251
  chartsDotPlotPage.steps.switchToGradingView();
316
252
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
317
- chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
253
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
318
254
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
319
255
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
320
256
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
@@ -326,24 +262,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
326
262
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
327
263
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
328
264
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
329
- if (alternativeAnswerCheck === 'true') {
330
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
331
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
332
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
333
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
334
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
335
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
336
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
337
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
338
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
339
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
340
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
341
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
342
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
343
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
344
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
345
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
346
- }
347
265
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
348
266
  /*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')
349
267
  chartsDotPlotPage.steps.checkAnswer();
@@ -359,7 +277,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
359
277
 
360
278
  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', () => {
361
279
  chartsDotPlotPage.steps.resetQuestionPreview();
362
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
280
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
363
281
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
364
282
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
365
283
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
@@ -377,24 +295,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
377
295
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
378
296
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
379
297
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
380
- if (alternativeAnswerCheck === 'true') {
381
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
382
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
383
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
384
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
385
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
386
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
387
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
388
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
389
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
390
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
391
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
392
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
393
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
394
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
395
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
396
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
397
- }
398
298
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
399
299
  /*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')
400
300
  chartsDotPlotPage.steps.checkAnswer();
@@ -410,7 +310,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
410
310
 
411
311
  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 response from correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
412
312
  chartsDotPlotPage.steps.resetQuestionPreview();
413
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
313
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
414
314
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
415
315
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
416
316
  chartsDotPlotPage.steps.switchToGradingView();
@@ -427,24 +327,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
427
327
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
428
328
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
429
329
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
430
- if (alternativeAnswerCheck === 'true') {
431
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
432
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
433
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
434
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
435
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
436
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
437
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
438
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
439
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
440
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
441
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
442
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
443
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
444
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
445
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
446
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
447
- }
448
330
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
449
331
  /*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 the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in response from correct accordion, incorrect icon should be displayed in response from the alternative accordion, and a status message with text \'Your answer is incorrect\' should be displayed')
450
332
  chartsDotPlotPage.steps.checkAnswer();
@@ -461,7 +343,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
461
343
  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 common dot column attempted correctly and incorrect icon should be displayed in dot column set incorrectly, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
462
344
  chartsDotPlotPage.steps.resetQuestionPreview();
463
345
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
464
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
346
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
465
347
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
466
348
  chartsDotPlotPage.steps.switchToGradingView();
467
349
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -477,24 +359,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
477
359
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
478
360
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
479
361
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
480
- if (alternativeAnswerCheck === 'true') {
481
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
482
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
483
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
484
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
485
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
486
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
487
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
488
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
489
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
490
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
491
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
492
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
493
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
494
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
495
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
496
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
497
- }
498
362
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
499
363
  /*cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column attempted correctly and incorrect icon should be displayed in dot column set incorrectly and a status message with text \'Your answer is incorrect\' should be displayed')
500
364
  chartsDotPlotPage.steps.checkAnswer();
@@ -511,7 +375,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
511
375
  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 attempted incorrectly, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
512
376
  chartsDotPlotPage.steps.resetQuestionPreview();
513
377
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
514
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
378
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
515
379
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
516
380
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
517
381
  chartsDotPlotPage.steps.switchToGradingView();
@@ -528,24 +392,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
528
392
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
529
393
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
530
394
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
531
- if (alternativeAnswerCheck === 'true') {
532
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
533
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
534
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
535
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
536
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
537
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
538
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
539
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
540
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
541
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
542
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
543
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
544
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
545
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
546
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
547
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
548
- }
549
395
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
550
396
  /*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 and status message with text \'Your answer is incorrect\' should be displayed')
551
397
  chartsDotPlotPage.steps.checkAnswer();