itemengine-cypress-automation 1.0.564-IEI-7011-cf323ce.0 → 1.0.564

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 (25) hide show
  1. package/cypress/config-files/ilprod.json +1 -2
  2. package/cypress/config-files/ilqa.json +1 -2
  3. package/cypress/config-files/ilstage.json +1 -2
  4. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
  5. package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
  6. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
  7. package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
  8. package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
  9. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
  10. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
  11. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -86
  12. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +0 -91
  13. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +0 -79
  14. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
  15. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +0 -16
  16. package/cypress/pages/components/index.js +0 -1
  17. package/cypress/pages/imageHighlightPage.js +184 -7
  18. package/cypress/pages/itemPreviewPage.js +1 -0
  19. package/cypress/pages/multipleSelectionPage.js +1 -3
  20. package/cypress/pages/singleSelectionPage.js +1 -5
  21. package/cypress/support/helpers/utilities.js +16 -0
  22. package/package.json +1 -1
  23. package/scripts/sorry-cypress.mjs +5 -5
  24. package/service.yaml +1 -9
  25. package/cypress/pages/components/showAlternativeAnswersComponent.js +0 -169
@@ -1,7 +1,6 @@
1
1
  import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste', 'Pollution caused by household waste'];
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
4
 
6
5
  //Multiple cases are failing due to - https://redmine.zeuslearning.com/issues/578348.
7
6
  describe('Create item page - Multiple selection: Partial different weights with alternative answer', () => {
@@ -52,9 +51,6 @@ describe('Create item page - Multiple selection: Partial different weights with
52
51
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
53
52
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
54
53
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
55
- if (alternativeAnswerCheck === 'true') {
56
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
57
- }
58
54
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
59
55
  });
60
56
 
@@ -74,9 +70,6 @@ describe('Create item page - Multiple selection: Partial different weights with
74
70
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
75
71
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
76
72
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
77
- if (alternativeAnswerCheck === 'true') {
78
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
79
- }
80
73
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
81
74
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
82
75
  multipleSelectionPage.steps.checkAnswer();
@@ -107,9 +100,6 @@ describe('Create item page - Multiple selection: Partial different weights with
107
100
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
108
101
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
109
102
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
110
- if (alternativeAnswerCheck === 'true') {
111
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
112
- }
113
103
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
104
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
115
105
  multipleSelectionPage.steps.checkAnswer();
@@ -146,9 +136,6 @@ describe('Create item page - Multiple selection: Partial different weights with
146
136
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
147
137
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
148
138
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
149
- if (alternativeAnswerCheck === 'true') {
150
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
151
- }
152
139
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
140
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
154
141
  multipleSelectionPage.steps.checkAnswer();
@@ -184,9 +171,6 @@ describe('Create item page - Multiple selection: Partial different weights with
184
171
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
185
172
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
186
173
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
187
- if (alternativeAnswerCheck === 'true') {
188
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
189
- }
190
174
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
191
175
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
192
176
  multipleSelectionPage.steps.checkAnswer();
@@ -221,9 +205,6 @@ describe('Create item page - Multiple selection: Partial different weights with
221
205
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
222
206
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
223
207
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
224
- if (alternativeAnswerCheck === 'true') {
225
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
226
- }
227
208
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
228
209
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
229
210
  multipleSelectionPage.steps.checkAnswer();
@@ -259,9 +240,6 @@ describe('Create item page - Multiple selection: Partial different weights with
259
240
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
260
241
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
261
242
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
262
- if (alternativeAnswerCheck === 'true') {
263
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
264
- }
265
243
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
266
244
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
267
245
  multipleSelectionPage.steps.checkAnswer();
@@ -295,9 +273,6 @@ describe('Create item page - Multiple selection: Partial different weights with
295
273
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
296
274
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
297
275
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
298
- if (alternativeAnswerCheck === 'true') {
299
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
300
- }
301
276
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
302
277
  /*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
303
278
  multipleSelectionPage.steps.checkAnswer();
@@ -339,9 +314,6 @@ describe('Create item page - Multiple selection: Partial different weights with
339
314
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
340
315
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
341
316
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
342
- if (alternativeAnswerCheck === 'true') {
343
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 11);
344
- }
345
317
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
346
318
  /*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion and clicks on \'Check answer\' button, then correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, incorrect answer label and border should not be displayed')
347
319
  multipleSelectionPage.steps.checkAnswer();
@@ -376,9 +348,6 @@ describe('Create item page - Multiple selection: Partial different weights with
376
348
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
377
349
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
378
350
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
379
- if (alternativeAnswerCheck === 'true') {
380
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 11);
381
- }
382
351
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
383
352
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
384
353
  multipleSelectionPage.steps.checkAnswer();
@@ -455,9 +424,6 @@ describe('Create item page - Multiple selection: Partial different weights with
455
424
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
456
425
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
457
426
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
458
- if (alternativeAnswerCheck === 'true') {
459
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
460
- }
461
427
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
462
428
  });
463
429
 
@@ -478,9 +444,6 @@ describe('Create item page - Multiple selection: Partial different weights with
478
444
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
479
445
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
480
446
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
481
- if (alternativeAnswerCheck === 'true') {
482
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
483
- }
484
447
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
485
448
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
486
449
  multipleSelectionPage.steps.checkAnswer();
@@ -510,9 +473,6 @@ describe('Create item page - Multiple selection: Partial different weights with
510
473
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
511
474
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
512
475
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
513
- if (alternativeAnswerCheck === 'true') {
514
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
515
- }
516
476
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
517
477
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
518
478
  multipleSelectionPage.steps.checkAnswer();
@@ -548,9 +508,6 @@ describe('Create item page - Multiple selection: Partial different weights with
548
508
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
549
509
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
550
510
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
551
- if (alternativeAnswerCheck === 'true') {
552
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
553
- }
554
511
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
555
512
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
556
513
  multipleSelectionPage.steps.checkAnswer();
@@ -586,9 +543,6 @@ describe('Create item page - Multiple selection: Partial different weights with
586
543
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
587
544
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
588
545
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
589
- if (alternativeAnswerCheck === 'true') {
590
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
591
- }
592
546
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
593
547
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
594
548
  multipleSelectionPage.steps.checkAnswer();
@@ -623,9 +577,6 @@ describe('Create item page - Multiple selection: Partial different weights with
623
577
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
624
578
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
625
579
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
626
- if (alternativeAnswerCheck === 'true') {
627
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
628
- }
629
580
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
630
581
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
631
582
  multipleSelectionPage.steps.checkAnswer();
@@ -660,9 +611,6 @@ describe('Create item page - Multiple selection: Partial different weights with
660
611
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
661
612
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
662
613
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
663
- if (alternativeAnswerCheck === 'true') {
664
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
665
- }
666
614
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
667
615
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
668
616
  multipleSelectionPage.steps.checkAnswer();
@@ -696,9 +644,6 @@ describe('Create item page - Multiple selection: Partial different weights with
696
644
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
697
645
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
698
646
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
699
- if (alternativeAnswerCheck === 'true') {
700
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
701
- }
702
647
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
703
648
  /*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
704
649
  multipleSelectionPage.steps.checkAnswer();
@@ -740,9 +685,6 @@ describe('Create item page - Multiple selection: Partial different weights with
740
685
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(6);
741
686
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
742
687
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
743
- if (alternativeAnswerCheck === 'true') {
744
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 11);
745
- }
746
688
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
747
689
  /*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, incorrect answer label and border should not be displayed')
748
690
  multipleSelectionPage.steps.checkAnswer();
@@ -776,9 +718,6 @@ describe('Create item page - Multiple selection: Partial different weights with
776
718
  // multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(6);
777
719
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
778
720
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
779
- if (alternativeAnswerCheck === 'true') {
780
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 11);
781
- }
782
721
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
783
722
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
784
723
  multipleSelectionPage.steps.checkAnswer();
@@ -834,9 +773,6 @@ describe('Create item page - Multiple selection: Partial different weights with
834
773
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
835
774
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
836
775
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
837
- if (alternativeAnswerCheck === 'true') {
838
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
839
- }
840
776
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
841
777
  });
842
778
 
@@ -856,9 +792,6 @@ describe('Create item page - Multiple selection: Partial different weights with
856
792
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
857
793
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
858
794
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
859
- if (alternativeAnswerCheck === 'true') {
860
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
861
- }
862
795
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
863
796
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
864
797
  multipleSelectionPage.steps.checkAnswer();
@@ -888,9 +821,6 @@ describe('Create item page - Multiple selection: Partial different weights with
888
821
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
889
822
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
890
823
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
891
- if (alternativeAnswerCheck === 'true') {
892
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
893
- }
894
824
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
895
825
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
896
826
  multipleSelectionPage.steps.checkAnswer();
@@ -927,9 +857,6 @@ describe('Create item page - Multiple selection: Partial different weights with
927
857
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
928
858
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
929
859
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
930
- if (alternativeAnswerCheck === 'true') {
931
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
932
- }
933
860
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
934
861
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
935
862
  multipleSelectionPage.steps.checkAnswer();
@@ -965,9 +892,6 @@ describe('Create item page - Multiple selection: Partial different weights with
965
892
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
966
893
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
967
894
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
968
- if (alternativeAnswerCheck === 'true') {
969
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
970
- }
971
895
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
972
896
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
973
897
  multipleSelectionPage.steps.checkAnswer();
@@ -1002,9 +926,6 @@ describe('Create item page - Multiple selection: Partial different weights with
1002
926
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
1003
927
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
1004
928
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
1005
- if (alternativeAnswerCheck === 'true') {
1006
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
1007
- }
1008
929
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
1009
930
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
1010
931
  multipleSelectionPage.steps.checkAnswer();
@@ -1039,9 +960,6 @@ describe('Create item page - Multiple selection: Partial different weights with
1039
960
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
1040
961
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
1041
962
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
1042
- if (alternativeAnswerCheck === 'true') {
1043
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
1044
- }
1045
963
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
1046
964
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
1047
965
  multipleSelectionPage.steps.checkAnswer();
@@ -1075,9 +993,6 @@ describe('Create item page - Multiple selection: Partial different weights with
1075
993
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
1076
994
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
1077
995
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
1078
- if (alternativeAnswerCheck === 'true') {
1079
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
1080
- }
1081
996
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
1082
997
  /*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
1083
998
  multipleSelectionPage.steps.checkAnswer();
@@ -1119,9 +1034,6 @@ describe('Create item page - Multiple selection: Partial different weights with
1119
1034
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
1120
1035
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
1121
1036
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
1122
- if (alternativeAnswerCheck === 'true') {
1123
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
1124
- }
1125
1037
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
1126
1038
  /*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, incorrect answer label and border should not be displayed')
1127
1039
  multipleSelectionPage.steps.checkAnswer();
@@ -1156,9 +1068,6 @@ describe('Create item page - Multiple selection: Partial different weights with
1156
1068
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
1157
1069
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
1158
1070
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
1159
- if (alternativeAnswerCheck === 'true') {
1160
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 15);
1161
- }
1162
1071
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
1163
1072
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
1164
1073
  multipleSelectionPage.steps.checkAnswer();
@@ -1,7 +1,6 @@
1
1
  import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste'];
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
4
 
6
5
  describe('Create item page - Multiple selection: Partial equal weights with alternative answer', () => {
7
6
  before(() => {
@@ -48,9 +47,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
48
47
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
49
48
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
50
49
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
51
- if (alternativeAnswerCheck === 'true') {
52
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
53
- }
54
50
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
55
51
  });
56
52
 
@@ -69,9 +65,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
69
65
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
70
66
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
71
67
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
72
- if (alternativeAnswerCheck === 'true') {
73
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
74
- }
75
68
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
76
69
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
77
70
  multipleSelectionPage.steps.checkAnswer();
@@ -101,9 +94,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
101
94
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
102
95
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
103
96
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
104
- if (alternativeAnswerCheck === 'true') {
105
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
106
- }
107
97
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
108
98
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
109
99
  multipleSelectionPage.steps.checkAnswer();
@@ -137,9 +127,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
137
127
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
138
128
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
139
129
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
140
- if (alternativeAnswerCheck === 'true') {
141
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
142
- }
143
130
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
144
131
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
145
132
  multipleSelectionPage.steps.checkAnswer();
@@ -173,9 +160,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
173
160
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
174
161
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
175
162
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
176
- if (alternativeAnswerCheck === 'true') {
177
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
178
- }
179
163
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
180
164
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
181
165
  multipleSelectionPage.steps.checkAnswer();
@@ -208,9 +192,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
208
192
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
209
193
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
210
194
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
211
- if (alternativeAnswerCheck === 'true') {
212
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
213
- }
214
195
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
215
196
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
216
197
  multipleSelectionPage.steps.checkAnswer();
@@ -242,9 +223,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
242
223
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
243
224
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
244
225
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
245
- if (alternativeAnswerCheck === 'true') {
246
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
247
- }
248
226
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
249
227
  /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
250
228
  multipleSelectionPage.steps.checkAnswer();
@@ -282,9 +260,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
282
260
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
283
261
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
284
262
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
285
- if (alternativeAnswerCheck === 'true') {
286
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 6);
287
- }
288
263
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
289
264
  /*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, incorrect answer label and border should not be displayed')
290
265
  multipleSelectionPage.steps.checkAnswer();
@@ -317,9 +292,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
317
292
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
318
293
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
319
294
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
320
- if (alternativeAnswerCheck === 'true') {
321
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 6);
322
- }
323
295
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
324
296
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
325
297
  multipleSelectionPage.steps.checkAnswer();
@@ -394,9 +366,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
394
366
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
395
367
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
396
368
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
397
- if (alternativeAnswerCheck === 'true') {
398
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
399
- }
400
369
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
401
370
  });
402
371
 
@@ -415,9 +384,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
415
384
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
416
385
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
417
386
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
418
- if (alternativeAnswerCheck === 'true') {
419
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
420
- }
421
387
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
422
388
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
423
389
  multipleSelectionPage.steps.checkAnswer();
@@ -446,9 +412,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
446
412
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
447
413
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
448
414
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
449
- if (alternativeAnswerCheck === 'true') {
450
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
451
- }
452
415
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
453
416
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
454
417
  multipleSelectionPage.steps.checkAnswer();
@@ -483,9 +446,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
483
446
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
484
447
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
485
448
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
486
- if (alternativeAnswerCheck === 'true') {
487
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
488
- }
489
449
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
490
450
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
491
451
  multipleSelectionPage.steps.checkAnswer();
@@ -518,9 +478,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
518
478
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
519
479
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
520
480
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
521
- if (alternativeAnswerCheck === 'true') {
522
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
523
- }
524
481
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
525
482
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
526
483
  multipleSelectionPage.steps.checkAnswer();
@@ -553,9 +510,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
553
510
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
554
511
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
555
512
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
556
- if (alternativeAnswerCheck === 'true') {
557
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
558
- }
559
513
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
560
514
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
561
515
  multipleSelectionPage.steps.checkAnswer();
@@ -587,9 +541,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
587
541
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
588
542
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
589
543
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
590
- if (alternativeAnswerCheck === 'true') {
591
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
592
- }
593
544
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
594
545
  /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides common response, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
595
546
  multipleSelectionPage.steps.checkAnswer();
@@ -625,9 +576,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
625
576
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
626
577
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
627
578
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
628
- if (alternativeAnswerCheck === 'true') {
629
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
630
- }
631
579
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
632
580
  /*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, incorrect answer label and border should not be displayed')
633
581
  multipleSelectionPage.steps.checkAnswer();
@@ -660,9 +608,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
660
608
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
661
609
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
662
610
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
663
- if (alternativeAnswerCheck === 'true') {
664
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
665
- }
666
611
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
667
612
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
668
613
  multipleSelectionPage.steps.checkAnswer();
@@ -715,9 +660,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
715
660
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
716
661
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
717
662
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
718
- if (alternativeAnswerCheck === 'true') {
719
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
720
- }
721
663
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
722
664
  });
723
665
 
@@ -736,9 +678,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
736
678
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
737
679
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
738
680
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
739
- if (alternativeAnswerCheck === 'true') {
740
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
741
- }
742
681
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
743
682
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
744
683
  multipleSelectionPage.steps.checkAnswer();
@@ -767,9 +706,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
767
706
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
768
707
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
769
708
  multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
770
- if (alternativeAnswerCheck === 'true') {
771
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
772
- }
773
709
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
774
710
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
775
711
  multipleSelectionPage.steps.checkAnswer();
@@ -803,9 +739,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
803
739
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
804
740
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
805
741
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
806
- if (alternativeAnswerCheck === 'true') {
807
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
808
- }
809
742
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
810
743
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
811
744
  multipleSelectionPage.steps.checkAnswer();
@@ -839,9 +772,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
839
772
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
840
773
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
841
774
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
842
- if (alternativeAnswerCheck === 'true') {
843
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
844
- }
845
775
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
846
776
  /*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
847
777
  multipleSelectionPage.steps.checkAnswer();
@@ -874,9 +804,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
874
804
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
875
805
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
876
806
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
877
- if (alternativeAnswerCheck === 'true') {
878
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
879
- }
880
807
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
881
808
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
882
809
  multipleSelectionPage.steps.checkAnswer();
@@ -908,9 +835,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
908
835
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
909
836
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
910
837
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
911
- if (alternativeAnswerCheck === 'true') {
912
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
913
- }
914
838
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
915
839
  /*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
916
840
  multipleSelectionPage.steps.checkAnswer();
@@ -941,9 +865,6 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
941
865
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
942
866
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
943
867
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
944
- if (alternativeAnswerCheck === 'true') {
945
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
946
- }
947
868
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
948
869
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
949
870
  multipleSelectionPage.steps.checkAnswer();