itemengine-cypress-automation 1.0.596-IEI-7043-9cd3974.0 → 1.0.596
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.
|
@@ -221,7 +221,11 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
221
221
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
|
222
222
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
|
223
223
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
224
|
-
|
|
224
|
+
if (view === 'Grading view') {
|
|
225
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
226
|
+
} else {
|
|
227
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
228
|
+
};
|
|
225
229
|
});
|
|
226
230
|
});
|
|
227
231
|
});
|
|
@@ -487,7 +491,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
487
491
|
break;
|
|
488
492
|
};
|
|
489
493
|
});
|
|
490
|
-
|
|
494
|
+
|
|
491
495
|
beforeEach(() => {
|
|
492
496
|
switch (view) {
|
|
493
497
|
case 'Question preview':
|
|
@@ -511,12 +515,12 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
511
515
|
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
|
512
516
|
});
|
|
513
517
|
};
|
|
514
|
-
|
|
518
|
+
|
|
515
519
|
it('Question instructions should be visible', () => {
|
|
516
520
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone');
|
|
517
521
|
fillInTheGapsDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
|
|
518
522
|
});
|
|
519
|
-
|
|
523
|
+
|
|
520
524
|
it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
|
|
521
525
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
|
|
522
526
|
if (view === 'Grading view') {
|
|
@@ -563,7 +567,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
563
567
|
break;
|
|
564
568
|
};
|
|
565
569
|
});
|
|
566
|
-
|
|
570
|
+
|
|
567
571
|
beforeEach(() => {
|
|
568
572
|
switch (view) {
|
|
569
573
|
case 'Question preview':
|
|
@@ -587,7 +591,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
587
591
|
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
|
588
592
|
});
|
|
589
593
|
};
|
|
590
|
-
|
|
594
|
+
|
|
591
595
|
it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
|
|
592
596
|
if (view === 'Grading view') {
|
|
593
597
|
studentViewPage.steps.submitResponse();
|
|
@@ -606,7 +610,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
606
610
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
|
|
607
611
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
|
608
612
|
});
|
|
609
|
-
|
|
613
|
+
|
|
610
614
|
it('When the user attempts the question incorrectly, and on switching to "Grading" view, non-scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text "Your answer is incorrect" and correct answer section with correct answers should be displayed', () => {
|
|
611
615
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
|
|
612
616
|
if (view === 'Grading view') {
|
|
@@ -648,7 +652,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
648
652
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
649
653
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
|
650
654
|
});
|
|
651
|
-
|
|
655
|
+
|
|
652
656
|
it('When the user attempts the question correctly, and on switching to "Grading" view, non-scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
|
653
657
|
if (view === 'Grading view') {
|
|
654
658
|
studentViewPage.steps.clearResponses();
|
|
@@ -668,7 +672,11 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
|
668
672
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
|
669
673
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
|
670
674
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
671
|
-
|
|
675
|
+
if (view === 'Grading view') {
|
|
676
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
677
|
+
} else {
|
|
678
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
679
|
+
};
|
|
672
680
|
});
|
|
673
681
|
});
|
|
674
682
|
});
|