itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.0 → 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.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 (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
@@ -1,8 +1,6 @@
1
1
  import { chartsLinePage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
-
6
4
  describe('Create Item page - Charts - Line : Partial different weights scoring with alternative answer - When alternate answer points are more than correct answer points', () => {
7
5
  before(() => {
8
6
  cy.loginAs('admin');
@@ -51,28 +49,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
51
49
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
52
50
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
53
51
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
54
- if (alternativeAnswerCheck === 'true') {
55
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
56
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
57
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
58
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
59
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
60
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
61
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
62
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
63
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
64
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
65
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
66
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
67
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
68
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
69
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
70
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
71
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
72
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
73
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
74
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
75
- }
76
52
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
77
53
  /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the unattempted bars and correct icons should be displayed on the bar which is correct by default')
78
54
  chartsLinePage.steps.checkAnswer();
@@ -103,28 +79,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
103
79
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
104
80
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
105
81
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
106
- if (alternativeAnswerCheck === 'true') {
107
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
108
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
109
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
110
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
111
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
112
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
113
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
114
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
115
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
116
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
117
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
118
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
119
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
120
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
121
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
122
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
123
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
124
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
125
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
126
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
127
- }
128
82
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
129
83
  /* cy.log('When the user selects check answer after incorrectly attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrectly attempted bars')
130
84
  chartsLinePage.steps.checkAnswer();
@@ -150,9 +104,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
150
104
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
151
105
  chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
152
106
  chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
153
- if (alternativeAnswerCheck === 'true') {
154
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
155
- }
156
107
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
157
108
  /* 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 besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
158
109
  chartsLinePage.steps.checkAnswer();
@@ -179,9 +130,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
179
130
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
180
131
  chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
181
132
  chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
182
- if (alternativeAnswerCheck === 'true') {
183
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleNotExists();
184
- }
185
133
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
186
134
  /* 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 besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
187
135
  chartsLinePage.steps.checkAnswer();
@@ -211,28 +159,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
211
159
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
212
160
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
213
161
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
214
- if (alternativeAnswerCheck === 'true') {
215
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
216
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
217
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
218
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
219
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
220
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
221
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
222
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
223
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
224
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
225
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
226
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
227
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
228
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
229
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
230
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
231
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
232
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
233
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
234
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
235
- }
236
162
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
237
163
  /* 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 besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
238
164
  chartsLinePage.steps.checkAnswer();
@@ -262,28 +188,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
262
188
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
263
189
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
264
190
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
265
- if (alternativeAnswerCheck === 'true') {
266
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
267
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
268
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
269
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
270
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
271
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
272
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
273
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
274
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
275
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
276
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
277
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
278
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
279
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
280
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
281
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
282
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
283
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
284
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
285
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
286
- }
287
191
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
288
192
  /* 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 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 not be displayed')
289
193
  chartsLinePage.steps.checkAnswer();
@@ -313,28 +217,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
313
217
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
314
218
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
315
219
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
316
- if (alternativeAnswerCheck === 'true') {
317
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
318
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
319
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
320
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
321
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
322
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
323
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
324
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
325
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
326
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
327
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
328
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
329
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
330
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
331
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
332
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
333
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
334
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
335
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
336
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
337
- }
338
220
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
339
221
  /* 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 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 not be displayed')
340
222
  chartsLinePage.steps.checkAnswer();
@@ -363,28 +245,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
363
245
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
364
246
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
365
247
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
366
- if (alternativeAnswerCheck === 'true') {
367
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
368
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
369
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
370
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
371
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
372
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
373
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
374
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
375
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
376
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
377
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
378
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
379
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
380
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
381
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
382
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
383
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
384
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
385
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
386
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
387
- }
388
248
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
389
249
  /* 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 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 not be displayed')
390
250
  chartsLinePage.steps.checkAnswer();
@@ -414,28 +274,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
414
274
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
415
275
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
416
276
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
417
- if (alternativeAnswerCheck === 'true') {
418
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
419
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
420
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
421
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
422
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
423
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
424
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
425
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
426
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
427
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
428
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
429
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
430
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
431
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
432
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
433
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
434
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
435
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
436
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
437
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
438
- }
439
277
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
440
278
  /* 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 besides the correct answer responses, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
441
279
  chartsLinePage.steps.checkAnswer();
@@ -467,28 +305,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
467
305
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
468
306
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
469
307
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
470
- if (alternativeAnswerCheck === 'true') {
471
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
472
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
473
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
474
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
475
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
476
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
477
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
478
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
479
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
480
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
481
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
482
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
483
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
484
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
485
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
486
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
487
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
488
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
489
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
490
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
491
- }
492
308
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
493
309
  /* 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 besides the correct answer responses, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
494
310
  chartsLinePage.steps.checkAnswer();
@@ -520,28 +336,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
520
336
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
521
337
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
522
338
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
523
- if (alternativeAnswerCheck === 'true') {
524
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 7 pts, 5 pts, 4 pts, 8 pts, 4 pts)');
525
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
526
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
527
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
528
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
529
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
530
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
531
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
532
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
533
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
534
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
535
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
536
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 6 pts, 3 pts, 2 pts, 9 pts, 2 pts)');
537
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
538
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
539
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
540
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
541
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
542
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
543
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
544
- }
545
339
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
546
340
  /* 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 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 not be displayed')
547
341
  chartsLinePage.steps.checkAnswer();
@@ -579,28 +373,6 @@ describe('Create Item page - Charts - Line : Partial different weights scoring w
579
373
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
580
374
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
581
375
  chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
582
- if (alternativeAnswerCheck === 'true') {
583
- chartsLinePage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 15 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
584
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
585
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
586
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 0, range: 10 });
587
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
588
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
589
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleExists();
590
- chartsLinePage.steps.disableShowAlternativeAnswersToggle();
591
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
592
- chartsLinePage.steps.verifyAlternativeAnswersSectionNotExist();
593
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
594
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleChecked();
595
- chartsLinePage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 12 pts, 1 pt, 2 pts, 3 pts, 4 pts)');
596
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 0, value: 3, range: 10 });
597
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 1, value: 2, range: 10 });
598
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 2, value: 5, range: 10 });
599
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 3, value: 4, range: 10 });
600
- chartsLinePage.steps.verifyPointValueInAlternativeAnswerSection({ pointIndex: 4, value: 0, range: 10 });
601
- chartsLinePage.steps.clickShowAlternativeAnswersToggle();
602
- chartsLinePage.steps.verifyShowAlternativeAnswersToggleUnchecked();
603
- }
604
376
  chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
605
377
  /* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect status message and correct answer section should not be displayed')
606
378
  chartsLinePage.steps.checkAnswer();