itemengine-cypress-automation 1.0.245-2AugustRepoUpdate-589ab5f.0 → 1.0.245
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +1 -16
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +4 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +4 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +5 -2
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +5 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +8 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +6 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -2
- package/cypress/e2e/ILC/Graphing/headerSection.js +3 -2
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -1
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +2 -0
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +4 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +8 -6
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +8 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +89 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +225 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +225 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +405 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +201 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +147 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +171 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +203 -0
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/headerSection.js +10 -2
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +17 -4
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationLayoutProperties.js +227 -0
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +5 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +9 -2
- package/cypress/e2e/ILC/NumberLine/headerSection.js +3 -2
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +5 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +9 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +10 -10
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/headerSection.js +5 -2
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +2 -1
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +2 -3
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +2 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +11 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +27 -9
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -2
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
- package/cypress/pages/components/optionsWrapperComponent.js +2 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -2
- package/cypress/pages/createItemPage.js +1 -1
- package/cypress/pages/dialogBoxBase.js +7 -13
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +5 -4
- package/cypress/pages/graphingPage.js +7 -4
- package/cypress/pages/gridFillPage.js +16 -15
- package/cypress/pages/matchingPage.js +613 -6
- package/cypress/pages/multipleSelectionGridPage.js +5 -4
- package/cypress/pages/multipleSelectionPage.js +5 -4
- package/cypress/pages/numberLinePage.js +13 -2
- package/cypress/pages/shortTextResponsePage.js +3 -2
- package/cypress/pages/textEntryMathPage.js +7 -0
- package/package.json +1 -1
@@ -0,0 +1,225 @@
|
|
1
|
+
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
+
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
+
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
|
+
|
8
|
+
describe('Create Item page - List ordering: Partial different weights scoring with alternative answer - When alternative answer points are more than correct answer points', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: Auto scored - Partial different weights with alternative answer: When alternative answer points are more than correct answer points', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
19
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
20
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
21
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
22
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
23
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
24
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
25
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
26
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
27
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 7, 1: 5, 2: 4, 3: 8 });
|
28
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
29
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
30
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
31
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
32
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
33
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(alternateCorrectAnswerArray);
|
34
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 4, 1: 9, 2: 10, 3: 6 });
|
35
|
+
listOrderingPage.steps.switchToPreviewTab();
|
36
|
+
});
|
37
|
+
|
38
|
+
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should not be displayed for the default list order, correct/incorrect status message should not be displayed and correct answer section should be displayed with correct answers from the alternative accordion', () => {
|
39
|
+
listOrderingPage.steps.verifyPreviewScore(0, 29);
|
40
|
+
listOrderingPage.steps.switchToGradingView();
|
41
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
42
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
43
|
+
});
|
44
|
+
|
45
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
46
|
+
listOrderingPage.steps.resetQuestionPreview();;
|
47
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
48
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
49
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
50
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
51
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
52
|
+
listOrderingPage.steps.verifyPreviewScore(24, 29);
|
53
|
+
listOrderingPage.steps.switchToGradingView();
|
54
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
55
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
56
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
57
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
58
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
59
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
60
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
61
|
+
});
|
62
|
+
|
63
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
64
|
+
listOrderingPage.steps.resetQuestionPreview();
|
65
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
66
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
67
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
68
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
69
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(alternateCorrectAnswerArray);
|
70
|
+
listOrderingPage.steps.verifyPreviewScore(29, 29);
|
71
|
+
listOrderingPage.steps.switchToGradingView();
|
72
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
73
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
74
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
75
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
76
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
77
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
78
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
79
|
+
});
|
80
|
+
|
81
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
82
|
+
listOrderingPage.steps.resetQuestionPreview();
|
83
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
84
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
85
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
86
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
87
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'sprout', 'plant', 'seed']);
|
88
|
+
listOrderingPage.steps.verifyPreviewScore(9, 29);
|
89
|
+
listOrderingPage.steps.switchToGradingView();
|
90
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
91
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
92
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
93
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
94
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
95
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
96
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
97
|
+
});
|
98
|
+
|
99
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the alternative answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone cell numeration should be displayed', () => {
|
100
|
+
listOrderingPage.steps.resetQuestionPreview();
|
101
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
102
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
103
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
104
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
105
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['plant', 'flower', 'sprout', 'seed']);
|
106
|
+
listOrderingPage.steps.verifyPreviewScore(19, 29);
|
107
|
+
listOrderingPage.steps.switchToGradingView();
|
108
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
109
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
110
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
111
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
112
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
113
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
114
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
115
|
+
});
|
116
|
+
|
117
|
+
it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative accordion should be displayed', () => {
|
118
|
+
listOrderingPage.steps.resetQuestionPreview();
|
119
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
120
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
121
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
122
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
123
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'sprout', 'flower', 'plant']);
|
124
|
+
listOrderingPage.steps.verifyPreviewScore(12, 29);
|
125
|
+
listOrderingPage.steps.switchToGradingView();
|
126
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
127
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
128
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
129
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
130
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
131
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
132
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the correct accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative accordion should be displayed', () => {
|
136
|
+
listOrderingPage.steps.resetQuestionPreview();
|
137
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
138
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
139
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
140
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
141
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'flower', 'plant', 'sprout']);
|
142
|
+
listOrderingPage.steps.verifyPreviewScore(13, 29);
|
143
|
+
listOrderingPage.steps.switchToGradingView();
|
144
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
145
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
146
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
147
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
148
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
149
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
150
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
151
|
+
});
|
152
|
+
|
153
|
+
it('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then user should be awarded with points of the tab with more points for the option i.e. correct accordion in this case and on switching to \'Grading\' view, the correct icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative accordion should be displayed', () => {
|
154
|
+
listOrderingPage.steps.resetQuestionPreview();
|
155
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
156
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
157
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
158
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
159
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'plant', 'flower', 'sprout']);
|
160
|
+
listOrderingPage.steps.verifyPreviewScore(7, 29);
|
161
|
+
listOrderingPage.steps.switchToGradingView();
|
162
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
163
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
164
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
165
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
166
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
167
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
168
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
169
|
+
});
|
170
|
+
|
171
|
+
it('When user attempts the question incorrectly then user should be awarded 0 points then on selecting \'Show correct answer\' checkbox, incorrect icons should be displayed beside all the options, the correct answer container with all correct answers from the alternative accordion should be displayed, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative accordion should be displayed', () => {
|
172
|
+
listOrderingPage.steps.resetQuestionPreview();
|
173
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
174
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
175
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
176
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
177
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'plant', 'seed', 'sprout']);
|
178
|
+
listOrderingPage.steps.verifyPreviewScore(0, 29);
|
179
|
+
listOrderingPage.steps.switchToGradingView();
|
180
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
181
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
182
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
183
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
184
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
185
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
186
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('Overachiever case: When the user attempts the question with more number of correct options from the alternative accordion than the correct accordion but the score of the responses selected from the correct accordion overpowers the combined score of the alternative accordion answers then correct icons should be displayed for the correct accordion options, incorrect icon should be displayed for the alternative accordion options and points awarded should be of the correct accordion, correct/incorrect status message should not be displayed correct answer section with all correct answers from the alternative accordion should be displayed', () => {
|
190
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
|
191
|
+
listOrderingPage.steps.switchToEditTab();
|
192
|
+
listOrderingPage.steps.addOption();
|
193
|
+
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
194
|
+
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
195
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
196
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 14, 1: 2, 2: 1, 3: 2, 4: 3 });
|
197
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
198
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
199
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
200
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
201
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
202
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
203
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
204
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
205
|
+
listOrderingPage.steps.switchToPreviewTab();
|
206
|
+
|
207
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
208
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
209
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
210
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
211
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
212
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'plant', 'flower', 'fruit', 'sprout']);
|
213
|
+
listOrderingPage.steps.verifyPreviewScore(14, 33);
|
214
|
+
listOrderingPage.steps.switchToGradingView();
|
215
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
216
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
217
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
218
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('fruit');
|
219
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
220
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
221
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
222
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
223
|
+
});
|
224
|
+
});
|
225
|
+
});
|
package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
let options = ['sprout', 'plant', 'flower', 'seed'];
|
4
|
+
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
5
|
+
|
6
|
+
describe('Create Item page - List ordering: Preview tab scoring', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question Preview: AutoScored - Partial different weights scoring', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
17
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
18
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
19
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
20
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
21
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
22
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
23
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
24
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
25
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 4.2, 1: 1.8, 2: 2.3, 3: 3.7 });
|
26
|
+
listOrderingPage.steps.switchToPreviewTab();
|
27
|
+
});
|
28
|
+
|
29
|
+
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should not be displayed for the default list order, correct/incorrect status message should not be displayed and correct answers section should be displayed with correct answers from the correct accordion', () => {
|
30
|
+
listOrderingPage.steps.verifyPreviewScore(0, 12);
|
31
|
+
listOrderingPage.steps.switchToGradingView();
|
32
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
33
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
34
|
+
});
|
35
|
+
|
36
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct/incorrect status message should not be displayed and correct answers section should be displayed with correct answers from the correct accordion', () => {
|
37
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
38
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
39
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
40
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
41
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'plant', 'seed', 'sprout']);
|
42
|
+
listOrderingPage.steps.verifyPreviewScore(0, 12);
|
43
|
+
listOrderingPage.steps.switchToGradingView();
|
44
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
45
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
46
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
47
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
48
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
49
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
50
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
51
|
+
});
|
52
|
+
|
53
|
+
it('When the user attempts the question partially correct, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
54
|
+
listOrderingPage.steps.resetQuestionPreview();
|
55
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
56
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
57
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
58
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
59
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['plant', 'sprout', 'seed', 'flower']);
|
60
|
+
listOrderingPage.steps.switchToGradingView();
|
61
|
+
listOrderingPage.steps.verifyPreviewScore(5.5, 12);
|
62
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
63
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
64
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
65
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
66
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
67
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
68
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
69
|
+
});
|
70
|
+
|
71
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
72
|
+
listOrderingPage.steps.resetQuestionPreview();
|
73
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
74
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
75
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
76
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
77
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
78
|
+
listOrderingPage.steps.verifyPreviewScore(12, 12);
|
79
|
+
listOrderingPage.steps.switchToGradingView()
|
80
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
81
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
82
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
83
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
84
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
85
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
86
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
|
+
});
|
88
|
+
});
|
89
|
+
});
|
@@ -0,0 +1,225 @@
|
|
1
|
+
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
+
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
+
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
|
+
|
8
|
+
describe('Create Item page - List ordering: Partial different weights scoring with alternative answer - When alternative answer points are equal to correct answer points', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: AutoScored - Partial different weights with alternative answer: When alternative answer points are equal to correct answer points', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
19
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
20
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
21
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
22
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
23
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
24
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
25
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
26
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
27
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 7, 1: 5, 2: 4, 3: 8 });
|
28
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
29
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
30
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
31
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
32
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
33
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(alternateCorrectAnswerArray);
|
34
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 6, 1: 9, 2: 5, 3: 4 });
|
35
|
+
listOrderingPage.steps.switchToPreviewTab();
|
36
|
+
});
|
37
|
+
|
38
|
+
it('When the user switches to the \'Grading view\' without attempting the question, then correct/incorrect icons should not be displayed for the default list order, correct/incorrect status message should not be displayed and correct answers section should be displayed with correct answers from the correct accordion', () => {
|
39
|
+
listOrderingPage.steps.verifyPreviewScore(0, 24);
|
40
|
+
listOrderingPage.steps.switchToGradingView();
|
41
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
42
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
43
|
+
});
|
44
|
+
|
45
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
46
|
+
listOrderingPage.steps.resetQuestionPreview();
|
47
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
48
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
49
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
50
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
51
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
52
|
+
listOrderingPage.steps.verifyPreviewScore(24, 24);
|
53
|
+
listOrderingPage.steps.switchToGradingView();
|
54
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
55
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
56
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
57
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
58
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
59
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
60
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
61
|
+
});
|
62
|
+
|
63
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
|
64
|
+
listOrderingPage.steps.resetQuestionPreview();
|
65
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
66
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
67
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
68
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
69
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(alternateCorrectAnswerArray);
|
70
|
+
listOrderingPage.steps.verifyPreviewScore(24, 24);
|
71
|
+
listOrderingPage.steps.switchToGradingView();
|
72
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
73
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
74
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
75
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
76
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
77
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
78
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
79
|
+
});
|
80
|
+
|
81
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
82
|
+
listOrderingPage.steps.resetQuestionPreview();
|
83
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
84
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
85
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
86
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
87
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'sprout', 'plant', 'seed']);
|
88
|
+
listOrderingPage.steps.verifyPreviewScore(9, 24);
|
89
|
+
listOrderingPage.steps.switchToGradingView();
|
90
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
91
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
92
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
93
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
94
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
95
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
96
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
97
|
+
});
|
98
|
+
|
99
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
100
|
+
listOrderingPage.steps.resetQuestionPreview();
|
101
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
102
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
103
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
104
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
105
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['plant', 'flower', 'sprout', 'seed']);
|
106
|
+
listOrderingPage.steps.verifyPreviewScore(14, 24);
|
107
|
+
listOrderingPage.steps.switchToGradingView();
|
108
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
109
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
110
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
111
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
112
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
113
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
114
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
115
|
+
});
|
116
|
+
|
117
|
+
it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
118
|
+
listOrderingPage.steps.resetQuestionPreview();
|
119
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
120
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
121
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
122
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
123
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'sprout', 'flower', 'plant']);
|
124
|
+
listOrderingPage.steps.verifyPreviewScore(12, 24);
|
125
|
+
listOrderingPage.steps.switchToGradingView();
|
126
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
127
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
128
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
129
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
130
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
131
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
132
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the correct accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
136
|
+
listOrderingPage.steps.resetQuestionPreview();
|
137
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
138
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
139
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
140
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
141
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'flower', 'plant', 'sprout']);
|
142
|
+
listOrderingPage.steps.verifyPreviewScore(15, 24);
|
143
|
+
listOrderingPage.steps.switchToGradingView();
|
144
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
145
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('flower');
|
146
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
147
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
148
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
149
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
151
|
+
});
|
152
|
+
|
153
|
+
it('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then user should be awarded with points of the tab with more points i.e. in this case correct accordion and on switching to \'Grading\' view the correct icon should be displayed beside the common option and incorrect icon should be displayed beside the incorrectly responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
154
|
+
listOrderingPage.steps.resetQuestionPreview();
|
155
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
156
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
157
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
158
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
159
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'plant', 'flower', 'sprout']);
|
160
|
+
listOrderingPage.steps.verifyPreviewScore(7, 24);
|
161
|
+
listOrderingPage.steps.switchToGradingView();
|
162
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
163
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
164
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
165
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
166
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
167
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
168
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
169
|
+
});
|
170
|
+
|
171
|
+
it('When user attempts the question incorrectly then user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed beside all the options, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
172
|
+
listOrderingPage.steps.resetQuestionPreview();
|
173
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
174
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
175
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
176
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
177
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'plant', 'seed', 'sprout']);
|
178
|
+
listOrderingPage.steps.verifyPreviewScore(0, 24);
|
179
|
+
listOrderingPage.steps.switchToGradingView();
|
180
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
181
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
182
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
183
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
184
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
185
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
186
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('Overachiever case: When the user attempts the question with more number of correct options from the correct accordion than the alternative accordion but the score of the responses selected from the alternative accordion overpowers the combined score of the correct accordion answers then correct icons should be displayed for the alternative accordion options, incorrect icon should be displayed for the correct accordion options and points awarded should be of the alternative accordion, correct/incorrect status message should not be displayed correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
190
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
|
191
|
+
listOrderingPage.steps.switchToEditTab();
|
192
|
+
listOrderingPage.steps.addOption();
|
193
|
+
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
194
|
+
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
195
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
196
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24, 1: 1, 2: 4, 3: 1, 4: 3 });
|
197
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
198
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
199
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
200
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
201
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
202
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
203
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['sprout', 'plant', 'flower', 'fruit', 'seed']);
|
204
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 22, 1: 6, 2: 1, 3: 1, 4: 3 });
|
205
|
+
listOrderingPage.steps.switchToPreviewTab();
|
206
|
+
|
207
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
208
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
209
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
210
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
211
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('fruit');
|
212
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['sprout', 'plant', 'seed', 'flower', 'fruit']);
|
213
|
+
listOrderingPage.steps.verifyPreviewScore(28, 33);
|
214
|
+
listOrderingPage.steps.switchToGradingView();
|
215
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('sprout');
|
216
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
217
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
218
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
219
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('fruit');
|
220
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower', 'fruit']);
|
221
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
222
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
223
|
+
});
|
224
|
+
});
|
225
|
+
});
|