itemengine-cypress-automation 1.0.120 → 1.0.122-updateILCRepo28Feb-2c3e0e3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +13 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingForAllViews.smoke.js +273 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/checkAnswerFunctionalityForAllViews.smoke.js +116 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +136 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +224 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +120 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +158 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +246 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +332 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +409 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +80 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +68 -68
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +3 -289
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -23
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +191 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +190 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +284 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +113 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +234 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +217 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +136 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +197 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +169 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +197 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +219 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/checkAnswerFunctionalityForAllViews.smoke.js +115 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +142 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +152 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +39 -0
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +2 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +497 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +503 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +233 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/specialCharactersSection.js +291 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +332 -0
- package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +2 -12
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +9 -8
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -2
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +5 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +334 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +419 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +166 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +166 -0
- package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +51 -0
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +99 -0
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +71 -0
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +155 -0
- package/cypress/e2e/ILC/UploadResponse/uploadResponseHeaderSection.js +66 -0
- package/cypress/fixtures/theme/ilc.json +3 -1
- package/cypress/pages/audioResponsePage.js +2 -1
- package/cypress/pages/components/additionalSettingsPanel.js +27 -0
- package/cypress/pages/components/autoScoredPreviewBase.js +1 -1
- package/cypress/pages/components/autoScoredScoringSection.js +1 -1
- package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +1 -1
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/components/autoScoredStudentViewSettings.js +8 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +5 -5
- package/cypress/pages/components/createQuestionBasePage.js +8 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -0
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +13 -0
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +40 -0
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +422 -314
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +438 -710
- package/cypress/pages/components/{figOverImageCanvasComponent.js → imageCanvasComponent.js} +274 -272
- package/cypress/pages/components/index.js +3 -3
- package/cypress/pages/components/maximumRecorderLengthComponent.js +55 -11
- package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +49 -23
- package/cypress/pages/components/scoringSectionBase.js +1 -1
- package/cypress/pages/createItemPage.js +67 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +172 -711
- package/cypress/pages/fillInTheGapsDropdownPage.js +75 -72
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +109 -273
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +49 -291
- package/cypress/pages/fillInTheGapsTextPage.js +52 -199
- package/cypress/pages/index.js +5 -5
- package/cypress/pages/multipleSelectionPage.js +1 -0
- package/cypress/pages/shortTextResponsePage.js +575 -33
- package/cypress/pages/singleSelectionGridPage.js +1 -2
- package/cypress/pages/singleSelectionPage.js +5 -6
- package/cypress/pages/textEntryMathPage.js +46 -22
- package/cypress/pages/textEntryMathWithImagePage.js +212 -0
- package/cypress/pages/uploadResponsePage.js +74 -21
- package/package.json +2 -2
- package/cypress/e2e/ILC/AudioResponseNew/minimalRecorderStyle.js +0 -482
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -412
- package/cypress/pages/components/figOverImageCommonComponent.js +0 -1113
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +0 -1155
- package/cypress/pages/dragAndDropIntoCategoriesCellsScoring.js +0 -1561
- package/cypress/pages/dragAndDropIntoCategoriesResponseScoring.js +0 -1396
- package/cypress/pages/fillInTheGapsScoring.js +0 -5872
- package/cypress/pages/fillInTheGapsSetCorrectAnswerSection.js +0 -260
@@ -1,1561 +0,0 @@
|
|
1
|
-
import { autoScoredPreviewBase, previewScoringAndShowCorrectAnswerComponent } from "./components";
|
2
|
-
import { dragAndDropIntoCategoriesPage } from "./dragAndDropIntoCategoriesPage";
|
3
|
-
const cellNumerationArray = ['1', '2', '3', '4'];
|
4
|
-
const correctTabAnswerArray = [['Bat'], ['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']];
|
5
|
-
|
6
|
-
const tests = {
|
7
|
-
verifyScoringForEachCell: (scoringSubtype) => {
|
8
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, 0 points should be provided, red cross-mark should be displayed besides incorrect answer responses, incorrect cell border and red cross-mark should be displayed for incorrect cells and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
9
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 2);
|
10
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 3);
|
11
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 1);
|
12
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 0);
|
13
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 2);
|
14
|
-
cy.log('User should be awarded 0 points')
|
15
|
-
switch (scoringSubtype) {
|
16
|
-
case 'Total score divided between each cell':
|
17
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
18
|
-
.verifyInnerText('0/10');
|
19
|
-
break;
|
20
|
-
case 'Partial - score for each cell':
|
21
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
22
|
-
.verifyInnerText('0/40');
|
23
|
-
break;
|
24
|
-
}
|
25
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
26
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
27
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
28
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
29
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
30
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
31
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
|
32
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctTabAnswerArray, [1, 2, 3, 4]);
|
33
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
34
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
35
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
36
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
37
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
38
|
-
|
39
|
-
cy.log('When the user clicks on \'Check answer\' button, red cross-mark should be displayed besides incorrect answer responses, red cross-mark should be displayed besides incorrect cell and no correct answer section should be displayed')
|
40
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
41
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
42
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
43
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
44
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
45
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
|
46
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
47
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
48
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
49
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
50
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
51
|
-
});
|
52
|
-
|
53
|
-
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options and some cells empty then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct cell, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
54
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
55
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
56
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
57
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
58
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
59
|
-
switch (scoringSubtype) {
|
60
|
-
case 'Total score divided between each cell':
|
61
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
62
|
-
.verifyInnerText('2.5/10');
|
63
|
-
break;
|
64
|
-
case 'Partial - score for each cell':
|
65
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
66
|
-
.verifyInnerText('10/40');
|
67
|
-
break;
|
68
|
-
}
|
69
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
70
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
71
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
72
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
73
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
74
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
75
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2, 3]);
|
76
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0]);
|
77
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
78
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot'], ['Platypus'], ['Ostrich']], [2, 3, 4]);
|
79
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
80
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
81
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
82
|
-
|
83
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
84
|
-
|
85
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and no correct answer section should be displayed')
|
86
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
87
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
88
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
89
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
90
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
91
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2, 3]);
|
92
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0]);
|
93
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
94
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
95
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
96
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
97
|
-
});
|
98
|
-
|
99
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete then on selecting the \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
100
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
101
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
102
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
103
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
104
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
105
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
106
|
-
|
107
|
-
cy.log('User should be total score obtained by each correct cell');
|
108
|
-
switch (scoringSubtype) {
|
109
|
-
case 'Total score divided between each cell':
|
110
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
111
|
-
.verifyInnerText('7.5/10');
|
112
|
-
break;
|
113
|
-
case 'Partial - score for each cell':
|
114
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
115
|
-
.verifyInnerText('30/40');
|
116
|
-
break;
|
117
|
-
}
|
118
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
119
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
120
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
121
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
122
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
123
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
124
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
125
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
126
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
127
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Whale']], [3]);
|
128
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
129
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
130
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
131
|
-
|
132
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
133
|
-
|
134
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and no correct answer section should be displayed')
|
135
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
136
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
137
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
138
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
139
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
140
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
141
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
142
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
143
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
144
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
145
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
146
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
147
|
-
});
|
148
|
-
|
149
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer then on selecting the \'Show correct answer\' checkbox, points provided should be the total of points of each correct cell, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and no correct answer section should be displayed', () => {
|
150
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
151
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
152
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
153
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
154
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
155
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
156
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
157
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 3);
|
158
|
-
|
159
|
-
cy.log('User should be total score obtained by each correct cell');
|
160
|
-
switch (scoringSubtype) {
|
161
|
-
case 'Total score divided between each cell':
|
162
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
163
|
-
.verifyInnerText('7.5/10');
|
164
|
-
break;
|
165
|
-
case 'Partial - score for each cell':
|
166
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
167
|
-
.verifyInnerText('30/40');
|
168
|
-
break;
|
169
|
-
}
|
170
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
171
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
172
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
173
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
174
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
175
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
176
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
177
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
178
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(6);
|
179
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([3]);
|
180
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2]);
|
181
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
182
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
183
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
184
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
185
|
-
|
186
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
187
|
-
|
188
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and no correct answer section should be displayed')
|
189
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
190
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
191
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
192
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
193
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
194
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
195
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
196
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(6);
|
197
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([3]);
|
198
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2]);
|
199
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
200
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
201
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
202
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
203
|
-
});
|
204
|
-
|
205
|
-
it('When the user attempts the question correctly in the order same as set in the set correct answer section then on selecting the \'Show correct answer\' checkbox full score should be provided, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed', () => {
|
206
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
207
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
208
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
209
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
210
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
211
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
212
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
213
|
-
|
214
|
-
cy.log('User should be awarded full points')
|
215
|
-
switch (scoringSubtype) {
|
216
|
-
case 'Total score divided between each cell':
|
217
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
218
|
-
.verifyInnerText('10/10');
|
219
|
-
break;
|
220
|
-
case 'Partial - score for each cell':
|
221
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
222
|
-
.verifyInnerText('40/40');
|
223
|
-
break;
|
224
|
-
}
|
225
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
226
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
227
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
228
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
229
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
230
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
231
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
232
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
233
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
234
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
235
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
236
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
237
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
238
|
-
|
239
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
240
|
-
|
241
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell no correct answer section should be displayed')
|
242
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
243
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
244
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
245
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
246
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
247
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
248
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
249
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
250
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
251
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
252
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
253
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
254
|
-
});
|
255
|
-
|
256
|
-
it('When the user attempts the question correctly in a random order then on selecting the \'Show correct answer\' checkbox full score should be provided, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed', () => {
|
257
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
258
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
259
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
260
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
261
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
262
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
263
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
264
|
-
|
265
|
-
cy.log('User should be awarded full points')
|
266
|
-
switch (scoringSubtype) {
|
267
|
-
case 'Total score divided between each cell':
|
268
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
269
|
-
.verifyInnerText('10/10');
|
270
|
-
break;
|
271
|
-
case 'Partial - score for each cell':
|
272
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
273
|
-
.verifyInnerText('40/40');
|
274
|
-
break;
|
275
|
-
}
|
276
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
277
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
278
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
279
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
280
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
281
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
282
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
283
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
284
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
285
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
286
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
287
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
288
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
289
|
-
|
290
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
291
|
-
|
292
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed')
|
293
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
294
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
295
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
296
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
297
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
298
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
299
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
300
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
301
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
302
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
303
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
304
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
305
|
-
});
|
306
|
-
|
307
|
-
it('Pre-step: Updating the set correct answer options such that one cell is kept empty and switching back to the preview tab', () => {
|
308
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
309
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInResponseContainerOfSetCorrectAnswerSection('Ostrich');
|
310
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
311
|
-
});
|
312
|
-
|
313
|
-
it('When the user attempts the question for an empty cell set as correct response correctly then on selecting the \'Show correct answer\' checkbox, points provided should be the total of points of each correct cell, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed', () => {
|
314
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
315
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
316
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
317
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
318
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
319
|
-
|
320
|
-
cy.log('User should be awarded full points')
|
321
|
-
switch (scoringSubtype) {
|
322
|
-
case 'Total score divided between each cell':
|
323
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
324
|
-
.verifyInnerText('10/10');
|
325
|
-
break;
|
326
|
-
case 'Partial - score for each cell':
|
327
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
328
|
-
.verifyInnerText('40/40');
|
329
|
-
break;
|
330
|
-
}
|
331
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
332
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
333
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
334
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
335
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
336
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
337
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
338
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
339
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
340
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
341
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
342
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
343
|
-
|
344
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
345
|
-
|
346
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed')
|
347
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
348
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
349
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
350
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
351
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
352
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
353
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
354
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
355
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
356
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
357
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
358
|
-
});
|
359
|
-
|
360
|
-
it('When the user attempts the question for an empty cell set as correct response such that option is filled in the empty cell and all the other cells are correctly attempted then on selecting the \'Show correct answer\' checkbox, points provided should be the total of points of each correct cell, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses, green check-mark icon should be displayed above the correct cell, incorrect cell border and red cross-mark should be displayed above incorrect cell and no correct answer section should be displayed', () => {
|
361
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
362
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
363
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
364
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
365
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
366
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
367
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
368
|
-
|
369
|
-
cy.log('User should be total score obtained by each correct cell');
|
370
|
-
switch (scoringSubtype) {
|
371
|
-
case 'Total score divided between each cell':
|
372
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
373
|
-
.verifyInnerText('7.5/10');
|
374
|
-
break;
|
375
|
-
case 'Partial - score for each cell':
|
376
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
377
|
-
.verifyInnerText('30/40');
|
378
|
-
break;
|
379
|
-
}
|
380
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
381
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
382
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
383
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
384
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
385
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
386
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
387
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
388
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([3]);
|
389
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2]);
|
390
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
391
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
392
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
393
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
394
|
-
|
395
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
396
|
-
|
397
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed')
|
398
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
399
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
400
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
401
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
402
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
403
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
404
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
405
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([3]);
|
406
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2]);
|
407
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
408
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
409
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
410
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
411
|
-
});
|
412
|
-
},
|
413
|
-
|
414
|
-
verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints: (scoringSubtype) => {
|
415
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Correct tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
416
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
417
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
418
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
419
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
420
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
421
|
-
switch (scoringSubtype) {
|
422
|
-
case 'Total score divided between each cell':
|
423
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
424
|
-
.verifyInnerText('5/10');
|
425
|
-
break;
|
426
|
-
case 'Partial - score for each cell':
|
427
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
428
|
-
.verifyInnerText('20/40');
|
429
|
-
break;
|
430
|
-
}
|
431
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
432
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
433
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
434
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
435
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
436
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
437
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
438
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Whale'], ['Ostrich']], [3, 4]);
|
439
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
440
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
441
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
442
|
-
|
443
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
444
|
-
|
445
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
446
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
447
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
448
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
449
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
450
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
451
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
452
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
453
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
454
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
455
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
456
|
-
});
|
457
|
-
|
458
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Alternate tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
459
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
460
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
461
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
462
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
463
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
464
|
-
switch (scoringSubtype) {
|
465
|
-
case 'Total score divided between each cell':
|
466
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
467
|
-
.verifyInnerText('4/10');
|
468
|
-
break;
|
469
|
-
case 'Partial - score for each cell':
|
470
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
471
|
-
.verifyInnerText('16/40');
|
472
|
-
break;
|
473
|
-
}
|
474
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
475
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
476
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
477
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
478
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
479
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
480
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
481
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Parrot'], ['Ostrich']], [3, 4]);
|
482
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
483
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
484
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
485
|
-
|
486
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
487
|
-
|
488
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct response options and no correct answer section should be displayed')
|
489
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
490
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
491
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
492
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
493
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
494
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
495
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
496
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
497
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
498
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
499
|
-
});
|
500
|
-
|
501
|
-
it('When the user attempts the question partially correct such that a cell is correctly attempted with both the correct and alternate answer options and points achieved from the correct tab mapping is more than the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, 0 points should be provided, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
502
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
503
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
504
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
505
|
-
cy.log('User should be awarded 0 points')
|
506
|
-
switch (scoringSubtype) {
|
507
|
-
case 'Total score divided between each cell':
|
508
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
509
|
-
.verifyInnerText('0/10');
|
510
|
-
break;
|
511
|
-
case 'Partial - score for each cell':
|
512
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
513
|
-
.verifyInnerText('0/40');
|
514
|
-
break;
|
515
|
-
}
|
516
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
517
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
518
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
519
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
520
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
521
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']], [2, 3, 4]);
|
522
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
523
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
524
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
525
|
-
|
526
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
527
|
-
|
528
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell')
|
529
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
530
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
531
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
532
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
533
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
534
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
535
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
536
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
537
|
-
});
|
538
|
-
|
539
|
-
it('When the user attempts the question partially correct such that one cell is correctly attempted as per the correct tab and another cell is correctly attempted as per the alternate tab and points achieved from the correct tab mapping is more than the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox the points achieved should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
540
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
541
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
542
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
543
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
544
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
545
|
-
switch (scoringSubtype) {
|
546
|
-
case 'Total score divided between each cell':
|
547
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
548
|
-
.verifyInnerText('2.5/10');
|
549
|
-
break;
|
550
|
-
case 'Partial - score for each cell':
|
551
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
552
|
-
.verifyInnerText('10/40');
|
553
|
-
break;
|
554
|
-
}
|
555
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
556
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
557
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
558
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
559
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
560
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1]);
|
561
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2, 3]);
|
562
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Platypus', 'Whale'], ['Ostrich']], [1, 3, 4]);
|
563
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
564
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
565
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
566
|
-
|
567
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
568
|
-
|
569
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell containing options from the correct tab, red cross-mark icon should be displayed above the incorrect cell containing options from the alternate tab and no correct answer section should be displayed')
|
570
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
571
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
572
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
573
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
574
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1]);
|
575
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2, 3]);
|
576
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
577
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
578
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
579
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
580
|
-
});
|
581
|
-
|
582
|
-
it('When the user attempts the question partially correct with only common options across both the correct and alternate tabs and points achieved from the correct tab mapping is more than the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct cell as per the correct tab, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
583
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
584
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
585
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
586
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
587
|
-
switch (scoringSubtype) {
|
588
|
-
case 'Total score divided between each cell':
|
589
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
590
|
-
.verifyInnerText('2.5/10');
|
591
|
-
break;
|
592
|
-
case 'Partial - score for each cell':
|
593
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
594
|
-
.verifyInnerText('10/40');
|
595
|
-
break;
|
596
|
-
}
|
597
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
598
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
599
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
600
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
601
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
602
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
603
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Whale']], [1, 2, 3]);
|
604
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
605
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
606
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
607
|
-
|
608
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
609
|
-
|
610
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
611
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
612
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
613
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
614
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
615
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
616
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
617
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
618
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
619
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
620
|
-
});
|
621
|
-
|
622
|
-
it('When the user attempts the question partially correct such that equal number of cells are correct according to correct tab and alternate tab mappings and points achieved from the correct tab mapping is more than the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
623
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
624
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
625
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
626
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
627
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
628
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
629
|
-
switch (scoringSubtype) {
|
630
|
-
case 'Total score divided between each cell':
|
631
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
632
|
-
.verifyInnerText('5/10');
|
633
|
-
break;
|
634
|
-
case 'Partial - score for each cell':
|
635
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
636
|
-
.verifyInnerText('20/40');
|
637
|
-
break;
|
638
|
-
}
|
639
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
640
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
641
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
642
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
643
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
644
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
645
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1, 3]);
|
646
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2]);
|
647
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Platypus', 'Whale']], [1, 3]);
|
648
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
649
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
650
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
651
|
-
|
652
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
653
|
-
|
654
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, green check-mark icon should be displayed above the correct cell and the correct answer section should red cross-mark should be displayed besides the incorrect answer responses from the alternate tab and no correct answer section should be displayed')
|
655
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
656
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
657
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
658
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
659
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
660
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1, 3]);
|
661
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2]);
|
662
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
663
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
664
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
665
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
666
|
-
});
|
667
|
-
|
668
|
-
it('When the user attempts the question such that more number of cells are correct as per the alternate tab mapping (3 cells- one cell exclusively correct as per the alternate tab, one cell correct for both the tabs and one cell containing correct options from both the tabs) than the correct tab mapping (2 cells- one cell correct for both the tabs and one cell containing correct options from both the tabs) and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell, and no correct answer section should be displayed', () => {
|
669
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
670
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
671
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
672
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
673
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
674
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
675
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
676
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
677
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
678
|
-
switch (scoringSubtype) {
|
679
|
-
case 'Total score divided between each cell':
|
680
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
681
|
-
.verifyInnerText('6/10');
|
682
|
-
break;
|
683
|
-
case 'Partial - score for each cell':
|
684
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
685
|
-
.verifyInnerText('24/40');
|
686
|
-
break;
|
687
|
-
}
|
688
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
689
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
690
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
691
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
692
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
693
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
694
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
695
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
696
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
697
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
698
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
699
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
700
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
701
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
702
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
703
|
-
|
704
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
705
|
-
|
706
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed')
|
707
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
708
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
709
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
710
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
711
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
712
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
713
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
714
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
715
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
716
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
717
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
718
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
719
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
720
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
721
|
-
});
|
722
|
-
|
723
|
-
it('Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such that on attempting the question partially correct, points achieved from the alternate tab mapping is equal to the correct tab mapping', () => {
|
724
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
725
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCorrectTab();
|
726
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(12);
|
727
|
-
dragAndDropIntoCategoriesPage.steps.navigateToAlternateTab(1);
|
728
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(4);
|
729
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
730
|
-
});
|
731
|
-
|
732
|
-
it('When the user attempts the question partially correct such that more number of cells are correct according to the alternate tab mapping and points achieved from the correct tab mapping is equal to the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
733
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
734
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
735
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
736
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
737
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
738
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
739
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
740
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
741
|
-
switch (scoringSubtype) {
|
742
|
-
case 'Total score divided between each cell':
|
743
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
744
|
-
.verifyInnerText('3/12');
|
745
|
-
break;
|
746
|
-
case 'Partial - score for each cell':
|
747
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
748
|
-
.verifyInnerText('12/48');
|
749
|
-
break;
|
750
|
-
}
|
751
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
752
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
753
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
754
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
755
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
756
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
757
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
758
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
759
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
760
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
761
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
762
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot']], [1, 2]);
|
763
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
764
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
765
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
766
|
-
|
767
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
768
|
-
|
769
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
770
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
771
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
772
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
773
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
774
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
775
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
776
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
777
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
778
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
779
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
780
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
781
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
782
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
783
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
784
|
-
});
|
785
|
-
},
|
786
|
-
|
787
|
-
verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints: (scoringSubtype) => {
|
788
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Correct tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
789
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
790
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
791
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
792
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
793
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
794
|
-
switch (scoringSubtype) {
|
795
|
-
case 'Total score divided between each cell':
|
796
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
797
|
-
.verifyInnerText('4/10');
|
798
|
-
break;
|
799
|
-
case 'Partial - score for each cell':
|
800
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
801
|
-
.verifyInnerText('16/40');
|
802
|
-
break;
|
803
|
-
}
|
804
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
805
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
806
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
807
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
808
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
809
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
810
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
811
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Whale'], ['Ostrich']], [3, 4]);
|
812
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
813
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
814
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
815
|
-
|
816
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
817
|
-
|
818
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
819
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
820
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
821
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
822
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
823
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
824
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
825
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
826
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
827
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
828
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
829
|
-
});
|
830
|
-
|
831
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Alternate tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
832
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
833
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
834
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
835
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
836
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
837
|
-
switch (scoringSubtype) {
|
838
|
-
case 'Total score divided between each cell':
|
839
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
840
|
-
.verifyInnerText('5/10');
|
841
|
-
break;
|
842
|
-
case 'Partial - score for each cell':
|
843
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
844
|
-
.verifyInnerText('20/40');
|
845
|
-
break;
|
846
|
-
}
|
847
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
848
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
849
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
850
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
851
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
852
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
853
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
854
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Parrot'], ['Ostrich']], [3, 4]);
|
855
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
856
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
857
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
858
|
-
|
859
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
860
|
-
|
861
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct response options and no correct answer section should be displayed')
|
862
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
863
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
864
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
865
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
866
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
867
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
868
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
869
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
870
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
871
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
872
|
-
});
|
873
|
-
|
874
|
-
it('When the user attempts the question partially correct such that a cell is correctly attempted with both the correct and alternate answer options and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, 0 points should be provided, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
875
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
876
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
877
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
878
|
-
cy.log('User should be awarded 0 points')
|
879
|
-
switch (scoringSubtype) {
|
880
|
-
case 'Total score divided between each cell':
|
881
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
882
|
-
.verifyInnerText('0/10');
|
883
|
-
break;
|
884
|
-
case 'Partial - score for each cell':
|
885
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
886
|
-
.verifyInnerText('0/40');
|
887
|
-
break;
|
888
|
-
}
|
889
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
890
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
891
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
892
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
893
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
894
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Peacock', 'Falcon'], ['Platypus', 'Parrot'], ['Ostrich']], [2, 3, 4]);
|
895
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
896
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
897
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
898
|
-
|
899
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
900
|
-
|
901
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell and no correct answer section should be displayed')
|
902
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
903
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
904
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
905
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
906
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
907
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
908
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
909
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
910
|
-
});
|
911
|
-
|
912
|
-
it('When the user attempts the question partially correct such that one cell is correctly attempted as per the correct tab and another cell is correctly attempted as per the alternate tab and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox the points achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
913
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
914
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
915
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
916
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
917
|
-
cy.log('User should be total score obtained by each correct cell according to the alternate tab mapping')
|
918
|
-
switch (scoringSubtype) {
|
919
|
-
case 'Total score divided between each cell':
|
920
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
921
|
-
.verifyInnerText('2.5/10');
|
922
|
-
break;
|
923
|
-
case 'Partial - score for each cell':
|
924
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
925
|
-
.verifyInnerText('10/40');
|
926
|
-
break;
|
927
|
-
}
|
928
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
929
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
930
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
931
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
932
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
933
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0]);
|
934
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2, 3]);
|
935
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Peacock', 'Falcon'], ['Platypus', 'Parrot'], ['Ostrich']], [2, 3, 4]);
|
936
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
937
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
938
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
939
|
-
|
940
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
941
|
-
|
942
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
943
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
944
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
945
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
946
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
947
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0]);
|
948
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2, 3]);
|
949
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
950
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
951
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
952
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
953
|
-
});
|
954
|
-
|
955
|
-
it('When the user attempts the question partially correct with only common options across both the correct and alternate tabs and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct cell as per the alternate tab, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
956
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
957
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
958
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
959
|
-
cy.log('User should be total score obtained by each correct cell according to the alternate tab mapping')
|
960
|
-
switch (scoringSubtype) {
|
961
|
-
case 'Total score divided between each cell':
|
962
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
963
|
-
.verifyInnerText('2.5/10');
|
964
|
-
break;
|
965
|
-
case 'Partial - score for each cell':
|
966
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
967
|
-
.verifyInnerText('10/40');
|
968
|
-
break;
|
969
|
-
}
|
970
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
971
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
972
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
973
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
974
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
975
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
976
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Peacock', 'Falcon'], ['Parrot']], [1, 2, 3]);
|
977
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
978
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
979
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
980
|
-
|
981
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
982
|
-
|
983
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
984
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
985
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
986
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
987
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
988
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
989
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
990
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
991
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
992
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
993
|
-
});
|
994
|
-
|
995
|
-
it('When the user attempts the question partially correct such that equal number of cells are correct according to correct tab and alternate tab mappings and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
996
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
997
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
998
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
999
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1000
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1001
|
-
cy.log('User should be total score obtained by each correct cell according to the alternate tab mapping')
|
1002
|
-
switch (scoringSubtype) {
|
1003
|
-
case 'Total score divided between each cell':
|
1004
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1005
|
-
.verifyInnerText('5/10');
|
1006
|
-
break;
|
1007
|
-
case 'Partial - score for each cell':
|
1008
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1009
|
-
.verifyInnerText('20/40');
|
1010
|
-
break;
|
1011
|
-
}
|
1012
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1013
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1014
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1015
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1016
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1017
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1018
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 3]);
|
1019
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2]);
|
1020
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Peacock', 'Falcon'], ['Platypus', 'Parrot']], [2, 3]);
|
1021
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1022
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1023
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1024
|
-
|
1025
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1026
|
-
|
1027
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
1028
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1029
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1030
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1031
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1032
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1033
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 3]);
|
1034
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1, 2]);
|
1035
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1036
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1037
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1038
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1039
|
-
});
|
1040
|
-
|
1041
|
-
it('When the user attempts the question such that more number of cells are correct as per the correct tab mapping (3 cells- one cell exclusively correct as per the correct tab, one cell correct for both the tabs and one cell containing correct options from both the tabs) than the alternate tab mapping (2 cells- one cell correct for both the tabs and one cell containing correct options from both the tabs) and points achieved from the correct tab mapping is more than the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed', () => {
|
1042
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1043
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1044
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1045
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1046
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
1047
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1048
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1049
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1050
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1051
|
-
switch (scoringSubtype) {
|
1052
|
-
case 'Total score divided between each cell':
|
1053
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1054
|
-
.verifyInnerText('6/10');
|
1055
|
-
break;
|
1056
|
-
case 'Partial - score for each cell':
|
1057
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1058
|
-
.verifyInnerText('24/40');
|
1059
|
-
break;
|
1060
|
-
}
|
1061
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1062
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1063
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1064
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1065
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1066
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
1067
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1068
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1069
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1070
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 2, 3]);
|
1071
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1]);
|
1072
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1073
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1074
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1075
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1076
|
-
|
1077
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1078
|
-
|
1079
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
1080
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1081
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1082
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1083
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1084
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
1085
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1086
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1087
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1088
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 2, 3]);
|
1089
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([1]);
|
1090
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1091
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1092
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1093
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1094
|
-
});
|
1095
|
-
|
1096
|
-
it('Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such that on attempting the question partially correct, points achieved from the correct tab mapping is equal to the alternate tab mapping', () => {
|
1097
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
1098
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCorrectTab();
|
1099
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(4);
|
1100
|
-
dragAndDropIntoCategoriesPage.steps.navigateToAlternateTab(1);
|
1101
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(12);
|
1102
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
1103
|
-
});
|
1104
|
-
|
1105
|
-
it('When the user attempts the question partially correct such that more number of cells are correct according to the correct tab mapping and points achieved from the alternate tab mapping is equal to the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
1106
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1107
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1108
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1109
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
1110
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1111
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1112
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1113
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1114
|
-
switch (scoringSubtype) {
|
1115
|
-
case 'Total score divided between each cell':
|
1116
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1117
|
-
.verifyInnerText('3/12');
|
1118
|
-
break;
|
1119
|
-
case 'Partial - score for each cell':
|
1120
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1121
|
-
.verifyInnerText('12/48');
|
1122
|
-
break;
|
1123
|
-
}
|
1124
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1125
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1126
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1127
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1128
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1129
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1130
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1131
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
1132
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1133
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
1134
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
1135
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Falcon'], ['Parrot']], [1, 2, 3]);
|
1136
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1137
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1138
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1139
|
-
|
1140
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1141
|
-
|
1142
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
1143
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1144
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1145
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
1146
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1147
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1148
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1149
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
1150
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1151
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
1152
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
1153
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1154
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1155
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1156
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1157
|
-
});
|
1158
|
-
},
|
1159
|
-
|
1160
|
-
verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints: (scoringSubtype) => {
|
1161
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Correct tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1162
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1163
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1164
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1165
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1166
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1167
|
-
switch (scoringSubtype) {
|
1168
|
-
case 'Total score divided between each cell':
|
1169
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1170
|
-
.verifyInnerText('5/10');
|
1171
|
-
break;
|
1172
|
-
case 'Partial - score for each cell':
|
1173
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1174
|
-
.verifyInnerText('20/40');
|
1175
|
-
break;
|
1176
|
-
}
|
1177
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1178
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1179
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1180
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1181
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1182
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
1183
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
1184
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Whale'], ['Ostrich']], [3, 4]);
|
1185
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1186
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1187
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1188
|
-
|
1189
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1190
|
-
|
1191
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
1192
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1193
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1194
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1195
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1196
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
1197
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
1198
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1199
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1200
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1201
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1202
|
-
});
|
1203
|
-
|
1204
|
-
it('When the user attempts the question partially correct with options exclusively from the \'Alternate tab\' then on selecting the \'Show correct answer\' checkbox, the points provided should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
1205
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1206
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1207
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
1208
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
1209
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1210
|
-
switch (scoringSubtype) {
|
1211
|
-
case 'Total score divided between each cell':
|
1212
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1213
|
-
.verifyInnerText('5/10');
|
1214
|
-
break;
|
1215
|
-
case 'Partial - score for each cell':
|
1216
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1217
|
-
.verifyInnerText('20/40');
|
1218
|
-
break;
|
1219
|
-
}
|
1220
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1221
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1222
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1223
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1224
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1225
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
1226
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
1227
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Platypus', 'Parrot'], ['Ostrich']], [3, 4]);
|
1228
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1229
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1230
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1231
|
-
|
1232
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1233
|
-
|
1234
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct response options and no correct answer section should be displayed')
|
1235
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1236
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1237
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1238
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1239
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1]);
|
1240
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2, 3]);
|
1241
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1242
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1243
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1244
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1245
|
-
});
|
1246
|
-
|
1247
|
-
it('When the user attempts the question partially correct such that a cell is correctly attempted with both the correct and alternate answer options and points achieved from the correct tab mapping is equal to the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, 0 points should be provided, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1248
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1249
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1250
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1251
|
-
cy.log('User should be awarded 0 points')
|
1252
|
-
switch (scoringSubtype) {
|
1253
|
-
case 'Total score divided between each cell':
|
1254
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1255
|
-
.verifyInnerText('0/10');
|
1256
|
-
break;
|
1257
|
-
case 'Partial - score for each cell':
|
1258
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1259
|
-
.verifyInnerText('0/40');
|
1260
|
-
break;
|
1261
|
-
}
|
1262
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1263
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1264
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1265
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1266
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
1267
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']], [2, 3, 4]);
|
1268
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1269
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1270
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1271
|
-
|
1272
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1273
|
-
|
1274
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, red cross-mark icon should be displayed above the incorrect cell containing options of alternate tab and correct tab in the same cell')
|
1275
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1276
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1277
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1278
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2, 3]);
|
1279
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1280
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1281
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1282
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1283
|
-
});
|
1284
|
-
|
1285
|
-
it('When the user attempts the question partially correct such that one cell is correctly attempted as per the correct tab and another cell is correctly attempted as per the alternate tab and points achieved from the correct tab mapping is equal to the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox the points achieved should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1286
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1287
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1288
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1289
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1290
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1291
|
-
switch (scoringSubtype) {
|
1292
|
-
case 'Total score divided between each cell':
|
1293
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1294
|
-
.verifyInnerText('2.5/10');
|
1295
|
-
break;
|
1296
|
-
case 'Partial - score for each cell':
|
1297
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1298
|
-
.verifyInnerText('10/40');
|
1299
|
-
break;
|
1300
|
-
}
|
1301
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1302
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1303
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1304
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1305
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1306
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1]);
|
1307
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2, 3]);
|
1308
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Platypus', 'Whale'], ['Ostrich']], [1, 3, 4]);
|
1309
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1310
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1311
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1312
|
-
|
1313
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1314
|
-
|
1315
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell containing options from the correct tab, red cross-mark icon should be displayed above the incorrect cell containing options from the alternate tab and no correct answer section should be displayed')
|
1316
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1317
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1318
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1319
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1320
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1]);
|
1321
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2, 3]);
|
1322
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1323
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1324
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1325
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1326
|
-
});
|
1327
|
-
|
1328
|
-
it('When the user attempts the question partially correct with only common options across both the correct and alternate tabs and points achieved from the correct tab mapping is equal to the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct cell as per the correct tab, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1329
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1330
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1331
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1332
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1333
|
-
switch (scoringSubtype) {
|
1334
|
-
case 'Total score divided between each cell':
|
1335
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1336
|
-
.verifyInnerText('2.5/10');
|
1337
|
-
break;
|
1338
|
-
case 'Partial - score for each cell':
|
1339
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1340
|
-
.verifyInnerText('10/40');
|
1341
|
-
break;
|
1342
|
-
}
|
1343
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1344
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1345
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1346
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1347
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
1348
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
1349
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Whale']], [1, 2, 3]);
|
1350
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1351
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1352
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1353
|
-
|
1354
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1355
|
-
|
1356
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and no correct answer section should be displayed')
|
1357
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1358
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1359
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1360
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([3]);
|
1361
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 1, 2]);
|
1362
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1363
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1364
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1365
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1366
|
-
});
|
1367
|
-
|
1368
|
-
it('When the user attempts the question partially correct such that equal number of cells are correct according to correct tab and alternate tab mappings and points achieved from the correct tab mapping is equal to the points achieved from alternate tab mapping then on selecting the \'Show correct answer\' checkbox, points provided should be according to the correct tab mapping, green check-mark icon should be displayed besides the correct answer responses from the correct tab, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1369
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1370
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1371
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1372
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1373
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1374
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1375
|
-
switch (scoringSubtype) {
|
1376
|
-
case 'Total score divided between each cell':
|
1377
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1378
|
-
.verifyInnerText('5/10');
|
1379
|
-
break;
|
1380
|
-
case 'Partial - score for each cell':
|
1381
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1382
|
-
.verifyInnerText('20/40');
|
1383
|
-
break;
|
1384
|
-
}
|
1385
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1386
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1387
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1388
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1389
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1390
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1391
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1, 3]);
|
1392
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2]);
|
1393
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Platypus', 'Whale']], [1, 3]);
|
1394
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1395
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1396
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1397
|
-
|
1398
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1399
|
-
|
1400
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses from the correct tab, green check-mark icon should be displayed above the correct cell and the correct answer section should red cross-mark should be displayed besides the incorrect answer responses from the alternate tab and no correct answer section should be displayed')
|
1401
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1402
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1403
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1404
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1405
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1406
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([1, 3]);
|
1407
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([0, 2]);
|
1408
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1409
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1410
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1411
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1412
|
-
});
|
1413
|
-
|
1414
|
-
it('When the user attempts the question such that more number of cells are correct as per the alternate tab mapping (3 cells- one cell exclusively correct as per the alternate tab, one cell correct for both the tabs and one cell containing correct options from both the tabs) than the correct tab mapping (2 cells- one cell correct for both the tabs and one cell containing correct options from both the tabs) and points achieved from the alternate tab mapping is more than the points achieved from correct tab mapping then on selecting the \'Show correct answer\' checkbox, the points achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the correct answer responses from the alternate tab, red cross-mark should be displayed besides the incorrect answer responses from the correct tab, green check-mark icon should be displayed above the correct cell, red cross-mark icon should be displayed above the incorrect cell, and no correct answer section should be displayed', () => {
|
1415
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1416
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1417
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
1418
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
1419
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1420
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1421
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
1422
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1423
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1424
|
-
switch (scoringSubtype) {
|
1425
|
-
case 'Total score divided between each cell':
|
1426
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1427
|
-
.verifyInnerText('7.5/10');
|
1428
|
-
break;
|
1429
|
-
case 'Partial - score for each cell':
|
1430
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1431
|
-
.verifyInnerText('30/40');
|
1432
|
-
break;
|
1433
|
-
}
|
1434
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1435
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1436
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1437
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1438
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1439
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
1440
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1441
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1442
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1443
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
1444
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
1445
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1446
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1447
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1448
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1449
|
-
|
1450
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1451
|
-
|
1452
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed')
|
1453
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1454
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1455
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1456
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1457
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
1458
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1459
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1460
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(6);
|
1461
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 3]);
|
1462
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectCellCrossmarkIcon([2]);
|
1463
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1464
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1465
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1466
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1467
|
-
});
|
1468
|
-
},
|
1469
|
-
|
1470
|
-
verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions: (pointsScored, allocatedPoints) => {
|
1471
|
-
it('When the user attempts the question fully correct as set in the \'Correct tab\' then on selecting the \'Show correct answer\' checkbox full score should be provided, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed', () => {
|
1472
|
-
cy.log('Pre-step: deselecting the show correct answer checkbox')
|
1473
|
-
dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
|
1474
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1475
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1476
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1477
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1478
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1479
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1480
|
-
cy.log('User should be total score obtained by each correct cell according to the correct tab mapping')
|
1481
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1482
|
-
.verifyInnerText(`${pointsScored}/${allocatedPoints}`);
|
1483
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1484
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1485
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1486
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1487
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1488
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1489
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1490
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1491
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1492
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
1493
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1494
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1495
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1496
|
-
|
1497
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1498
|
-
|
1499
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses and no correct answer section should be displayed')
|
1500
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1501
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1502
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1503
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1504
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1505
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1506
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1507
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1508
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
1509
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1510
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1511
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1512
|
-
});
|
1513
|
-
},
|
1514
|
-
|
1515
|
-
verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions: (pointsScored, allocatedPoints) => {
|
1516
|
-
it('When the user attempts the question fully correct as set in the \'Alternate tab\' then on selecting the \'Show correct answer\' checkbox, the points specified for alternate correct answers should be provided, green check-mark icon should be displayed besides the correct answer responses, green check-mark icon should be displayed above the correct cell and no correct answer section should be displayed', () => {
|
1517
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1518
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1519
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Peacock', 1);
|
1520
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Falcon', 1);
|
1521
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
1522
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1523
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1524
|
-
cy.log('User should be total score obtained by each correct response according to the alternate tab mapping')
|
1525
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1526
|
-
.verifyInnerText(`${pointsScored}/${allocatedPoints}`);
|
1527
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1528
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1529
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1530
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1531
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1532
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1533
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1534
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1535
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
1536
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1537
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1538
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1539
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1540
|
-
|
1541
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1542
|
-
|
1543
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct response options and no correct answer section should be displayed')
|
1544
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1545
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1546
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1547
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1548
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1549
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1550
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectCellCheckmarkIcon([0, 1, 2, 3]);
|
1551
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1552
|
-
cy.log('Correct/Incorrect answer border for the question and label should not be displayed below the question preview')
|
1553
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1554
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1555
|
-
});
|
1556
|
-
}
|
1557
|
-
}
|
1558
|
-
|
1559
|
-
export const dragAndDropIntoCategoriesCellsScoring = {
|
1560
|
-
tests
|
1561
|
-
}
|