itemengine-cypress-automation 1.0.244 → 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,405 @@
|
|
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
|
+
|
7
|
+
describe('Create Item page - List ordering: Preview tab scoring', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question preview: Auto scored - Partial different weights: Minimum scoring', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
18
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
19
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
20
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
21
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
22
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
23
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
24
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
25
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
26
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 1, 1: 6, 2: 3, 3: 2 });
|
27
|
+
});
|
28
|
+
|
29
|
+
it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
|
30
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
31
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
|
32
|
+
listOrderingPage.steps.allotMinimumPoints(2);
|
33
|
+
listOrderingPage.steps.switchToPreviewTab();
|
34
|
+
listOrderingPage.steps.switchToGradingView();
|
35
|
+
listOrderingPage.steps.verifyPreviewScore(2, 12);
|
36
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
40
|
+
listOrderingPage.steps.resetQuestionPreview();
|
41
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
42
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
43
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
44
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
45
|
+
listOrderingPage.steps.verifyPreviewScore(2, 12);
|
46
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
47
|
+
});
|
48
|
+
|
49
|
+
it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, considering the default order of the list as an attempt, the user should be awarded with minimum points', () => {
|
50
|
+
listOrderingPage.steps.switchToEditTab();
|
51
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
52
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
53
|
+
listOrderingPage.steps.allotMinimumPoints(2);
|
54
|
+
listOrderingPage.steps.switchToPreviewTab();
|
55
|
+
listOrderingPage.steps.switchToGradingView();
|
56
|
+
listOrderingPage.steps.verifyPreviewScore(0, 12);
|
57
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
58
|
+
});
|
59
|
+
|
60
|
+
it('When the user has selected \'Award minimum score only if attempted\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
61
|
+
listOrderingPage.steps.resetQuestionPreview();
|
62
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
63
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
64
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
65
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
66
|
+
listOrderingPage.steps.verifyPreviewScore(2, 12);
|
67
|
+
});
|
68
|
+
|
69
|
+
it('When the user attempts the question partially correct such that points of the correctly attempted option are greater than minimum points, then the user should be awarded with points as per the correctly attempted response', () => {
|
70
|
+
listOrderingPage.steps.resetQuestionPreview();
|
71
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
72
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
73
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
74
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
75
|
+
listOrderingPage.steps.verifyPreviewScore(8, 12);
|
76
|
+
});
|
77
|
+
|
78
|
+
it('When the user attempts the question partially correct such that minimum points are greater than points of the correctly attempted option, then the user should be awarded with minimum points', () => {
|
79
|
+
listOrderingPage.steps.resetQuestionPreview();
|
80
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
81
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
82
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
83
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
84
|
+
listOrderingPage.steps.verifyPreviewScore(2, 12);
|
85
|
+
});
|
86
|
+
});
|
87
|
+
|
88
|
+
describe('Question preview: Auto scored - Partial different weights: Rounding', () => {
|
89
|
+
abortEarlySetup();
|
90
|
+
before(() => {
|
91
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
92
|
+
cy.barsPreLoaderWait();
|
93
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
94
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
95
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
96
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
97
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
98
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
99
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
100
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
101
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
102
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 2.67, 1: 1.99, 2: 1.34, 3: 4.5 });
|
103
|
+
});
|
104
|
+
|
105
|
+
it('When the user sets \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.5 and less than 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
|
106
|
+
listOrderingPage.steps.expandRoundingDropdown();
|
107
|
+
listOrderingPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.99');
|
108
|
+
listOrderingPage.steps.switchToPreviewTab();
|
109
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
110
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
111
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
112
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
113
|
+
listOrderingPage.steps.verifyPreviewScore(2, 10.5);
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When the user has set \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
|
117
|
+
listOrderingPage.steps.resetQuestionPreview();
|
118
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
119
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
120
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
121
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
122
|
+
listOrderingPage.steps.verifyPreviewScore(1, 10.5);
|
123
|
+
});
|
124
|
+
|
125
|
+
it('When the user sets \'Rounding\' to \'Round down if <=0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value less than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
126
|
+
listOrderingPage.steps.switchToEditTab();
|
127
|
+
listOrderingPage.steps.expandRoundingDropdown();
|
128
|
+
listOrderingPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50');
|
129
|
+
listOrderingPage.steps.switchToPreviewTab();
|
130
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
131
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
132
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
133
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
134
|
+
listOrderingPage.steps.verifyPreviewScore(1, 10.5);
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When the user has set \'Rounding\' to \'Round down if <=0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
138
|
+
listOrderingPage.steps.resetQuestionPreview();
|
139
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
140
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
141
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
142
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
143
|
+
listOrderingPage.steps.verifyPreviewScore(4, 10.5);
|
144
|
+
});
|
145
|
+
|
146
|
+
it('When the user sets \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value less than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
147
|
+
listOrderingPage.steps.switchToEditTab();
|
148
|
+
listOrderingPage.steps.expandRoundingDropdown();
|
149
|
+
listOrderingPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50; Round up if > 0.50');
|
150
|
+
listOrderingPage.steps.switchToPreviewTab();
|
151
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
152
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
153
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
154
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
155
|
+
listOrderingPage.steps.verifyPreviewScore(1, 10.5);
|
156
|
+
});
|
157
|
+
|
158
|
+
it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
159
|
+
listOrderingPage.steps.resetQuestionPreview();
|
160
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
161
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
162
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
163
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
164
|
+
listOrderingPage.steps.verifyPreviewScore(4, 10.5);
|
165
|
+
});
|
166
|
+
|
167
|
+
it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
|
168
|
+
listOrderingPage.steps.resetQuestionPreview();
|
169
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
170
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
171
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
172
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
173
|
+
listOrderingPage.steps.verifyPreviewScore(2, 10.5);
|
174
|
+
});
|
175
|
+
|
176
|
+
it('When \'Round negative score to zero\' is in checked state and the user attempts the question incorrectly, then the user should be awarded with 0 points', () => {
|
177
|
+
cy.log('Pre-step: Setting penalty scoring to \'Penalty points for the entire question\', allotting penalty points')
|
178
|
+
listOrderingPage.steps.switchToEditTab();
|
179
|
+
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
180
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for the entire question');
|
181
|
+
listOrderingPage.steps.allotPenaltyPoints(4);
|
182
|
+
listOrderingPage.steps.switchToPreviewTab();
|
183
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
184
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
185
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
186
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
187
|
+
listOrderingPage.steps.verifyPreviewScore(0, 10.5);
|
188
|
+
});
|
189
|
+
|
190
|
+
it('When the user unchecks \'Round negative score to zero\' checkbox and the user attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
191
|
+
listOrderingPage.steps.switchToEditTab();
|
192
|
+
listOrderingPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
|
193
|
+
listOrderingPage.steps.switchToPreviewTab();
|
194
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
195
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
196
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
197
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
198
|
+
listOrderingPage.steps.verifyPreviewScore(-4, 10.5);
|
199
|
+
});
|
200
|
+
});
|
201
|
+
|
202
|
+
describe('Question preview: Auto scored - Partial different weights: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
|
203
|
+
abortEarlySetup();
|
204
|
+
before(() => {
|
205
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
206
|
+
cy.barsPreLoaderWait();
|
207
|
+
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
208
|
+
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
209
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
210
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
211
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
212
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
213
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
214
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
215
|
+
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
216
|
+
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 3, 3: 2 });
|
217
|
+
});
|
218
|
+
|
219
|
+
//Penalty points for the entire question
|
220
|
+
it('When the user sets penalty scoring to \'Penalty points for the entire question\', allots penalty points and attempts the question incorrectly, then the user should be awarded with negative points', () => {
|
221
|
+
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
222
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for the entire question');
|
223
|
+
listOrderingPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
|
224
|
+
listOrderingPage.steps.allotPenaltyPoints(4);
|
225
|
+
listOrderingPage.steps.switchToPreviewTab();
|
226
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
227
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
228
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
229
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
230
|
+
listOrderingPage.steps.verifyPreviewScore(-4, 20);
|
231
|
+
});
|
232
|
+
|
233
|
+
it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
|
234
|
+
listOrderingPage.steps.resetQuestionPreview();
|
235
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
236
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
237
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
238
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
239
|
+
listOrderingPage.steps.verifyPreviewScore(11, 20);
|
240
|
+
});
|
241
|
+
|
242
|
+
it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points should get deducted from the awarded points only once, the deducted penalty points should not increase as per number of attempted incorrect responses', () => {
|
243
|
+
listOrderingPage.steps.resetQuestionPreview();
|
244
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
245
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
246
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
247
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
248
|
+
listOrderingPage.steps.verifyPreviewScore(5, 20);
|
249
|
+
});
|
250
|
+
|
251
|
+
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
252
|
+
listOrderingPage.steps.switchToEditTab();
|
253
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
254
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
255
|
+
listOrderingPage.steps.allotMinimumPoints(3);
|
256
|
+
listOrderingPage.steps.switchToPreviewTab();
|
257
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
258
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
259
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
260
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
261
|
+
listOrderingPage.steps.verifyPreviewScore(3, 20);
|
262
|
+
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
263
|
+
listOrderingPage.steps.switchToEditTab();
|
264
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
265
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
266
|
+
});
|
267
|
+
|
268
|
+
//Penalty points for each incorrect option - Specify total penalty points
|
269
|
+
it('When the user sets penalty scoring to \'Penalty points for each incorrect option\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points of all the empty and incorrect option', () => {
|
270
|
+
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
271
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for each incorrect option');
|
272
|
+
listOrderingPage.steps.allotTotalPenaltyPoints(4);
|
273
|
+
listOrderingPage.steps.switchToPreviewTab();
|
274
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
275
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
276
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
277
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
278
|
+
listOrderingPage.steps.verifyPreviewScore(-4, 20);
|
279
|
+
});
|
280
|
+
|
281
|
+
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
282
|
+
listOrderingPage.steps.resetQuestionPreview();
|
283
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
284
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
285
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
286
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
287
|
+
listOrderingPage.steps.verifyPreviewScore(13, 20);
|
288
|
+
});
|
289
|
+
|
290
|
+
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
291
|
+
listOrderingPage.steps.resetQuestionPreview();
|
292
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
293
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
294
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
295
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
296
|
+
listOrderingPage.steps.verifyPreviewScore(6, 20);
|
297
|
+
});
|
298
|
+
|
299
|
+
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
300
|
+
listOrderingPage.steps.switchToEditTab();
|
301
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
302
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
303
|
+
listOrderingPage.steps.allotMinimumPoints(3);
|
304
|
+
listOrderingPage.steps.switchToPreviewTab();
|
305
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
306
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
307
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
308
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
309
|
+
listOrderingPage.steps.verifyPreviewScore(3, 20);
|
310
|
+
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
311
|
+
listOrderingPage.steps.switchToEditTab();
|
312
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
313
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
314
|
+
});
|
315
|
+
|
316
|
+
//Penalty points for each incorrect option - Specify points for each incorrect option
|
317
|
+
it('When the user has set penalty scoring to \'Penalty points for each incorrect option\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points for the incorrect options', () => {
|
318
|
+
listOrderingPage.steps.selectPenaltyPointsForEachIncorrectOptionType('specify points for each incorrect option');
|
319
|
+
listOrderingPage.steps.allotPenaltyPointsForEachIncorrectOption(4);
|
320
|
+
listOrderingPage.steps.switchToPreviewTab();
|
321
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
322
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
323
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
324
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
325
|
+
listOrderingPage.steps.verifyPreviewScore(-16, 20);
|
326
|
+
});
|
327
|
+
|
328
|
+
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
329
|
+
listOrderingPage.steps.resetQuestionPreview();
|
330
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
331
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
332
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
333
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
334
|
+
listOrderingPage.steps.verifyPreviewScore(7, 20);
|
335
|
+
});
|
336
|
+
|
337
|
+
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
338
|
+
listOrderingPage.steps.resetQuestionPreview();
|
339
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
340
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
341
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
342
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
343
|
+
listOrderingPage.steps.verifyPreviewScore(-3, 20);
|
344
|
+
});
|
345
|
+
|
346
|
+
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
347
|
+
listOrderingPage.steps.switchToEditTab();
|
348
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
349
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
350
|
+
listOrderingPage.steps.allotMinimumPoints(3);
|
351
|
+
listOrderingPage.steps.switchToPreviewTab();
|
352
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
353
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
354
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
355
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
356
|
+
listOrderingPage.steps.verifyPreviewScore(3, 20);
|
357
|
+
cy.log('Post step: Switching to edit tab and resetting minimum scoring to "No minimum score"')
|
358
|
+
listOrderingPage.steps.switchToEditTab();
|
359
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
360
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
|
361
|
+
});
|
362
|
+
|
363
|
+
//Penalty points for each incorrect option - Automatically set penalty for each incorrect option to total points / no. of incorrect option
|
364
|
+
it('When the user has set penalty scoring to \'Penalty points for each incorrect option\', and checks \'Automatically set penalty for each incorrect option to total points / no. of incorrect option\' checkbox and attempts the question incorrectly, then the user should be awarded with negative points for the incorrect option', () => {
|
365
|
+
listOrderingPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
366
|
+
listOrderingPage.steps.switchToPreviewTab();
|
367
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
368
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
369
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
370
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
371
|
+
listOrderingPage.steps.verifyPreviewScore(-20, 20);
|
372
|
+
});
|
373
|
+
|
374
|
+
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
375
|
+
listOrderingPage.steps.resetQuestionPreview();
|
376
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
377
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
378
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
379
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
380
|
+
listOrderingPage.steps.verifyPreviewScore(5, 20);
|
381
|
+
});
|
382
|
+
|
383
|
+
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
384
|
+
listOrderingPage.steps.resetQuestionPreview();
|
385
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
386
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
387
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
388
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
389
|
+
listOrderingPage.steps.verifyPreviewScore(-6, 20);
|
390
|
+
});
|
391
|
+
|
392
|
+
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
393
|
+
listOrderingPage.steps.switchToEditTab();
|
394
|
+
listOrderingPage.steps.expandMinimumScoringDropdown();
|
395
|
+
listOrderingPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
396
|
+
listOrderingPage.steps.allotMinimumPoints(3);
|
397
|
+
listOrderingPage.steps.switchToPreviewTab();
|
398
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
399
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
400
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
401
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
402
|
+
listOrderingPage.steps.verifyPreviewScore(3, 20);
|
403
|
+
});
|
404
|
+
});
|
405
|
+
});
|
@@ -0,0 +1,201 @@
|
|
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 equal 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: AutoScored - Partial equal 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 equal weights');
|
26
|
+
listOrderingPage.steps.allotPoints(20);
|
27
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(correctAnswerArray);
|
28
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
29
|
+
listOrderingPage.steps.allotPoints(24);
|
30
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
31
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
32
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
33
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
34
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(alternateCorrectAnswerArray);
|
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, 24);
|
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(20, 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.verifyCorrectIncorrectStatusMessageNotExists();
|
59
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
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.verifyCorrectIncorrectStatusMessageNotExists();
|
77
|
+
listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
|
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, incorrect icon should be displayed besides incorrect response, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative 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(10, 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(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, incorrect icon should be displayed besides incorrect response, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the alternative 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(12, 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(alternateCorrectAnswerArray);
|
113
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
114
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
115
|
+
});
|
116
|
+
|
117
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 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 response, 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, 24);
|
125
|
+
listOrderingPage.steps.switchToGradingView();
|
126
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
127
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
128
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
129
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('plant');
|
130
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
131
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
132
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
133
|
+
});
|
134
|
+
|
135
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be besides the common response, 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('plant');
|
139
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
140
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
141
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['seed', 'plant', 'flower', 'sprout']);
|
142
|
+
listOrderingPage.steps.verifyPreviewScore(6, 24);
|
143
|
+
listOrderingPage.steps.switchToGradingView();
|
144
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
145
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
146
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
147
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
148
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
149
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
151
|
+
});
|
152
|
+
|
153
|
+
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, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
154
|
+
listOrderingPage.steps.resetQuestionPreview();
|
155
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
156
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
157
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
158
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
159
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'plant', 'seed', 'sprout']);
|
160
|
+
listOrderingPage.steps.verifyPreviewScore(0, 24);
|
161
|
+
listOrderingPage.steps.switchToGradingView();
|
162
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
163
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
164
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('seed');
|
165
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
166
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(alternateCorrectAnswerArray);
|
167
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
168
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
169
|
+
});
|
170
|
+
|
171
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers then on switching to the \'Grading view\', the points awarded should be of the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with answers from the alternative accordion', () => {
|
172
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
|
173
|
+
listOrderingPage.steps.switchToEditTab();
|
174
|
+
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
175
|
+
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
176
|
+
listOrderingPage.steps.allotPoints(50);
|
177
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
178
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
179
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
180
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
181
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['plant', 'flower', 'sprout', 'seed']);
|
182
|
+
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
183
|
+
listOrderingPage.steps.allotPoints(10);
|
184
|
+
listOrderingPage.steps.switchToPreviewTab();
|
185
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
186
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
187
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
188
|
+
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
189
|
+
listOrderingPage.steps.verifyOptionsInDropzoneOrderAsSeperateList(['flower', 'sprout', 'plant', 'seed'])
|
190
|
+
listOrderingPage.steps.verifyPreviewScore(12.5, 50);
|
191
|
+
listOrderingPage.steps.switchToGradingView();
|
192
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('flower');
|
193
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('sprout');
|
194
|
+
listOrderingPage.steps.verifyIncorrectOptionIconSeperateList('plant');
|
195
|
+
listOrderingPage.steps.verifyCorrectOptionIconSeperateList('seed');
|
196
|
+
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['plant', 'flower', 'sprout', 'seed']);
|
197
|
+
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
198
|
+
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
199
|
+
});
|
200
|
+
});
|
201
|
+
});
|