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