itemengine-cypress-automation 1.0.579-IEI-7046-a317a6b.0 → 1.0.579

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 (43) hide show
  1. package/cypress/config-files/ilprod.json +2 -1
  2. package/cypress/config-files/ilqa.json +2 -1
  3. package/cypress/config-files/ilstage.json +2 -1
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +8 -123
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +8 -123
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +14 -131
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +9 -138
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +9 -138
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +10 -153
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -138
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +7 -108
  12. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +9 -138
  13. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +135 -7
  14. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +135 -7
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +136 -9
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +7 -2
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +154 -8
  18. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +154 -8
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +154 -8
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +135 -7
  21. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +116 -7
  22. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +136 -8
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +21 -2
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +190 -2
  25. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +17 -0
  26. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +18 -0
  27. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +19 -0
  28. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +18 -0
  29. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +18 -0
  30. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +19 -0
  31. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +17 -0
  32. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +16 -0
  33. package/cypress/pages/components/ckEditorToolbar.js +20 -0
  34. package/cypress/pages/components/draggableOptionContainer.js +14 -0
  35. package/cypress/pages/components/gridQuestionCommonComponent.js +17 -1
  36. package/cypress/pages/components/optionsWrapperComponent.js +33 -2
  37. package/cypress/pages/components/questionInputFieldComponent.js +18 -2
  38. package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -38
  39. package/cypress/pages/fillInTheGapsDropdownPage.js +47 -2
  40. package/cypress/pages/matchingPage.js +18 -0
  41. package/cypress/pages/numberLineLabelPage.js +1 -0
  42. package/cypress/pages/textSelectionPage.js +17 -1
  43. package/package.json +1 -1
@@ -1,8 +1,5 @@
1
1
  import { dragAndDropIntoCategoriesPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
4
-
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
6
3
 
7
4
  describe('Create item page - Drag and drop into categories: Per correct option with alternative answers', () => {
8
5
  before(() => {
@@ -34,21 +31,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
34
31
  dragAndDropIntoCategoriesPage.steps.switchToGradingView();
35
32
  dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
36
33
  dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
37
- if (alternativeAnswerCheck) {
38
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
39
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
40
- {
41
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
42
- pointsText: '(Points per correct option - 5 points)',
43
- },
44
- {
45
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
46
- pointsText: '(Points per correct option - 5 points)',
47
- }
48
- ]);
49
- } else {
50
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
51
- }
34
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
52
35
  });
53
36
 
54
37
  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 and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
@@ -139,21 +122,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
139
122
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
140
123
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
141
124
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
142
- if (alternativeAnswerCheck) {
143
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
144
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
145
- {
146
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
147
- pointsText: '(Points per correct option - 5 points)',
148
- },
149
- {
150
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
151
- pointsText: '(Points per correct option - 5 points)',
152
- }
153
- ]);
154
- } else {
155
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
156
- }
125
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
157
126
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
158
127
  /*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, correct/incorrect answer status message and correct answer section should not be displayed')
159
128
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -175,21 +144,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
175
144
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
176
145
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
177
146
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
178
- if (alternativeAnswerCheck) {
179
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
180
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
181
- {
182
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
183
- pointsText: '(Points per correct option - 5 points)',
184
- },
185
- {
186
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
187
- pointsText: '(Points per correct option - 5 points)',
188
- }
189
- ]);
190
- } else {
191
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
192
- }
147
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
193
148
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
194
149
  /*cy.log('When the user has attempted the question with partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and and correct answer section should not be displayed')
195
150
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -214,21 +169,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
214
169
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
215
170
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
216
171
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
217
- if (alternativeAnswerCheck) {
218
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
219
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
220
- {
221
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
222
- pointsText: '(Points per correct option - 5 points)',
223
- },
224
- {
225
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
226
- pointsText: '(Points per correct option - 5 points)',
227
- }
228
- ]);
229
- } else {
230
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
231
- }
172
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
232
173
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
233
174
  /*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
234
175
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -252,21 +193,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
252
193
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
253
194
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
254
195
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
255
- if (alternativeAnswerCheck) {
256
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
257
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
258
- {
259
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
260
- pointsText: '(Points per correct option - 5 points)',
261
- },
262
- {
263
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
264
- pointsText: '(Points per correct option - 5 points)',
265
- }
266
- ]);
267
- } else {
268
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
269
- }
196
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
270
197
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
198
  /*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
272
199
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -293,21 +220,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
293
220
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
294
221
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
295
222
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
296
- if (alternativeAnswerCheck) {
297
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
298
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
299
- {
300
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
301
- pointsText: '(Points per correct option - 5 points)',
302
- },
303
- {
304
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
305
- pointsText: '(Points per correct option - 5 points)',
306
- }
307
- ]);
308
- } else {
309
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
310
- }
223
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
311
224
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
312
225
  /*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell and clicks on \'Check answer\' button, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message and correct answer section should not be displayed')
313
226
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -331,21 +244,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
331
244
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
332
245
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
333
246
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
334
- if (alternativeAnswerCheck) {
335
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
336
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
337
- {
338
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
339
- pointsText: '(Points per correct option - 5 points)',
340
- },
341
- {
342
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
343
- pointsText: '(Points per correct option - 5 points)',
344
- }
345
- ]);
346
- } else {
347
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
348
- }
247
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
349
248
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
350
249
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect answer status message and correct answer section should not be displayed')
351
250
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -366,21 +265,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
366
265
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
367
266
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
368
267
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
369
- if (alternativeAnswerCheck) {
370
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
371
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
372
- {
373
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
374
- pointsText: '(Points per correct option - 5 points)',
375
- },
376
- {
377
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
378
- pointsText: '(Points per correct option - 5 points)',
379
- }
380
- ]);
381
- } else {
382
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
383
- }
268
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
384
269
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
385
270
  /*cy.log('When the user has attempted the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the different cell and clicks on \'Check answer\' button, then the correct icon should be displayed besides the correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
386
271
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -403,21 +288,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
403
288
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
404
289
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
405
290
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
406
- if (alternativeAnswerCheck) {
407
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
408
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
409
- {
410
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
411
- pointsText: '(Points per correct option - 5 points)',
412
- },
413
- {
414
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
415
- pointsText: '(Points per correct option - 5 points)',
416
- }
417
- ]);
418
- } else {
419
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
420
- }
291
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
421
292
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
422
293
  /*cy.log('When the user has attempted the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the same cell and clicks on \'Check answer\' button, then correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
423
294
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -1,8 +1,5 @@
1
1
  import { dragAndDropIntoCategoriesPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
4
-
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
6
3
 
7
4
  describe('Create item page - Drag and drop into categories: Per correct option with alternative answers', () => {
8
5
  before(() => {
@@ -34,21 +31,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
34
31
  dragAndDropIntoCategoriesPage.steps.switchToGradingView();
35
32
  dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
36
33
  dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
37
- if (alternativeAnswerCheck) {
38
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
39
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
40
- {
41
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
42
- pointsText: '(Points per correct option - 5 points)',
43
- },
44
- {
45
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
46
- pointsText: '(Points per correct option - 3 points)',
47
- }
48
- ]);
49
- } else {
50
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
51
- }
34
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
52
35
  });
53
36
 
54
37
  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 and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
@@ -116,21 +99,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
116
99
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
117
100
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
118
101
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
119
- if (alternativeAnswerCheck) {
120
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
121
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
122
- {
123
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
124
- pointsText: '(Points per correct option - 5 points)',
125
- },
126
- {
127
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
128
- pointsText: '(Points per correct option - 3 points)',
129
- }
130
- ]);
131
- } else {
132
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
133
- }
102
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
134
103
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
135
104
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
136
105
  /*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 answer status message and correct answer section should not be displayed')
@@ -153,21 +122,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
153
122
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
154
123
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
155
124
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
156
- if (alternativeAnswerCheck) {
157
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
158
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
159
- {
160
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
161
- pointsText: '(Points per correct option - 5 points)',
162
- },
163
- {
164
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
165
- pointsText: '(Points per correct option - 3 points)',
166
- }
167
- ]);
168
- } else {
169
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
170
- }
125
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
171
126
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
172
127
  /*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, correct/incorrect answer status message and correct answer section should not be displayed')
173
128
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -189,21 +144,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
189
144
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
190
145
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
191
146
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
192
- if (alternativeAnswerCheck) {
193
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
194
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
195
- {
196
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
197
- pointsText: '(Points per correct option - 5 points)',
198
- },
199
- {
200
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
201
- pointsText: '(Points per correct option - 3 points)',
202
- }
203
- ]);
204
- } else {
205
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
206
- }
147
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
207
148
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
208
149
  /*cy.log('When the user has attempted the question with partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and and correct answer section should not be displayed')
209
150
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -228,21 +169,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
228
169
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
229
170
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
230
171
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
231
- if (alternativeAnswerCheck) {
232
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
233
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
234
- {
235
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
236
- pointsText: '(Points per correct option - 5 points)',
237
- },
238
- {
239
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
240
- pointsText: '(Points per correct option - 3 points)',
241
- }
242
- ]);
243
- } else {
244
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
245
- }
172
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
246
173
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
247
174
  /*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
248
175
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -267,21 +194,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
267
194
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
268
195
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
269
196
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
270
- if (alternativeAnswerCheck) {
271
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
272
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
273
- {
274
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
275
- pointsText: '(Points per correct option - 5 points)',
276
- },
277
- {
278
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
279
- pointsText: '(Points per correct option - 3 points)',
280
- }
281
- ]);
282
- } else {
283
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
284
- }
197
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
285
198
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
286
199
  /*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
287
200
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -309,21 +222,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
309
222
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
310
223
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
311
224
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
312
- if (alternativeAnswerCheck) {
313
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
314
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
315
- {
316
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
317
- pointsText: '(Points per correct option - 5 points)',
318
- },
319
- {
320
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
321
- pointsText: '(Points per correct option - 3 points)',
322
- }
323
- ]);
324
- } else {
325
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
326
- }
225
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
327
226
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
328
227
  /*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and clicks on \'Check answer\' button, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message and correct answer section should not be displayed')
329
228
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -347,21 +246,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
347
246
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
348
247
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
349
248
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
350
- if (alternativeAnswerCheck) {
351
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
352
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
353
- {
354
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
355
- pointsText: '(Points per correct option - 5 points)',
356
- },
357
- {
358
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
359
- pointsText: '(Points per correct option - 3 points)',
360
- }
361
- ]);
362
- } else {
363
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
364
- }
249
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
365
250
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
366
251
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect answer status message and correct answer section should not be displayed')
367
252
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -388,21 +273,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
388
273
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
389
274
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
390
275
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
391
- if (alternativeAnswerCheck) {
392
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
393
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
394
- {
395
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
396
- pointsText: '(Points per correct option - 5 points)',
397
- },
398
- {
399
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
400
- pointsText: '(Points per correct option - 3 points)',
401
- }
402
- ]);
403
- } else {
404
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
405
- }
276
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
406
277
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
407
278
  /*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the alternative accordion but with one option common across both the accordions and clicks on \'Check answer\' button, then the correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
408
279
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -426,21 +297,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
426
297
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
427
298
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
428
299
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
429
- if (alternativeAnswerCheck) {
430
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
431
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
432
- {
433
- correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
434
- pointsText: '(Points per correct option - 5 points)',
435
- },
436
- {
437
- correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
438
- pointsText: '(Points per correct option - 3 points)',
439
- }
440
- ]);
441
- } else {
442
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
443
- }
300
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
444
301
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
445
302
  /*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and clicks on \'Check answer\' button, then correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
446
303
  dragAndDropIntoCategoriesPage.steps.checkAnswer();