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,1396 +0,0 @@
|
|
1
|
-
import { autoScoredPreviewBase, previewScoringAndShowCorrectAnswerComponent } from "./components";
|
2
|
-
import { dragAndDropIntoCategoriesPage } from "./dragAndDropIntoCategoriesPage";
|
3
|
-
const correctTabAnswerArray = [['Bat'], ['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']];
|
4
|
-
const cellNumerationArray = ['1', '2', '3', '4'];
|
5
|
-
|
6
|
-
const tests = {
|
7
|
-
/**
|
8
|
-
* @param {string} scoringSubtype option from the scoring subtype dropdown. Should be one of 'Total score divided between each correct response', 'Partial - score for each correct response'
|
9
|
-
* @description verify functionality for each response scoring subtypes without alternate answers
|
10
|
-
*/
|
11
|
-
verifyScoringForEachResponse: (scoringSubtype) => {
|
12
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, 0 points should be provided, red cross-mark icon should be displayed besides the incorrect answer responses and the correct answer section with all correct answers along with category cell numeration should be displayed', () => {
|
13
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 2);
|
14
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 3);
|
15
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 1);
|
16
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 0);
|
17
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 2);
|
18
|
-
cy.log('User should be awarded 0 points')
|
19
|
-
switch (scoringSubtype) {
|
20
|
-
case 'Total score divided between each correct response':
|
21
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
22
|
-
.verifyInnerText('0/10');
|
23
|
-
break;
|
24
|
-
case 'Partial - score for each correct response':
|
25
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
26
|
-
.verifyInnerText('0/60');
|
27
|
-
break;
|
28
|
-
}
|
29
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
30
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
31
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
32
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
33
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
34
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
35
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
|
36
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctTabAnswerArray, [1, 2, 3, 4]);
|
37
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
38
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
39
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
40
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
41
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
42
|
-
cy.log('When the user clicks on \'Check answer\' button, red cross-mark icon should be displayed besides the incorrect responses, correct/incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview and no correct answer section should be displayed')
|
43
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
44
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
45
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
46
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
47
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
|
48
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
|
49
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
50
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
51
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
52
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
53
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
54
|
-
});
|
55
|
-
|
56
|
-
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 then the points provided should be of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
57
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
58
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
59
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
60
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
61
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
62
|
-
|
63
|
-
cy.log('User should be total score obtained by each correct response');
|
64
|
-
switch (scoringSubtype) {
|
65
|
-
case 'Total score divided between each correct response':
|
66
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
67
|
-
.verifyInnerText('5/10');
|
68
|
-
break;
|
69
|
-
case 'Partial - score for each correct response':
|
70
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
71
|
-
.verifyInnerText('30/60');
|
72
|
-
break;
|
73
|
-
}
|
74
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
75
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
76
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
77
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
78
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
79
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
80
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
81
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot'], ['Platypus'], ['Ostrich']], [2, 3, 4]);
|
82
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
83
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
84
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
85
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
86
|
-
|
87
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
88
|
-
|
89
|
-
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 icon should be displayed besides the incorrect answer response and no correct answer section should be displayed')
|
90
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
91
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
92
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
93
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
94
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
95
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
96
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
97
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
98
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
99
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
100
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
101
|
-
});
|
102
|
-
|
103
|
-
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 and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
104
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
105
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
106
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
107
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
108
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
109
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
110
|
-
|
111
|
-
cy.log('User should be total score obtained by each correct response');
|
112
|
-
switch (scoringSubtype) {
|
113
|
-
case 'Total score divided between each correct response':
|
114
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
115
|
-
.verifyInnerText('8.33/10');
|
116
|
-
break;
|
117
|
-
case 'Partial - score for each correct response':
|
118
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
119
|
-
.verifyInnerText('50/60');
|
120
|
-
break;
|
121
|
-
}
|
122
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
123
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
124
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
125
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
126
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
127
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
128
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
129
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Whale']], [3]);
|
130
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
131
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
132
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
133
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
134
|
-
|
135
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
136
|
-
|
137
|
-
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')
|
138
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
139
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
140
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
141
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
142
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
143
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
144
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
145
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
146
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
147
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
148
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
149
|
-
});
|
150
|
-
|
151
|
-
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 full score should be provided, green check-mark icon should be displayed besides the correct answer responses, red cross-mark icon should appear besides the incorrect answer responses, correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview and no correct answer section should be displayed', () => {
|
152
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
153
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
154
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
155
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
156
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
157
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
158
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
159
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 3);
|
160
|
-
|
161
|
-
cy.log('User should be awarded full points')
|
162
|
-
switch (scoringSubtype) {
|
163
|
-
case 'Total score divided between each correct response':
|
164
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
165
|
-
.verifyInnerText('10/10');
|
166
|
-
break;
|
167
|
-
case 'Partial - score for each correct response':
|
168
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
169
|
-
.verifyInnerText('60/60');
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
173
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
174
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
175
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
176
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
177
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
178
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
179
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
180
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(6);
|
181
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
182
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
183
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
184
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
185
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
186
|
-
|
187
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
188
|
-
|
189
|
-
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 icon should appear besides the incorrect answer responses and no correct answer section should be displayed')
|
190
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
191
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
192
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
193
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
194
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
195
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
196
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
197
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(6);
|
198
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
199
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
200
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
201
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
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 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 correct response':
|
217
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
218
|
-
.verifyInnerText('10/10');
|
219
|
-
break;
|
220
|
-
case 'Partial - score for each correct response':
|
221
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
222
|
-
.verifyInnerText('60/60');
|
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.verifyCorrectAnswerSectionNotVisible();
|
234
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
235
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
236
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
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 and 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.verifyCorrectAnswerSectionNotVisible();
|
250
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
251
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
252
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
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 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 correct response':
|
268
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
269
|
-
.verifyInnerText('10/10');
|
270
|
-
break;
|
271
|
-
case 'Partial - score for each correct response':
|
272
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
273
|
-
.verifyInnerText('60/60');
|
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.verifyCorrectAnswerSectionNotVisible();
|
285
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
286
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
287
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
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 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.verifyCorrectAnswerSectionNotVisible();
|
301
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
302
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
303
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
304
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
305
|
-
});
|
306
|
-
},
|
307
|
-
|
308
|
-
/**
|
309
|
-
* @param {string} scoringSubtype option from the scoring subtype dropdown. Should be one of 'Total score divided between each correct response', 'Partial - score for each correct response'
|
310
|
-
* @description verify functionality for each response scoring subtypes with alternate answers when correct answer points are more than alternate answer points
|
311
|
-
*/
|
312
|
-
verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints: (scoringSubtype) => {
|
313
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternate tab but with an extra incorrect option then on selecting the \'Show correct answer\' checkbox, points specified for alternate correct answer (less than overall 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 response and no correct answer section should be displayed', () => {
|
314
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
315
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
316
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
317
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
318
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
319
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
320
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 3);
|
321
|
-
|
322
|
-
cy.log('User should be total score obtained by each correct response')
|
323
|
-
switch (scoringSubtype) {
|
324
|
-
case 'Total score divided between each correct response':
|
325
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
326
|
-
.verifyInnerText('6/10');
|
327
|
-
break;
|
328
|
-
case 'Partial - score for each correct response':
|
329
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
330
|
-
.verifyInnerText('35/60');
|
331
|
-
break;
|
332
|
-
}
|
333
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
334
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
335
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
336
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
337
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
338
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
339
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
340
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
341
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
342
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
343
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
344
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
345
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
346
|
-
|
347
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
348
|
-
|
349
|
-
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 response and no correct answer section should be displayed')
|
350
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
351
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
352
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
353
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
354
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
355
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
356
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
357
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
358
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
359
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
360
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
361
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
362
|
-
});
|
363
|
-
|
364
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
365
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
366
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
367
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
368
|
-
|
369
|
-
cy.log('User should be total score obtained by each correct response')
|
370
|
-
switch (scoringSubtype) {
|
371
|
-
case 'Total score divided between each correct response':
|
372
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
373
|
-
.verifyInnerText('3.33/10');
|
374
|
-
break;
|
375
|
-
case 'Partial - score for each correct response':
|
376
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
377
|
-
.verifyInnerText('20/60');
|
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.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
385
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
386
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
387
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
388
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
389
|
-
|
390
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
391
|
-
|
392
|
-
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')
|
393
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
394
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
395
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
396
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
397
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
398
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
399
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
400
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
401
|
-
});
|
402
|
-
|
403
|
-
it('When the user attempts the question partially correct with all the cells correct as per the \'Correct tab\' but one cell incomplete then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct response green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
404
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
405
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
406
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
407
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
408
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
409
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
410
|
-
|
411
|
-
cy.log('User should be total score obtained by each correct response')
|
412
|
-
switch (scoringSubtype) {
|
413
|
-
case 'Total score divided between each correct response':
|
414
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
415
|
-
.verifyInnerText('8.33/10');
|
416
|
-
break;
|
417
|
-
case 'Partial - score for each correct response':
|
418
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
419
|
-
.verifyInnerText('50/60');
|
420
|
-
break;
|
421
|
-
}
|
422
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
423
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
424
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
425
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
426
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
427
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
428
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
429
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot']], [2]);
|
430
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
431
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
432
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
433
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
434
|
-
|
435
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
436
|
-
|
437
|
-
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')
|
438
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
439
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
440
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
441
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
442
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
443
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
444
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
445
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
446
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
447
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
448
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
449
|
-
});
|
450
|
-
|
451
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
452
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
453
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
454
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
455
|
-
|
456
|
-
cy.log('User should be total score obtained by each correct response')
|
457
|
-
switch (scoringSubtype) {
|
458
|
-
case 'Total score divided between each correct response':
|
459
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
460
|
-
.verifyInnerText('2.4/10');
|
461
|
-
break;
|
462
|
-
case 'Partial - score for each correct response':
|
463
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
464
|
-
.verifyInnerText('14/60');
|
465
|
-
break;
|
466
|
-
}
|
467
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
468
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
469
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
470
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
471
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
472
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
473
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
474
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
475
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
476
|
-
|
477
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
478
|
-
|
479
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview and no correct answer section should be displayed')
|
480
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
481
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
482
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
483
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
484
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
485
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
486
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
487
|
-
});
|
488
|
-
|
489
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternate tab but with one option common across 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 alternate tab responses and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
490
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
491
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
492
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
493
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
494
|
-
|
495
|
-
cy.log('User should be total score obtained by each correct response')
|
496
|
-
switch (scoringSubtype) {
|
497
|
-
case 'Total score divided between each correct response':
|
498
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
499
|
-
.verifyInnerText('3.6/10');
|
500
|
-
break;
|
501
|
-
case 'Partial - score for each correct response':
|
502
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
503
|
-
.verifyInnerText('21/60');
|
504
|
-
break;
|
505
|
-
}
|
506
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
507
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
508
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
509
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
510
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
511
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Whale'], ['Ostrich']], [3, 4]);
|
512
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
513
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
514
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
515
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
516
|
-
|
517
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
518
|
-
|
519
|
-
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')
|
520
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
521
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
522
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
523
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
524
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
525
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
526
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
527
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
528
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
529
|
-
});
|
530
|
-
|
531
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternate tab but with one option exclusively from the correct tab in the same cell 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 alternate tab responses, red cross-mark should be displayed besides the incorrect correct tab responses from the and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
532
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
533
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
534
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
535
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
536
|
-
|
537
|
-
cy.log('User should be total score obtained by each correct response')
|
538
|
-
switch (scoringSubtype) {
|
539
|
-
case 'Total score divided between each correct response':
|
540
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
541
|
-
.verifyInnerText('2.4/10');
|
542
|
-
break;
|
543
|
-
case 'Partial - score for each correct response':
|
544
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
545
|
-
.verifyInnerText('14/60');
|
546
|
-
break;
|
547
|
-
}
|
548
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
549
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
550
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
551
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
552
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
553
|
-
dragAndDropIntoCategoriesPage.steps.
|
554
|
-
verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
555
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
556
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
557
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
558
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
559
|
-
|
560
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
561
|
-
|
562
|
-
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 response from the correct tab and no correct answer section should be displayed')
|
563
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
564
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
565
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
566
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
567
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
568
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
569
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
570
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
571
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
572
|
-
});
|
573
|
-
|
574
|
-
it('Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such on attempting the question partially correct, points achieved from the alternate tab mapping is equal to the correct tab mapping', () => {
|
575
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
576
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCorrectTab();
|
577
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(18);
|
578
|
-
dragAndDropIntoCategoriesPage.steps.navigateToAlternateTab(1);
|
579
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
580
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
581
|
-
});
|
582
|
-
|
583
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternate tab but with one option common across both the tabs 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 correct tab mapping, green check-mark icon should be displayed besides the common correct answer responses, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
584
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
585
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
586
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
587
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
588
|
-
|
589
|
-
cy.log('User should be total score obtained by each correct response')
|
590
|
-
switch (scoringSubtype) {
|
591
|
-
case 'Total score divided between each correct response':
|
592
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
593
|
-
.verifyInnerText('3/18');
|
594
|
-
break;
|
595
|
-
case 'Partial - score for each correct response':
|
596
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
597
|
-
.verifyInnerText('18/108');
|
598
|
-
break;
|
599
|
-
}
|
600
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
601
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
602
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
603
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
604
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
605
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Parrot'], ['Platypus', 'Whale'], ['Ostrich']], [1, 2, 3, 4]);
|
606
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
607
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
608
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
609
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
610
|
-
|
611
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
612
|
-
|
613
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the common correct answer responses, red cross-mark should be displayed besides the incorrect answer responses from the alternate tab and no correct answer section should be displayed')
|
614
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
615
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
616
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
617
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
618
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
619
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
620
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
621
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
622
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
623
|
-
});
|
624
|
-
|
625
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternate tab but with one option exclusively from the correct tab in the same cell 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 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 and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
626
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
627
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
628
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
629
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
630
|
-
|
631
|
-
cy.log('User should be total score obtained by each correct response')
|
632
|
-
switch (scoringSubtype) {
|
633
|
-
case 'Total score divided between each correct response':
|
634
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
635
|
-
.verifyInnerText('3/18');
|
636
|
-
break;
|
637
|
-
case 'Partial - score for each correct response':
|
638
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
639
|
-
.verifyInnerText('18/108');
|
640
|
-
break;
|
641
|
-
}
|
642
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
643
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
644
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
645
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
646
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
647
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']], [2, 3, 4]);
|
648
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
649
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
650
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
651
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
652
|
-
|
653
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
654
|
-
|
655
|
-
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 response from the correct tab and no correct answer section should be displayed')
|
656
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
657
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
658
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
659
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
660
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
661
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
662
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
663
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
664
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
665
|
-
});
|
666
|
-
},
|
667
|
-
|
668
|
-
/**
|
669
|
-
* @param {string} scoringSubtype option from the scoring subtype dropdown. Should be one of 'Total score divided between each correct response', 'Partial - score for each correct response'
|
670
|
-
* @description verify functionality for each response scoring subtypes with alternate answers when alternate answer points are more than when correct answer points
|
671
|
-
*/
|
672
|
-
verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints: (scoringSubtype) => {
|
673
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted as per the correct tab but with an extra incorrect option then on selecting the \'Show correct answer\' checkbox, points specified for alternate correct answer (less than overall 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 response and no correct answer section should be displayed', () => {
|
674
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
675
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
676
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
677
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
678
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
679
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
680
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
681
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 3);
|
682
|
-
|
683
|
-
cy.log('User should be total score obtained by each correct response')
|
684
|
-
switch (scoringSubtype) {
|
685
|
-
case 'Total score divided between each correct response':
|
686
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
687
|
-
.verifyInnerText('8/10');
|
688
|
-
break;
|
689
|
-
case 'Partial - score for each correct response':
|
690
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
691
|
-
.verifyInnerText('48/50');
|
692
|
-
break;
|
693
|
-
}
|
694
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
695
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
696
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
697
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
698
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
699
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
700
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
701
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
702
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
703
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
704
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
705
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
706
|
-
|
707
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
708
|
-
|
709
|
-
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 response and no correct answer section should be displayed')
|
710
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
711
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
712
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
713
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
714
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
715
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
716
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
717
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(6);
|
718
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
719
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
720
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
721
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
722
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
723
|
-
});
|
724
|
-
|
725
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
726
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
727
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
728
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
729
|
-
|
730
|
-
cy.log('User should be total score obtained by each correct response')
|
731
|
-
switch (scoringSubtype) {
|
732
|
-
case 'Total score divided between each correct response':
|
733
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
734
|
-
.verifyInnerText('4/10');
|
735
|
-
break;
|
736
|
-
case 'Partial - score for each correct response':
|
737
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
738
|
-
.verifyInnerText('20/50');
|
739
|
-
break;
|
740
|
-
}
|
741
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
742
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
743
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
744
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
745
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
746
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
747
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
748
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
749
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
750
|
-
|
751
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
752
|
-
|
753
|
-
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')
|
754
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
755
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
756
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
757
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
758
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
759
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
760
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
761
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
762
|
-
});
|
763
|
-
|
764
|
-
it('When the user attempts the question partially correct with all the cells correct as per the \'Alternate tab\' but one cell incomplete then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
765
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
766
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
767
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
768
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
769
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
770
|
-
|
771
|
-
cy.log('User should be total score obtained by each correct response')
|
772
|
-
switch (scoringSubtype) {
|
773
|
-
case 'Total score divided between each correct response':
|
774
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
775
|
-
.verifyInnerText('8/10');
|
776
|
-
break;
|
777
|
-
case 'Partial - score for each correct response':
|
778
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
779
|
-
.verifyInnerText('40/50');
|
780
|
-
break;
|
781
|
-
}
|
782
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
783
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
784
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
785
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
786
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
787
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
788
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Whale']], [3]);
|
789
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
790
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
791
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
792
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
793
|
-
|
794
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
795
|
-
|
796
|
-
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')
|
797
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
798
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
799
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
800
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
801
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
802
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
803
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
804
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
805
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
806
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
807
|
-
});
|
808
|
-
|
809
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
810
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
811
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
812
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
813
|
-
|
814
|
-
cy.log('User should be total score obtained by each correct response')
|
815
|
-
switch (scoringSubtype) {
|
816
|
-
case 'Total score divided between each correct response':
|
817
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
818
|
-
.verifyInnerText('2.67/10');
|
819
|
-
break;
|
820
|
-
case 'Partial - score for each correct response':
|
821
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
822
|
-
.verifyInnerText('16/50');
|
823
|
-
break;
|
824
|
-
}
|
825
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
826
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
827
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
828
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
829
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
830
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
831
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
832
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
833
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
834
|
-
|
835
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
836
|
-
|
837
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview and no correct answer section should be displayed')
|
838
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
839
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
840
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
841
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
842
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
843
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
844
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
845
|
-
});
|
846
|
-
|
847
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the correct tab but with one option common across 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 tab responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
848
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
849
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
850
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
851
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
852
|
-
|
853
|
-
cy.log('User should be total score obtained by each correct response')
|
854
|
-
switch (scoringSubtype) {
|
855
|
-
case 'Total score divided between each correct response':
|
856
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
857
|
-
.verifyInnerText('4/10');
|
858
|
-
break;
|
859
|
-
case 'Partial - score for each correct response':
|
860
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
861
|
-
.verifyInnerText('24/50');
|
862
|
-
break;
|
863
|
-
}
|
864
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
865
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
866
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
867
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
868
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
869
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
870
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
871
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
872
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
873
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
874
|
-
|
875
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
876
|
-
|
877
|
-
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')
|
878
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
879
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
880
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
881
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
882
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
883
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
884
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
885
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
886
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
887
|
-
});
|
888
|
-
|
889
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the correct tab but with one option exclusively from the alternate tab in the same cell 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 and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
890
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
891
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
892
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
893
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
894
|
-
|
895
|
-
cy.log('User should be total score obtained by each correct response')
|
896
|
-
switch (scoringSubtype) {
|
897
|
-
case 'Total score divided between each correct response':
|
898
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
899
|
-
.verifyInnerText('2.67/10');
|
900
|
-
break;
|
901
|
-
case 'Partial - score for each correct response':
|
902
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
903
|
-
.verifyInnerText('16/50');
|
904
|
-
break;
|
905
|
-
}
|
906
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
907
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
908
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
909
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
910
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
911
|
-
dragAndDropIntoCategoriesPage.steps.
|
912
|
-
verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
913
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
914
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
915
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
916
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
917
|
-
|
918
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
919
|
-
|
920
|
-
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 and no correct answer section should be displayed')
|
921
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
922
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
923
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
924
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
925
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
926
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
927
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
928
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
929
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
930
|
-
});
|
931
|
-
|
932
|
-
it('Pre-step: Switching to Edit tab and allotting points to correct and alternate tab such that points achieved from the alternate tab mapping is equal than the correct tab mapping', () => {
|
933
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
934
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCorrectTab();
|
935
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(6);
|
936
|
-
dragAndDropIntoCategoriesPage.steps.navigateToAlternateTab(1);
|
937
|
-
switch (scoringSubtype) {
|
938
|
-
case 'Total score divided between each correct response':
|
939
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(15);
|
940
|
-
break;
|
941
|
-
case 'Partial - score for each correct response':
|
942
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(18);
|
943
|
-
break;
|
944
|
-
}
|
945
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
946
|
-
})
|
947
|
-
|
948
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the correct tab but with one option common across both the 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 achieved should be according to the alternate tab mapping, green check-mark icon should be displayed besides the common correct answer responses, red cross-mark should be displayed besides the incorrect answer responses from the correct tab and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
949
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
950
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
951
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
952
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
953
|
-
|
954
|
-
cy.log('User should be total score obtained by each correct response')
|
955
|
-
switch (scoringSubtype) {
|
956
|
-
case 'Total score divided between each correct response':
|
957
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
958
|
-
.verifyInnerText('3/15');
|
959
|
-
break;
|
960
|
-
case 'Partial - score for each correct response':
|
961
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
962
|
-
.verifyInnerText('18/90');
|
963
|
-
break;
|
964
|
-
}
|
965
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
966
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
967
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
968
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
969
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
970
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Whale', 'Parrot'], ['Ostrich']], [1, 3, 4]);
|
971
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
972
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
973
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
974
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
975
|
-
|
976
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
977
|
-
|
978
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the common correct answer responses, red cross-mark should be displayed besides the incorrect answer responses from the correct tab and no correct answer section should be displayed')
|
979
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
980
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
981
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
982
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
983
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
984
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
985
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
986
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
987
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
988
|
-
});
|
989
|
-
|
990
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the correct tab but with one option exclusively from the alternate tab in the same cell 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 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 and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
991
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
992
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
993
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
994
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
995
|
-
|
996
|
-
cy.log('User should be total score obtained by each correct response')
|
997
|
-
switch (scoringSubtype) {
|
998
|
-
case 'Total score divided between each correct response':
|
999
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1000
|
-
.verifyInnerText('3/15');
|
1001
|
-
break;
|
1002
|
-
case 'Partial - score for each correct response':
|
1003
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1004
|
-
.verifyInnerText('18/90');
|
1005
|
-
break;
|
1006
|
-
}
|
1007
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1008
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1009
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1010
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1011
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1012
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle'], ['Whale', 'Parrot'], ['Ostrich']], [2, 3, 4]);
|
1013
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
1014
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1015
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1016
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1017
|
-
|
1018
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1019
|
-
|
1020
|
-
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 and no correct answer section should be displayed')
|
1021
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1022
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1023
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1024
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
1025
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1026
|
-
cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
|
1027
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1028
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1029
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1030
|
-
});
|
1031
|
-
},
|
1032
|
-
|
1033
|
-
/**
|
1034
|
-
* @param {string} scoringSubtype option from the scoring subtype dropdown. Should be one of 'Total score divided between each correct response', 'Partial - score for each correct response'
|
1035
|
-
* @description verify functionality for each response scoring subtypes with alternate answers when correct answer points is equal to alternate answer points
|
1036
|
-
*/
|
1037
|
-
verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints: (scoringSubtype) => {
|
1038
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternate tab but with an extra incorrect option then on selecting the \'Show correct answer\' checkbox, full 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 response and no correct answer section should be displayed', () => {
|
1039
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1040
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1041
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1042
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1043
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
1044
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1045
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 3);
|
1046
|
-
cy.log('User should be total score obtained by each correct response as per the alternate mapping')
|
1047
|
-
switch (scoringSubtype) {
|
1048
|
-
case 'Total score divided between each correct response':
|
1049
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1050
|
-
.verifyInnerText('10/10');
|
1051
|
-
break;
|
1052
|
-
case 'Partial - score for each correct response':
|
1053
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1054
|
-
.verifyInnerText('50/60');
|
1055
|
-
break;
|
1056
|
-
}
|
1057
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1058
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1059
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1060
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1061
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1062
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1063
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1064
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
1065
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1066
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1067
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1068
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1069
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1070
|
-
|
1071
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1072
|
-
|
1073
|
-
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 response and no correct answer section should be displayed')
|
1074
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1075
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1076
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1077
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1078
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1079
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1080
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(5);
|
1081
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1082
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1083
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1084
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1085
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1086
|
-
});
|
1087
|
-
|
1088
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1089
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1090
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1091
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1092
|
-
|
1093
|
-
cy.log('User should be total score obtained by each correct response')
|
1094
|
-
switch (scoringSubtype) {
|
1095
|
-
case 'Total score divided between each correct response':
|
1096
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1097
|
-
.verifyInnerText('3.33/10');
|
1098
|
-
break;
|
1099
|
-
case 'Partial - score for each correct response':
|
1100
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1101
|
-
.verifyInnerText('20/60');
|
1102
|
-
break;
|
1103
|
-
}
|
1104
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1105
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1106
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1107
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1108
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
1109
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1110
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1111
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1112
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1113
|
-
|
1114
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1115
|
-
|
1116
|
-
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')
|
1117
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1118
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1119
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1120
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1121
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1122
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1123
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1124
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1125
|
-
});
|
1126
|
-
|
1127
|
-
it('When the user attempts the question partially correct with all the cells correct as per the \'Correct tab\' but one cell incomplete then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1128
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1129
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1130
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1131
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1132
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1133
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1134
|
-
|
1135
|
-
cy.log('User should be total score obtained by each correct response')
|
1136
|
-
switch (scoringSubtype) {
|
1137
|
-
case 'Total score divided between each correct response':
|
1138
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1139
|
-
.verifyInnerText('8.33/10');
|
1140
|
-
break;
|
1141
|
-
case 'Partial - score for each correct response':
|
1142
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1143
|
-
.verifyInnerText('50/60');
|
1144
|
-
break;
|
1145
|
-
}
|
1146
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1147
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1148
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1149
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1150
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1151
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1152
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1153
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot']], [2]);
|
1154
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1155
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1156
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1157
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1158
|
-
|
1159
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1160
|
-
|
1161
|
-
cy.log('When the user clicks on \'Check answer\' button,green check-mark icon should be displayed besides the common correct answer responses across both the tabs, red cross-mark should be displayed besides the incorrect answer responses from the correct tab and no correct answer section should be displayed')
|
1162
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1163
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1164
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1165
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1166
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1167
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1168
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1169
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1170
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1171
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1172
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1173
|
-
});
|
1174
|
-
|
1175
|
-
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 of the total points obtained by each correct response, green check-mark icon should be displayed besides the correct answer responses and the correct answer section should display the incorrect/not attempted options from the alternate tab along with category cell numeration', () => {
|
1176
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1177
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1178
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
1179
|
-
|
1180
|
-
cy.log('User should be total score obtained by each correct response')
|
1181
|
-
switch (scoringSubtype) {
|
1182
|
-
case 'Total score divided between each correct response':
|
1183
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1184
|
-
.verifyInnerText('4/10');
|
1185
|
-
break;
|
1186
|
-
case 'Partial - score for each correct response':
|
1187
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1188
|
-
.verifyInnerText('20/60');
|
1189
|
-
break;
|
1190
|
-
}
|
1191
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1192
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1193
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1194
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1195
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle'], ['Whale'], ['Ostrich']], [2, 3, 4]);
|
1196
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1197
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1198
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1199
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1200
|
-
|
1201
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1202
|
-
|
1203
|
-
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')
|
1204
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1205
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1206
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1207
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1208
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1209
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1210
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1211
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1212
|
-
});
|
1213
|
-
|
1214
|
-
it('Pre-step: Switching to Edit tab, setting equal number of correct answer options for both correct tab and alternate tab', () => {
|
1215
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
1216
|
-
dragAndDropIntoCategoriesPage.steps.navigateToAlternateTab(1);
|
1217
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 3)
|
1218
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
1219
|
-
});
|
1220
|
-
|
1221
|
-
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternate tab and correct tab in the different cell then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct response from 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 response from the alternate tab and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1222
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1223
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1224
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1225
|
-
cy.log('User should be total score obtained by each correct response')
|
1226
|
-
switch (scoringSubtype) {
|
1227
|
-
case 'Total score divided between each correct response':
|
1228
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1229
|
-
.verifyInnerText('1.67/10');
|
1230
|
-
break;
|
1231
|
-
case 'Partial - score for each correct response':
|
1232
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1233
|
-
.verifyInnerText('10/60');
|
1234
|
-
break;
|
1235
|
-
}
|
1236
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1237
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1238
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1239
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1240
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Whale'], ['Ostrich']], [1, 2, 3, 4]);
|
1241
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1242
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1243
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1244
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1245
|
-
|
1246
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1247
|
-
|
1248
|
-
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')
|
1249
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1250
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1251
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1252
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1253
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1254
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1255
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1256
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1257
|
-
});
|
1258
|
-
|
1259
|
-
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternate tab and correct tab in the same cell then on selecting the \'Show correct answer\' checkbox, the points provided should be of the total points obtained by each correct response from 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 response from the alternate tab and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
|
1260
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1261
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1262
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1263
|
-
cy.log('User should be total score obtained by each correct response')
|
1264
|
-
switch (scoringSubtype) {
|
1265
|
-
case 'Total score divided between each correct response':
|
1266
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1267
|
-
.verifyInnerText('1.67/10');
|
1268
|
-
break;
|
1269
|
-
case 'Partial - score for each correct response':
|
1270
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1271
|
-
.verifyInnerText('10/60');
|
1272
|
-
break;
|
1273
|
-
}
|
1274
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1275
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1276
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1277
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1278
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']], [2, 3, 4]);
|
1279
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1280
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1281
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1282
|
-
|
1283
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1284
|
-
|
1285
|
-
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 response from the correct tab and no correct answer section should be displayed')
|
1286
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1287
|
-
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
1288
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1289
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1290
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1291
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1292
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1293
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1294
|
-
});
|
1295
|
-
},
|
1296
|
-
|
1297
|
-
/**
|
1298
|
-
* @param {number} pointsScored points scored by the user
|
1299
|
-
* @param {number} allocatedPoints overall points allocated to the question
|
1300
|
-
* @description verify the scoring functionality by attempting the question with all options according to correct tab mapping
|
1301
|
-
*/
|
1302
|
-
verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions: (pointsScored, allocatedPoints) => {
|
1303
|
-
it('When the user attempts the question fully correct as set in the \'Correct tab\' then on selecting the \'Show correct answer\' checkbox, the points specified for correct answers should be provided, green check-mark icon should be displayed besides the correct answer responses and no correct answer section should be displayed', () => {
|
1304
|
-
cy.log('Pre-step: deselecting the show correct answer checkbox')
|
1305
|
-
dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
|
1306
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
1307
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1308
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
|
1309
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
|
1310
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1311
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1312
|
-
cy.log('User should be awarded total score obtained by each correct response according to the correct tab mapping')
|
1313
|
-
dragAndDropIntoCategoriesPage.previewScoreText()
|
1314
|
-
.verifyInnerText(`${pointsScored}/${allocatedPoints}`);
|
1315
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1316
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1317
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1318
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1319
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1320
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1321
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1322
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1323
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1324
|
-
cy.log('Correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1325
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1326
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1327
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1328
|
-
|
1329
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1330
|
-
|
1331
|
-
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')
|
1332
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1333
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1334
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1335
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1336
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1337
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1338
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
|
1339
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1340
|
-
cy.log('Correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1341
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1342
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1343
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1344
|
-
});
|
1345
|
-
},
|
1346
|
-
|
1347
|
-
/**
|
1348
|
-
* @param {number} pointsScored points scored by the user
|
1349
|
-
* @param {number} allocatedPoints overall points allocated to the question
|
1350
|
-
* @description verify the scoring functionality by attempting the question with all options according to alternate tab mapping
|
1351
|
-
*/
|
1352
|
-
verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions: (pointsScored, allocatedPoints) => {
|
1353
|
-
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 and no correct answer section should be displayed', () => {
|
1354
|
-
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
1355
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Flying squirrel', 0);
|
1356
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
1357
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
|
1358
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
|
1359
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
|
1360
|
-
cy.log('User should be awarded total score obtained by each correct response according to the alternate tab mapping')
|
1361
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
1362
|
-
.verifyInnerText(`${pointsScored}/${allocatedPoints}`);
|
1363
|
-
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
1364
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
|
1365
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1366
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1367
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1368
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1369
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1370
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1371
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1372
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1373
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1374
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1375
|
-
|
1376
|
-
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
1377
|
-
|
1378
|
-
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')
|
1379
|
-
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
1380
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
1381
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
1382
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
1383
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
|
1384
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
|
1385
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
1386
|
-
cy.log('correct/incorrect border and icon for cell should not be displayed, correct answer border for the question and label should not be displayed below the question preview')
|
1387
|
-
autoScoredPreviewBase.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
1388
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
|
1389
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
1390
|
-
});
|
1391
|
-
},
|
1392
|
-
}
|
1393
|
-
|
1394
|
-
export const dragAndDropIntoCategoriesCorrectResponseScoring = {
|
1395
|
-
tests
|
1396
|
-
}
|