itemengine-cypress-automation 1.0.575 → 1.0.576-IEI-7079-7fbe573.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 +24 -24
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
  22. package/cypress/e2e/ILC/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 +18 -10
  27. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +26 -16
  28. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +25 -15
  29. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
  30. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -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,5 +1,6 @@
1
1
  import { chartsBarPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
3
4
 
4
5
  describe('Create item page - Charts - Bar: Partial equal weights scoring with alternative answer - When Correct answer points are more than alternative Answer points with locked bars', () => {
5
6
  before(() => {
@@ -47,6 +48,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
47
48
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
48
49
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
49
50
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
51
+ if (alternativeAnswerCheck === 'true') {
52
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
53
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
54
+ { barIndex: 1, barValue: 4, range: 10 },
55
+ { barIndex: 2, barValue: 5, range: 10 },
56
+ { barIndex: 3, barValue: 6, range: 10 },
57
+ { barIndex: 4, barValue: 1, range: 10 }
58
+ ], 1);
59
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
60
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
61
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
62
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
63
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
64
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
65
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
66
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
67
+ { barIndex: 1, barValue: 2, range: 10 },
68
+ { barIndex: 2, barValue: 3, range: 10 },
69
+ { barIndex: 3, barValue: 1, range: 10 }
70
+ ], 2);
71
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
72
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
73
+ }
50
74
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
75
  });
52
76
 
@@ -69,6 +93,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
69
93
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
70
94
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
71
95
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
96
+ if (alternativeAnswerCheck === 'true') {
97
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
98
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
99
+ { barIndex: 1, barValue: 4, range: 10 },
100
+ { barIndex: 2, barValue: 5, range: 10 },
101
+ { barIndex: 3, barValue: 6, range: 10 },
102
+ { barIndex: 4, barValue: 1, range: 10 }
103
+ ], 1);
104
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
105
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
106
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
107
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
108
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
109
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
110
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
111
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
112
+ { barIndex: 1, barValue: 2, range: 10 },
113
+ { barIndex: 2, barValue: 3, range: 10 },
114
+ { barIndex: 3, barValue: 1, range: 10 }
115
+ ], 2);
116
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
117
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
118
+ }
72
119
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
73
120
  });
74
121
 
@@ -87,6 +134,9 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
87
134
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
88
135
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
89
136
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
137
+ if (alternativeAnswerCheck === 'true') {
138
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
139
+ }
90
140
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
91
141
  });
92
142
 
@@ -105,6 +155,9 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
105
155
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
106
156
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
107
157
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
158
+ if (alternativeAnswerCheck === 'true') {
159
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
160
+ }
108
161
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
109
162
  });
110
163
 
@@ -127,6 +180,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
127
180
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
128
181
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
129
182
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
183
+ if (alternativeAnswerCheck === 'true') {
184
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
185
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
186
+ { barIndex: 1, barValue: 4, range: 10 },
187
+ { barIndex: 2, barValue: 5, range: 10 },
188
+ { barIndex: 3, barValue: 6, range: 10 },
189
+ { barIndex: 4, barValue: 1, range: 10 }
190
+ ], 1);
191
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
192
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
193
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
194
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
195
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
196
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
197
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
198
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
199
+ { barIndex: 1, barValue: 2, range: 10 },
200
+ { barIndex: 2, barValue: 3, range: 10 },
201
+ { barIndex: 3, barValue: 1, range: 10 }
202
+ ], 2);
203
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
204
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
205
+ }
130
206
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
131
207
  });
132
208
 
@@ -149,6 +225,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
149
225
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
150
226
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
151
227
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
228
+ if (alternativeAnswerCheck === 'true') {
229
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
230
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
231
+ { barIndex: 1, barValue: 4, range: 10 },
232
+ { barIndex: 2, barValue: 5, range: 10 },
233
+ { barIndex: 3, barValue: 6, range: 10 },
234
+ { barIndex: 4, barValue: 1, range: 10 }
235
+ ], 1);
236
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
237
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
238
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
239
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
240
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
241
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
242
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
243
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
244
+ { barIndex: 1, barValue: 2, range: 10 },
245
+ { barIndex: 2, barValue: 3, range: 10 },
246
+ { barIndex: 3, barValue: 1, range: 10 }
247
+ ], 2);
248
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
249
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
250
+ }
152
251
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
252
  });
154
253
 
@@ -171,6 +270,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
171
270
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
172
271
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
173
272
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
273
+ if (alternativeAnswerCheck === 'true') {
274
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
275
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
276
+ { barIndex: 1, barValue: 4, range: 10 },
277
+ { barIndex: 2, barValue: 5, range: 10 },
278
+ { barIndex: 3, barValue: 6, range: 10 },
279
+ { barIndex: 4, barValue: 1, range: 10 }
280
+ ], 1);
281
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
282
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
283
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
284
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
285
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
286
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
287
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
288
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
289
+ { barIndex: 1, barValue: 2, range: 10 },
290
+ { barIndex: 2, barValue: 3, range: 10 },
291
+ { barIndex: 3, barValue: 1, range: 10 }
292
+ ], 2);
293
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
294
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
295
+ }
174
296
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
175
297
  });
176
298
 
@@ -193,6 +315,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
193
315
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
194
316
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
195
317
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
318
+ if (alternativeAnswerCheck === 'true') {
319
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
320
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
321
+ { barIndex: 1, barValue: 4, range: 10 },
322
+ { barIndex: 2, barValue: 5, range: 10 },
323
+ { barIndex: 3, barValue: 6, range: 10 },
324
+ { barIndex: 4, barValue: 1, range: 10 }
325
+ ], 1);
326
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
327
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
328
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
329
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
330
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
331
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
332
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
333
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
334
+ { barIndex: 1, barValue: 2, range: 10 },
335
+ { barIndex: 2, barValue: 3, range: 10 },
336
+ { barIndex: 3, barValue: 1, range: 10 }
337
+ ], 2);
338
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
339
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
340
+ }
196
341
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
197
342
  });
198
343
 
@@ -215,6 +360,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
215
360
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
216
361
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
217
362
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
363
+ if (alternativeAnswerCheck === 'true') {
364
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
365
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
366
+ { barIndex: 1, barValue: 4, range: 10 },
367
+ { barIndex: 2, barValue: 5, range: 10 },
368
+ { barIndex: 3, barValue: 6, range: 10 },
369
+ { barIndex: 4, barValue: 1, range: 10 }
370
+ ], 1);
371
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
372
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
373
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
374
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
375
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
376
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
377
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
378
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
379
+ { barIndex: 1, barValue: 2, range: 10 },
380
+ { barIndex: 2, barValue: 3, range: 10 },
381
+ { barIndex: 3, barValue: 1, range: 10 }
382
+ ], 2);
383
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
384
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
385
+ }
218
386
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
387
  });
220
388
 
@@ -241,6 +409,29 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
241
409
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
242
410
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
243
411
  chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
412
+ if (alternativeAnswerCheck === 'true') {
413
+ chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 10 pts, 10 pts, 10 pts, 10 pts)');
414
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
415
+ { barIndex: 1, barValue: 4, range: 10 },
416
+ { barIndex: 2, barValue: 5, range: 10 },
417
+ { barIndex: 3, barValue: 6, range: 10 },
418
+ { barIndex: 4, barValue: 1, range: 10 }
419
+ ], 1);
420
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
421
+ chartsBarPage.steps.disableShowAlternativeAnswersToggle();
422
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
423
+ chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
424
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
425
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
426
+ chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
427
+ chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
428
+ { barIndex: 1, barValue: 2, range: 10 },
429
+ { barIndex: 2, barValue: 3, range: 10 },
430
+ { barIndex: 3, barValue: 1, range: 10 }
431
+ ], 2);
432
+ chartsBarPage.steps.clickShowAlternativeAnswersToggle();
433
+ chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
434
+ }
244
435
  chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
245
436
  });
246
437
  });
@@ -24,15 +24,15 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
24
24
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
25
25
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
26
26
  chartsDotPlotPage.steps.allotPoints(20);
27
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
28
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 3, min: 1, interval: 1, defaultDots: 0 });
27
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
28
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(8, { point: 3, min: 1, interval: 1, defaultDots: 3 });
29
29
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
30
30
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
31
31
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
32
32
  chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
33
33
  chartsDotPlotPage.steps.allotPoints(12);
34
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
35
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
34
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
35
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(6, { point: 3, min: 1, interval: 1, defaultDots: 3 });
36
36
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
37
37
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
38
38
  chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
@@ -43,8 +43,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
43
43
  chartsDotPlotPage.steps.switchToGradingView();
44
44
  chartsDotPlotPage.steps.verifyPreviewScore(0, 20);
45
45
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
46
- chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
47
- chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
46
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
47
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
48
48
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
49
49
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
50
50
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
@@ -59,8 +59,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
59
59
 
60
60
  it('When the user incorrectly attempts the answer, then the user should be awarded with points for the correctly set bars and on switching to grading view, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
61
61
  chartsDotPlotPage.steps.resetQuestionPreview();
62
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
63
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1 });
62
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
63
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 3, min: 1, interval: 1, defaultDots: 3 });
64
64
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 4, min: 1, interval: 1, defaultDots: 0 });
65
65
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
66
66
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
@@ -77,8 +77,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
77
77
 
78
78
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
79
79
  chartsDotPlotPage.steps.resetQuestionPreview();
80
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
81
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
80
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
81
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(8, { point: 3, min: 1, interval: 1, defaultDots: 3 });
82
82
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
83
83
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
84
84
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
@@ -97,8 +97,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
97
97
 
98
98
  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 icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
99
99
  chartsDotPlotPage.steps.resetQuestionPreview();
100
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
101
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
100
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
101
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 3, min: 1, interval: 1, defaultDots: 3 });
102
102
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
103
103
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
104
104
  chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
@@ -115,8 +115,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
115
115
 
116
116
  it('When the user attempts the question with partially correct exclusively from the correct accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
117
117
  chartsDotPlotPage.steps.resetQuestionPreview();
118
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
119
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
118
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
119
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(8, { point: 3, min: 1, interval: 1, defaultDots: 3 });
120
120
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
121
121
  chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
122
122
  chartsDotPlotPage.steps.switchToGradingView();
@@ -132,8 +132,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
132
132
 
133
133
  it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
134
134
  chartsDotPlotPage.steps.resetQuestionPreview();
135
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
136
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
135
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
136
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 3, min: 1, interval: 1, defaultDots: 3 });
137
137
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
138
138
  chartsDotPlotPage.steps.verifyPreviewScore(9.6, 20);
139
139
  chartsDotPlotPage.steps.switchToGradingView();
@@ -148,8 +148,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
148
148
 
149
149
  it('When the user attempts the question with more answers from the correct accordion than the alternate accordion, then the user should be awarded with points for the correctly set bars from the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
150
150
  chartsDotPlotPage.steps.resetQuestionPreview();
151
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
152
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
151
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
152
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(8, { point: 3, min: 1, interval: 1, defaultDots: 3 });
153
153
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
154
154
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
155
155
  chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
@@ -165,8 +165,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
165
165
 
166
166
  it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
167
167
  chartsDotPlotPage.steps.resetQuestionPreview();
168
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
169
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
168
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
169
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 3, min: 1, interval: 1,defaultDots: 3 });
170
170
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
171
171
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
172
172
  chartsDotPlotPage.steps.verifyPreviewScore(9.6, 20);
@@ -181,8 +181,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
181
181
 
182
182
  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 for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
183
183
  chartsDotPlotPage.steps.resetQuestionPreview();
184
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
185
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
184
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
185
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 3, min: 1, interval: 1, defaultDots: 3 });
186
186
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
187
187
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
188
188
  chartsDotPlotPage.steps.verifyPreviewScore(8, 20);
@@ -202,8 +202,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
202
202
  chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
203
203
  chartsDotPlotPage.steps.allotPoints(40);
204
204
  chartsDotPlotPage.steps.switchToPreviewTab();
205
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
206
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
205
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 2, min: 1, interval: 1, defaultDots: 2 });
206
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 3, min: 1, interval: 1, defaultDots: 3 });
207
207
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
208
208
  chartsDotPlotPage.steps.verifyPreviewScore(8, 40);
209
209
  chartsDotPlotPage.steps.switchToGradingView();