itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +0 -20
- package/cypress/pages/components/createQuestionBasePage.js +0 -7
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
- package/cypress/pages/desmos3DGraphingPage.js +4 -149
- package/cypress/pages/desmosGeometryPage.js +4 -184
- package/cypress/pages/graphingPage.js +4 -26
- package/cypress/pages/gridFillPage.js +6 -16
- package/cypress/pages/listOrderingPage.js +1 -32
- package/cypress/pages/matchingPage.js +7 -26
- package/cypress/pages/numberLineLabelPage.js +0 -26
- package/cypress/pages/numberLinePage.js +0 -15
- package/cypress/pages/textEntryMathPage.js +0 -21
- package/cypress/pages/thinkSpherePage.js +316 -5
- package/cypress/pages/uploadResponsePage.js +1 -2
- package/cypress/pages/videoResponsePage.js +0 -3
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +13 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -141,44 +141,5 @@ describe('Create item page - Grid fill : All or nothing with alternative answer
|
|
141
141
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
142
142
|
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
143
143
|
});
|
144
|
-
|
145
|
-
});
|
146
|
-
|
147
|
-
describe('Save as you go: Cell shade count - Auto Scored - All or nothing with alternate answer - When Correct answer points are equal to Alternative answer points and alternative answer is a blank response', () => {
|
148
|
-
abortEarlySetup();
|
149
|
-
before(() => {
|
150
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
151
|
-
cy.barsPreLoaderWait();
|
152
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
153
|
-
gridFillPage.steps.addInputToCellShadeCountInputField(2);
|
154
|
-
gridFillPage.steps.allotPoints(10);
|
155
|
-
gridFillPage.steps.clickOnAddAlternativeAnswerButton();
|
156
|
-
gridFillPage.steps.allotPoints(10);
|
157
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
158
|
-
gridFillPage.steps.switchToPreviewTab();
|
159
|
-
gridFillPage.steps.switchToGradingView();
|
160
|
-
});
|
161
|
-
|
162
|
-
// Save as You go - Blank Response points equal to Correct Response points for Cell shade count
|
163
|
-
it('When user has not attempted the question then user should not be awarded any points not even for blank response', () => {
|
164
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
165
|
-
gridFillPage.steps.verifyPreviewScore(0, 10);
|
166
|
-
});
|
167
|
-
|
168
|
-
it('When user has attempted the correct response then user should be awarded the alloted points for correct response', () => {
|
169
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
170
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
171
|
-
gridFillPage.steps.verifyPreviewScore(10, 10);
|
172
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
173
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
174
|
-
});
|
175
|
-
|
176
|
-
it('When user has attempted the blank response by selecting and unselecting then user should be awarded the alloted points for blank response', () => {
|
177
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
178
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
179
|
-
gridFillPage.steps.verifyPreviewScore(10, 10);
|
180
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
181
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
182
|
-
});
|
183
144
|
});
|
184
145
|
});
|
@@ -128,40 +128,4 @@ describe('Create item page - Grid fill : Auto scored - All or nothing with alter
|
|
128
128
|
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
129
129
|
});
|
130
130
|
});
|
131
|
-
|
132
|
-
describe('Save as you go: Cell shade count - Auto Scored - All or nothing with alternate answer - When Alternative answer points are more than Correct answer points and alternative answer is a blank response', () => {
|
133
|
-
abortEarlySetup();
|
134
|
-
before(() => {
|
135
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
136
|
-
cy.barsPreLoaderWait();
|
137
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
138
|
-
gridFillPage.steps.addInputToCellShadeCountInputField(1);
|
139
|
-
gridFillPage.steps.allotPoints(10);
|
140
|
-
gridFillPage.steps.addAlternativeAnswerAccordion(1);
|
141
|
-
gridFillPage.steps.allotPoints(20);
|
142
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
143
|
-
gridFillPage.steps.switchToPreviewTab();
|
144
|
-
gridFillPage.steps.switchToGradingView();
|
145
|
-
});
|
146
|
-
|
147
|
-
// Save as You go - Blank Response points greater than Correct Response points for Cell shade count
|
148
|
-
it('When user has not attempted the question then user should not be awarded any points not even for blank response', () => {
|
149
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
|
-
gridFillPage.steps.verifyPreviewScore(0, 20);
|
151
|
-
});
|
152
|
-
|
153
|
-
it('When user has attempted the correct response then user should be awarded the alloted points for correct response', () => {
|
154
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
155
|
-
gridFillPage.steps.verifyPreviewScore(10, 20);
|
156
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
157
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
158
|
-
});
|
159
|
-
|
160
|
-
it('When user has attempted the blank response by selecting and unselecting then user should be awarded the alloted points for blank response', () => {
|
161
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
162
|
-
gridFillPage.steps.verifyPreviewScore(20, 20);
|
163
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
164
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
165
|
-
});
|
166
|
-
});
|
167
131
|
});
|
@@ -112,8 +112,7 @@ describe('Create item page - Grid fill : Partial equal with alternative answers'
|
|
112
112
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
|
113
113
|
});
|
114
114
|
|
115
|
-
|
116
|
-
it.skip('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
115
|
+
it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
117
116
|
gridFillPage.steps.resetQuestionPreview();
|
118
117
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
119
118
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
@@ -189,28 +189,4 @@ describe('Create item page - List ordering: All or nothing scoring with alternat
|
|
189
189
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
190
190
|
});
|
191
191
|
});
|
192
|
-
|
193
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has no points plotted', () => {
|
194
|
-
abortEarlySetup();
|
195
|
-
before(() => {
|
196
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
197
|
-
cy.barsPreLoaderWait();
|
198
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
199
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
200
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
201
|
-
listOrderingPage.steps.allotPoints(12);
|
202
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
203
|
-
listOrderingPage.steps.allotPoints(21);
|
204
|
-
listOrderingPage.steps.switchToPreviewTab();
|
205
|
-
});
|
206
|
-
|
207
|
-
it('When user attempts the question with responses from the correct accordion, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
208
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
209
|
-
listOrderingPage.steps.verifyPreviewScore(12, 21);
|
210
|
-
listOrderingPage.steps.switchToGradingView();
|
211
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
212
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
213
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
214
|
-
});
|
215
|
-
});
|
216
192
|
});
|
@@ -191,28 +191,4 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
191
191
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
192
192
|
});
|
193
193
|
});
|
194
|
-
|
195
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
196
|
-
abortEarlySetup();
|
197
|
-
before(() => {
|
198
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
199
|
-
cy.barsPreLoaderWait();
|
200
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
201
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
202
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
203
|
-
listOrderingPage.steps.allotPoints(20);
|
204
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
205
|
-
listOrderingPage.steps.allotPoints(20);
|
206
|
-
listOrderingPage.steps.switchToPreviewTab();
|
207
|
-
});
|
208
|
-
|
209
|
-
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
210
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
211
|
-
listOrderingPage.steps.verifyPreviewScore(20, 20);
|
212
|
-
listOrderingPage.steps.switchToGradingView();
|
213
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
214
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
215
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
216
|
-
});
|
217
|
-
});
|
218
194
|
});
|
@@ -271,28 +271,4 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
271
271
|
cy.checkAccessibility(listOrderingPage.previewTabQuestionWrapper());
|
272
272
|
});
|
273
273
|
});
|
274
|
-
|
275
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
276
|
-
abortEarlySetup();
|
277
|
-
before(() => {
|
278
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
279
|
-
cy.barsPreLoaderWait();
|
280
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
281
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
282
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
283
|
-
listOrderingPage.steps.allotPoints(21);
|
284
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
285
|
-
listOrderingPage.steps.allotPoints(12);
|
286
|
-
listOrderingPage.steps.switchToPreviewTab();
|
287
|
-
});
|
288
|
-
|
289
|
-
it('When user attempts the question with responses from the correct accordion i.e select an option, then the user should be awarded points specified for correct points accordion and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
290
|
-
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
291
|
-
listOrderingPage.steps.verifyPreviewScore(21, 21);
|
292
|
-
listOrderingPage.steps.switchToGradingView();
|
293
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
294
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
295
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
296
|
-
});
|
297
|
-
});
|
298
274
|
});
|
@@ -138,7 +138,7 @@ describe('Create Item page - List ordering: Partial equal weights', () => {
|
|
138
138
|
listOrderingPage.steps.allotMinimumPoints(2);
|
139
139
|
listOrderingPage.steps.switchToPreviewTab();
|
140
140
|
listOrderingPage.steps.switchToGradingView();
|
141
|
-
listOrderingPage.steps.verifyPreviewScore(
|
141
|
+
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
142
142
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
143
143
|
});
|
144
144
|
|
@@ -216,7 +216,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
216
216
|
listOrderingPage.steps.allotMinimumPoints(2);
|
217
217
|
listOrderingPage.steps.switchToPreviewTab();
|
218
218
|
listOrderingPage.steps.switchToGradingView();
|
219
|
-
listOrderingPage.steps.verifyPreviewScore(
|
219
|
+
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
220
220
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
221
221
|
});
|
222
222
|
|
@@ -219,28 +219,4 @@ describe('Create Item page - List ordering: Dropdown menu ordering layout: Edit
|
|
219
219
|
}
|
220
220
|
});
|
221
221
|
});
|
222
|
-
|
223
|
-
describe('User should be able to edit incomplete authored question', () => {
|
224
|
-
abortEarlySetup();
|
225
|
-
before(() => {
|
226
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
227
|
-
cy.barsPreLoaderWait();
|
228
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
229
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
230
|
-
listOrderingPage.steps.editItem();
|
231
|
-
});
|
232
|
-
|
233
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
234
|
-
listOrderingPage.steps.verifyWarningIconOnRequiredFields([
|
235
|
-
'Please enter all option values', 'Please set points',
|
236
|
-
]);
|
237
|
-
});
|
238
|
-
|
239
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
240
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
241
|
-
listOrderingPage.steps.allotPoints(10);
|
242
|
-
listOrderingPage.steps.verifyErrorMessageIsNotDisplayed();
|
243
|
-
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
244
|
-
});
|
245
|
-
});
|
246
222
|
});
|
@@ -53,20 +53,22 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
53
53
|
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
54
54
|
listOrderingPage.steps.addInputToOptionsInputField(options);
|
55
55
|
});
|
56
|
-
|
56
|
+
|
57
57
|
// Uncomment below code once https://redmine.zeuslearning.com/issues/577520 is Resolved
|
58
58
|
// listOrderingPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('list ordering');
|
59
59
|
|
60
|
-
it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the \'
|
61
|
-
|
60
|
+
it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the warning popup should appear and on closing the warning popup, an error message should be displayed in the \'Specify correct answer\' section', () => {
|
61
|
+
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
62
|
+
dialogBoxBase.steps.closeWarningPopup();
|
62
63
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
63
|
-
|
64
|
+
utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: All options need to have a value assigned to them from the dropdown.');
|
65
|
+
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
64
66
|
});
|
65
67
|
|
66
68
|
|
67
|
-
it('When the user checks \'Randomize options\' then the error message should
|
69
|
+
it('When the user checks \'Randomize options\' then the error message should persist', () => {
|
68
70
|
listOrderingPage.steps.checkRandomizeOptionsCheckbox();
|
69
|
-
|
71
|
+
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
70
72
|
});
|
71
73
|
|
72
74
|
it('When the user sets options order in the dropdowns, then the error message should disappear', () => {
|
@@ -97,6 +99,8 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
97
99
|
listOrderingPage.steps.addAlternativeAnswerAccordion(2);
|
98
100
|
});
|
99
101
|
|
102
|
+
listOrderingPage.tests.verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion();
|
103
|
+
|
100
104
|
it('User should be able to remove alternative correct answer by clicking on the \'Delete\' icon button alongside alternative answer accordion and the name of the alternative answer accordions should get updated accordingly', () => {
|
101
105
|
cy.log('Set correct answer in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
|
102
106
|
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }]);
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js
CHANGED
@@ -43,8 +43,7 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
43
43
|
|
44
44
|
it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the warning popup should appear and on closing the warning popup, an error message should be displayed in the \'Specify correct answer\' section', () => {
|
45
45
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
46
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), '
|
47
|
-
listOrderingPage.steps.closeWarningPopup();
|
46
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
48
47
|
utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
|
49
48
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
50
49
|
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
@@ -152,27 +152,4 @@ describe('Create Item page - List ordering : Question instructions and prompt se
|
|
152
152
|
utilities.verifyElementCount(listOrderingPage.optionWrapperPreviewTab(), 4);
|
153
153
|
});
|
154
154
|
});
|
155
|
-
|
156
|
-
describe('User should be able to edit incomplete authored question', () => {
|
157
|
-
abortEarlySetup();
|
158
|
-
before(() => {
|
159
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
160
|
-
cy.barsPreLoaderWait();
|
161
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
162
|
-
listOrderingPage.steps.editItem();
|
163
|
-
});
|
164
|
-
|
165
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
166
|
-
listOrderingPage.steps.verifyWarningIconOnRequiredFields([
|
167
|
-
'Please enter all option values', 'Please set points',
|
168
|
-
]);
|
169
|
-
});
|
170
|
-
|
171
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
172
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
173
|
-
listOrderingPage.steps.allotPoints(10);
|
174
|
-
listOrderingPage.steps.verifyErrorMessageIsNotDisplayed();
|
175
|
-
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
176
|
-
});
|
177
|
-
});
|
178
155
|
});
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { dialogBoxBase,
|
2
|
+
import { dialogBoxBase, listOrderingPage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
import { browseItemsPage } from "../../../pages/components";
|
5
4
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
6
|
-
let itemReferenceID = "";
|
7
5
|
|
8
6
|
describe('Create item page - Matching : Header section and Saving question', () => {
|
9
7
|
before(() => {
|
@@ -45,11 +43,17 @@ describe('Create item page - Matching : Header section and Saving question', ()
|
|
45
43
|
});
|
46
44
|
|
47
45
|
describe('Validation error messages', () => {
|
48
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(
|
46
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
49
47
|
|
50
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
51
49
|
listOrderingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
52
|
-
|
50
|
+
for (let index = 0; index < 4; index++) {
|
51
|
+
listOrderingPage.steps.verifyOptionsInputFieldErrorMessage(index);
|
52
|
+
}
|
53
|
+
listOrderingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
54
|
+
//need to remove comment after https://redmine.zeuslearning.com/issues/577520 is resolved
|
55
|
+
//listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
56
|
+
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.errorMessage(), -1), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
|
53
57
|
});
|
54
58
|
|
55
59
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -71,35 +75,5 @@ describe('Create item page - Matching : Header section and Saving question', ()
|
|
71
75
|
});
|
72
76
|
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
73
77
|
});
|
74
|
-
|
75
|
-
describe('Saving a question with incomplete authoring', () => {
|
76
|
-
abortEarlySetup();
|
77
|
-
before(() => {
|
78
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
79
|
-
cy.barsPreLoaderWait();
|
80
|
-
});
|
81
|
-
|
82
|
-
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
83
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
84
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
85
|
-
});
|
86
|
-
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
87
|
-
});
|
88
|
-
});
|
89
|
-
|
90
|
-
describe('Save as you go - Browse item page contents', () => {
|
91
|
-
abortEarlySetup();
|
92
|
-
before(() => {
|
93
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
94
|
-
cy.barsPreLoaderWait();
|
95
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
96
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
97
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
98
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
99
|
-
});
|
100
|
-
|
101
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
102
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
103
|
-
});
|
104
78
|
});
|
105
79
|
});
|
@@ -167,45 +167,4 @@ describe('Create item page - List ordering: All or nothing scoring with alternat
|
|
167
167
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
});
|
169
169
|
});
|
170
|
-
|
171
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has no points plotted', () => {
|
172
|
-
abortEarlySetup();
|
173
|
-
before(() => {
|
174
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
175
|
-
cy.barsPreLoaderWait();
|
176
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
177
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
178
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
179
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
180
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
181
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
182
|
-
listOrderingPage.steps.allotPoints(12);
|
183
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
184
|
-
listOrderingPage.steps.allotPoints(21);
|
185
|
-
listOrderingPage.steps.switchToPreviewTab();
|
186
|
-
});
|
187
|
-
|
188
|
-
it('When user attempts the question with responses from the correct accordion, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
189
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
190
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
191
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
192
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
193
|
-
listOrderingPage.steps.verifyPreviewScore(12, 21);
|
194
|
-
listOrderingPage.steps.switchToGradingView();
|
195
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
196
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
197
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
198
|
-
});
|
199
|
-
|
200
|
-
it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
|
201
|
-
listOrderingPage.steps.resetQuestionPreview();
|
202
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
203
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('seed');
|
204
|
-
listOrderingPage.steps.verifyPreviewScore(21, 21);
|
205
|
-
listOrderingPage.steps.switchToGradingView();
|
206
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
207
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
208
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
209
|
-
});
|
210
|
-
});
|
211
170
|
});
|
@@ -167,34 +167,4 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
167
167
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
});
|
169
169
|
});
|
170
|
-
|
171
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
172
|
-
abortEarlySetup();
|
173
|
-
before(() => {
|
174
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
175
|
-
cy.barsPreLoaderWait();
|
176
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
177
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
178
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
179
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
180
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
181
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
182
|
-
listOrderingPage.steps.allotPoints(20);
|
183
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
184
|
-
listOrderingPage.steps.allotPoints(20);
|
185
|
-
listOrderingPage.steps.switchToPreviewTab();
|
186
|
-
});
|
187
|
-
|
188
|
-
it('When user attempts the question with responses from the correct/alternative accordion then full score should be awarded', () => {
|
189
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
190
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
191
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
192
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
193
|
-
listOrderingPage.steps.verifyPreviewScore(20, 20);
|
194
|
-
listOrderingPage.steps.switchToGradingView();
|
195
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
196
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
197
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
198
|
-
});
|
199
|
-
});
|
200
170
|
});
|
@@ -227,54 +227,4 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
227
227
|
cy.checkAccessibility(listOrderingPage.previewTabQuestionWrapper());
|
228
228
|
});
|
229
229
|
});
|
230
|
-
|
231
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
232
|
-
abortEarlySetup();
|
233
|
-
before(() => {
|
234
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
235
|
-
cy.barsPreLoaderWait();
|
236
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
237
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
238
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
239
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
240
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
241
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
242
|
-
listOrderingPage.steps.allotPoints(21);
|
243
|
-
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
244
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
245
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
246
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
247
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
248
|
-
listOrderingPage.steps.allotPoints(12);
|
249
|
-
listOrderingPage.steps.expandCorrectAnswerAccordion();
|
250
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('seed');
|
251
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('flower');
|
252
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('sprout');
|
253
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('plant');
|
254
|
-
listOrderingPage.steps.switchToPreviewTab();
|
255
|
-
});
|
256
|
-
|
257
|
-
it('When user attempts the question with responses from the alternative accordion then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
258
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
259
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
260
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
261
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
262
|
-
listOrderingPage.steps.verifyPreviewScore(12, 21);
|
263
|
-
listOrderingPage.steps.switchToGradingView();
|
264
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
265
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
266
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
267
|
-
});
|
268
|
-
|
269
|
-
it('When user attempts the question with responses from the correct accordion i.e select an option, then the user should be awarded full points specified for correct points accordion and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
270
|
-
listOrderingPage.steps.resetQuestionPreview();
|
271
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
272
|
-
listOrderingPage.steps.clickAndResetDropOptionSeperateList('seed');
|
273
|
-
listOrderingPage.steps.verifyPreviewScore(21, 21);
|
274
|
-
listOrderingPage.steps.switchToGradingView();
|
275
|
-
listOrderingPage.steps.verifyCorrectAnswerSectionNotExist();
|
276
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
277
|
-
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
278
|
-
});
|
279
|
-
});
|
280
230
|
});
|
@@ -164,28 +164,4 @@ describe('Create Item page - List ordering : Question instructions and prompt se
|
|
164
164
|
utilities.verifyElementCount(listOrderingPage.optionsSeperateList(), 4);
|
165
165
|
});
|
166
166
|
});
|
167
|
-
|
168
|
-
describe('User should be able to edit incomplete authored question', () => {
|
169
|
-
abortEarlySetup();
|
170
|
-
before(() => {
|
171
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
172
|
-
cy.barsPreLoaderWait();
|
173
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
174
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
175
|
-
listOrderingPage.steps.editItem();
|
176
|
-
});
|
177
|
-
|
178
|
-
it('Warning icons should be displayed on the required input fields', () => {
|
179
|
-
listOrderingPage.steps.verifyWarningIconOnRequiredFields([
|
180
|
-
'Please enter all option values', 'Please set points',
|
181
|
-
]);
|
182
|
-
});
|
183
|
-
|
184
|
-
it('When required input fields are filled then warning icons should disappear', () => {
|
185
|
-
listOrderingPage.steps.addInputToOptionsInputField(options);
|
186
|
-
listOrderingPage.steps.allotPoints(10);
|
187
|
-
listOrderingPage.steps.verifyErrorMessageIsNotDisplayed();
|
188
|
-
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
189
|
-
});
|
190
|
-
});
|
191
167
|
});
|
@@ -164,12 +164,9 @@ describe('Create item page - List ordering: Scoring section', () => {
|
|
164
164
|
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
|
165
165
|
listOrderingPage.steps.addInputToOptionsInputField(options);
|
166
166
|
listOrderingPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
167
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
168
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
169
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
170
|
-
listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
|
171
167
|
});
|
172
168
|
|
169
|
+
listOrderingPage.tests.verifyContentsOfSpecifyCorrectAnswerSectionSeperateList();
|
173
170
|
|
174
171
|
it('When the user has switched to \'Partial - different weights\' scoring, then \'Points\' label should be displayed and a points input field should be displayed besides each option', () => {
|
175
172
|
utilities.verifyInnerText(listOrderingPage.partialDifferentWeightsPointsLabelSeparateList(), 'Points');
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { dialogBoxBase,
|
2
|
+
import { dialogBoxBase, listOrderingPage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
import { browseItemsPage } from "../../../pages/components";
|
5
4
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
6
|
-
let itemReferenceID = "";
|
7
5
|
|
8
6
|
describe('Create item page - Matching : Header section and Saving question', () => {
|
9
7
|
before(() => {
|
@@ -74,37 +72,5 @@ describe('Create item page - Matching : Header section and Saving question', ()
|
|
74
72
|
});
|
75
73
|
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
76
74
|
});
|
77
|
-
|
78
|
-
describe('Saving a question with incomplete authoring', () => {
|
79
|
-
abortEarlySetup();
|
80
|
-
before(() => {
|
81
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
82
|
-
cy.barsPreLoaderWait();
|
83
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
84
|
-
});
|
85
|
-
|
86
|
-
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
87
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
88
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
89
|
-
});
|
90
|
-
listOrderingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
91
|
-
});
|
92
|
-
});
|
93
|
-
|
94
|
-
describe('Save as you go - Browse item page contents', () => {
|
95
|
-
abortEarlySetup();
|
96
|
-
before(() => {
|
97
|
-
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
98
|
-
cy.barsPreLoaderWait();
|
99
|
-
listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
|
100
|
-
listOrderingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
101
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
102
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
103
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
104
|
-
});
|
105
|
-
|
106
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
107
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
108
|
-
});
|
109
75
|
});
|
110
76
|
});
|