itemengine-cypress-automation 1.0.225-activeDeadlineSecondsUpdated-34c7d0c.0 → 1.0.226-5thAugustFixes-cc6b557.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +9 -5
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -6
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -3
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/editTabScoringSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +11 -10
- package/cypress/e2e/ILC/ChartsLine/Scoring/addAndDeletePointAllOrNothingScoring.js +307 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/manuallyAndNonScored.js +282 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +387 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +280 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +280 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +340 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +255 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +230 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +354 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/toleranceThresholdScoring.js +143 -0
- package/cypress/e2e/ILC/ChartsLine/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +1 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +5 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +50 -126
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +2 -2
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +8 -6
- package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +6 -7
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +10 -8
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +7 -5
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +32 -21
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +4 -3
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/editTabScoring.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +6 -6
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -6
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +5 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/setPointsPopup.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +1 -3
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +4 -3
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +2 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +11 -11
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +3 -3
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +15 -15
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +7 -7
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +2 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +14 -14
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +3 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +17 -2
- package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +8 -8
- package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +15 -28
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +4 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +28 -42
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +5 -5
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +6 -4
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +2 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +113 -112
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +66 -65
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +1 -0
- package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -4
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +2 -1
- package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsStandardRecorderStyle.js +3 -2
- package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +4 -3
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +14 -7
- package/cypress/pages/audioResponsePage.js +14 -2
- package/cypress/pages/chartsDotPlotPage.js +28 -1
- package/cypress/pages/chartsLinePage.js +16 -3
- package/cypress/pages/components/additionalSettingsPanel.js +0 -3
- package/cypress/pages/components/chartsCommonComponent.js +5 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +47 -12
- package/cypress/pages/components/customizeMathCharacterComponent.js +1 -1
- package/cypress/pages/components/equationEditorFlyout.js +12 -13
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
- package/cypress/pages/components/playbackControlsBaseComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -2
- package/cypress/pages/essayResponseMathPage.js +19 -10
- package/cypress/pages/essayResponsePage.js +16 -10
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +9 -5
- package/cypress/pages/imageHighlightPage.js +46 -29
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/numberLineLabelPage.js +25 -28
- package/cypress/pages/numberLinePage.js +9 -2
- package/cypress/pages/shortTextResponsePage.js +33 -9
- package/package.json +1 -1
@@ -214,7 +214,8 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
214
214
|
audioResponsePage.steps.startRecordingBarPreview();
|
215
215
|
audioResponsePage.steps.waitForRecordingToStartBarPreview();
|
216
216
|
audioResponsePage.steps.stopRecordingBarPreview();
|
217
|
-
|
217
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577968 is resolved
|
218
|
+
//audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
218
219
|
utilities.verifyElementVisibilityState(audioResponsePage.progressBar(), 'notExist');
|
219
220
|
});
|
220
221
|
|
@@ -226,7 +227,8 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
226
227
|
audioResponsePage.steps.startRecordingCompactPreview();
|
227
228
|
audioResponsePage.steps.waitForRecordingToStartCompactPreview();
|
228
229
|
audioResponsePage.steps.stopRecordingCompactPreview();
|
229
|
-
|
230
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577968 is resolved
|
231
|
+
//audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
230
232
|
utilities.verifyElementVisibilityState(audioResponsePage.progressBar(), 'visible');
|
231
233
|
});
|
232
234
|
|
@@ -237,7 +239,8 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
237
239
|
audioResponsePage.steps.startRecordingCompactPreview();
|
238
240
|
audioResponsePage.steps.waitForRecordingToStartCompactPreview();
|
239
241
|
audioResponsePage.steps.stopRecordingCompactPreview();
|
240
|
-
|
242
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577968 is resolved
|
243
|
+
//audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
241
244
|
utilities.verifyElementVisibilityState(audioResponsePage.progressBar(), 'notExist');
|
242
245
|
});
|
243
246
|
});
|
@@ -497,8 +500,9 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
497
500
|
audioResponsePage.steps.waitForRecordingToStartCompactPreview();
|
498
501
|
audioResponsePage.steps.stopRecordingCompactPreview();
|
499
502
|
audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
500
|
-
|
501
|
-
|
503
|
+
//Remove comment once https://redmine.zeuslearning.com/issues/566924 is resolved
|
504
|
+
// audioResponsePage.compactPreviewRetakeButton()
|
505
|
+
// .verifyTooltip('Retake recording(1 retakes remaining)');
|
502
506
|
});
|
503
507
|
|
504
508
|
it('For "Compact" mode, When the user removes the retake limit, then the user should be able to retake the recording for n number of times', () => {
|
@@ -106,7 +106,8 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
106
106
|
});
|
107
107
|
};
|
108
108
|
|
109
|
-
|
109
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
|
110
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
110
111
|
if (view === 'Grading view') {
|
111
112
|
studentViewPage.steps.submitResponse();
|
112
113
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -116,11 +117,11 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
116
117
|
chartsBarPage.steps.switchToGradingView();
|
117
118
|
chartsBarPage.steps.verifyPreviewScore(0, 20);
|
118
119
|
}
|
119
|
-
chartsBarPage.steps.
|
120
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(0);
|
120
121
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
121
|
-
chartsBarPage.steps.
|
122
|
-
chartsBarPage.steps.
|
123
|
-
chartsBarPage.steps.
|
122
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(2);
|
123
|
+
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(3);
|
124
|
+
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
124
125
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 0, barValue: 3, range: 10 });
|
125
126
|
chartsBarPage.steps.verifyLockedBarInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 10 });
|
126
127
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
|
@@ -350,7 +351,8 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
350
351
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
351
352
|
});
|
352
353
|
|
353
|
-
|
354
|
+
//Remove the skip once https://redmine.zeuslearning.com/issues/578629 is resolved
|
355
|
+
it.skip('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, then the user should be awarded with 0 points', () => {
|
354
356
|
chartsBarPage.steps.switchToEditTab();
|
355
357
|
chartsBarPage.steps.expandMinimumScoringDropdown();
|
356
358
|
chartsBarPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
@@ -96,7 +96,8 @@ describe('Create item page - Charts - Bar: Add and Delete bar All or nothing sco
|
|
96
96
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
97
97
|
});
|
98
98
|
|
99
|
-
|
99
|
+
//Remove the skip after https://redmine.zeuslearning.com/issues/577364 is resolved
|
100
|
+
it.skip('When the user attempts the question partially correct by correctly setting all the default available bars, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set bars, and correct answer section should be displayed with the correct answers', () => {
|
100
101
|
chartsBarPage.steps.resetQuestionPreview()
|
101
102
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
|
102
103
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 1, value: 6, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -167,7 +167,7 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
167
167
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
168
168
|
});
|
169
169
|
|
170
|
-
it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
170
|
+
it.skip('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
171
171
|
chartsBarPage.steps.resetQuestionPreview();
|
172
172
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
173
173
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -233,7 +233,8 @@ describe('Create item page - Charts - Bar: All or nothing scoring with alternati
|
|
233
233
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
234
234
|
});
|
235
235
|
|
236
|
-
|
236
|
+
//Remove the skip when https://redmine.zeuslearning.com/issues/574164 is reolved
|
237
|
+
it.skip('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
237
238
|
chartsBarPage.steps.resetQuestionPreview();
|
238
239
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 1, range: 10 });
|
239
240
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js
CHANGED
@@ -41,7 +41,8 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
41
41
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
42
42
|
});
|
43
43
|
|
44
|
-
|
44
|
+
//Remove the skip once https://redmine.zeuslearning.com/issues/578629 is resolved
|
45
|
+
it.skip('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, then user should be awarded zero points', () => {
|
45
46
|
chartsBarPage.steps.switchToEditTab();
|
46
47
|
chartsBarPage.steps.expandMinimumScoringDropdown();
|
47
48
|
chartsBarPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
@@ -324,13 +324,12 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
324
324
|
chartsBarPage.steps.allotPoints(50);
|
325
325
|
chartsBarPage.steps.expandCorrectAnswerAccordion();
|
326
326
|
chartsBarPage.steps.allotPoints(10);
|
327
|
-
chartsBarPage.steps.expandAlternativeAnswerAccordion(
|
327
|
+
chartsBarPage.steps.expandAlternativeAnswerAccordion(-1);
|
328
328
|
chartsBarPage.steps.switchToPreviewTab();
|
329
|
-
|
330
329
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 5, range: 10 });
|
331
330
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 4, range: 10 });
|
332
331
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
333
|
-
chartsBarPage.steps.verifyPreviewScore(
|
332
|
+
chartsBarPage.steps.verifyPreviewScore(8, 20);
|
334
333
|
chartsBarPage.steps.switchToGradingView();
|
335
334
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
336
335
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
@@ -323,12 +323,12 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
323
323
|
chartsBarPage.steps.allotPoints(10);
|
324
324
|
chartsBarPage.steps.expandCorrectAnswerAccordion();
|
325
325
|
chartsBarPage.steps.allotPoints(50);
|
326
|
-
chartsBarPage.steps.expandAlternativeAnswerAccordion(
|
326
|
+
chartsBarPage.steps.expandAlternativeAnswerAccordion(-1);
|
327
327
|
chartsBarPage.steps.switchToPreviewTab();
|
328
328
|
|
329
329
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 3, value: 8, range: 10 });
|
330
330
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 6, range: 10 });
|
331
|
-
chartsBarPage.steps.verifyPreviewScore(
|
331
|
+
chartsBarPage.steps.verifyPreviewScore(8, 20);
|
332
332
|
chartsBarPage.steps.switchToGradingView();
|
333
333
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(0, 'correct');
|
334
334
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconNotExistsInPreviewTab(1);
|
@@ -348,7 +348,8 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
348
348
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
349
349
|
});
|
350
350
|
|
351
|
-
|
351
|
+
//Remove the skip once https://redmine.zeuslearning.com/issues/578629 is resolved
|
352
|
+
it.skip('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, then the user should be awarded with 0 points', () => {
|
352
353
|
chartsBarPage.steps.switchToEditTab();
|
353
354
|
chartsBarPage.steps.expandMinimumScoringDropdown();
|
354
355
|
chartsBarPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
@@ -98,7 +98,7 @@ describe('Create item page - Charts - Bar: Scoring section', () => {
|
|
98
98
|
});
|
99
99
|
|
100
100
|
it('When the user sets a bar value then the points per response should not be updated', () => {
|
101
|
-
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 1, range: 10});
|
101
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 1, range: 10 });
|
102
102
|
chartsBarPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('3');
|
103
103
|
});
|
104
104
|
|
@@ -195,7 +195,7 @@ describe('Create item page - Charts - Bar: Scoring section', () => {
|
|
195
195
|
|
196
196
|
it('When the user updates the entered points in \'All or nothing\' scoring type and switches to \'Partial different weights\' scoring type, then the points should be equally divided and displayed besides each correct option', () => {
|
197
197
|
chartsBarPage.steps.allotPoints(12);
|
198
|
-
cy.wait(
|
198
|
+
cy.wait(1000)
|
199
199
|
chartsBarPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
200
200
|
chartsBarPage.steps.verifyPartialDifferentWeightsPointsInputFieldValue([3, 3, 3, 3]);
|
201
201
|
});
|
@@ -365,8 +365,8 @@ describe('Create item: Charts- Bar : Select chart type', () => {
|
|
365
365
|
utilities.verifyInnerText(chartsBarPage.selectChartTypeMaxXAndYLabel(), 'Max X');
|
366
366
|
utilities.verifyElementVisibilityState(chartsBarPage.selectChartTypeMaxXAndYLabel(), 'visible');
|
367
367
|
chartsBarPage.steps.verifyMaxXAndYValue(10);
|
368
|
-
chartsBarPage.steps.verifyBarLabelHorizontalSelectChartType(['Bar 1', 'Bar 2', 'Bar 3']);
|
369
|
-
chartsBarPage.steps.verifyBarLabelHorizontalSpecifyCorrectAnswer(['Bar 1', 'Bar 2', 'Bar 3']);
|
368
|
+
chartsBarPage.steps.verifyBarLabelHorizontalSelectChartType([[0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']]);
|
369
|
+
chartsBarPage.steps.verifyBarLabelHorizontalSpecifyCorrectAnswer([[0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']]);
|
370
370
|
chartsBarPage.steps.verifyLabelsInHorizontalSelectChartType(0, 1);
|
371
371
|
chartsBarPage.steps.verifyLabelsInHorizontalSpecifyCorrectAnswer(0, 1);
|
372
372
|
});
|
@@ -419,7 +419,7 @@ describe('Create item: Charts- Bar : Select chart type', () => {
|
|
419
419
|
utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Bar chart');
|
420
420
|
utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Days');
|
421
421
|
utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
|
422
|
-
chartsBarPage.steps.verifyBarLabelHorizontalPreviewTab(['Bar 1', 'Bar 2', 'Bar 3']);
|
422
|
+
chartsBarPage.steps.verifyBarLabelHorizontalPreviewTab([[0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3']]);
|
423
423
|
chartsBarPage.steps.verifyLabelsInHorizontalPreviewTab(0, 1);
|
424
424
|
});
|
425
425
|
|
@@ -54,7 +54,8 @@ describe('Select chart type - Chart', () => {
|
|
54
54
|
utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 4);
|
55
55
|
});
|
56
56
|
|
57
|
-
|
57
|
+
//Remove the skip once https://redmine.zeuslearning.com/issues/576955 is resolved.
|
58
|
+
it.skip('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
|
58
59
|
chartsBarPage.controlOptionsSelectChartType('Undo')
|
59
60
|
.verifyTooltip('Undo');
|
60
61
|
chartsBarPage.controlOptionsSelectChartType('Reset')
|
@@ -613,7 +614,7 @@ describe('Select chart type - Chart', () => {
|
|
613
614
|
});
|
614
615
|
|
615
616
|
it('Add bar label and button should be displayed and by default, button should be in unselected state', () => {
|
616
|
-
utilities.verifyInnerText(chartsBarPage.addBarOrPointOptionLabel(), );
|
617
|
+
utilities.verifyInnerText(chartsBarPage.addBarOrPointOptionLabel(), 'Add bar');
|
617
618
|
utilities.verifyElementVisibilityState(chartsBarPage.addBarOrPointOptionLabel(), 'visible');
|
618
619
|
chartsBarPage.steps.verifyAddBarOrPointToolbarOptionButton();
|
619
620
|
chartsBarPage.steps.verifyAddBarOrPointToolbarOptionUnselected();
|
@@ -624,7 +625,7 @@ describe('Select chart type - Chart', () => {
|
|
624
625
|
});
|
625
626
|
|
626
627
|
it('When user has not selected add tool button then Add bar button should not be displayed in specify correct answer section', () => {
|
627
|
-
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer(), 'notExist');
|
628
|
+
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'), 'notExist');
|
628
629
|
});
|
629
630
|
|
630
631
|
it('User should be able to select Add bar tool button', () => {
|
@@ -636,12 +637,12 @@ describe('Select chart type - Chart', () => {
|
|
636
637
|
});
|
637
638
|
|
638
639
|
it('When Add bar tool button is in selected state then Add bar button should be displayed in enabled state in the specify correct answer section', () => {
|
639
|
-
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer(), 'visible');
|
640
|
-
utilities.verifyElementNotDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer());
|
640
|
+
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'), 'visible');
|
641
|
+
utilities.verifyElementNotDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'));
|
641
642
|
});
|
642
643
|
|
643
644
|
it('When user hovers over Add bar button then Add bar tooltip should be displayed in specify correct answer section', () => {
|
644
|
-
chartsBarPage.controlOptionsSpecifyCorrectAnswer()
|
645
|
+
chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar')
|
645
646
|
.verifyTooltip('Add bar');
|
646
647
|
});
|
647
648
|
|
@@ -649,14 +650,14 @@ describe('Select chart type - Chart', () => {
|
|
649
650
|
chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
|
650
651
|
utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 4);
|
651
652
|
chartsBarPage.steps.verifyBarLabelSpecifyCorrectAnswer(3, 'Bar 4');
|
652
|
-
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer());
|
653
|
+
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'));
|
653
654
|
});
|
654
655
|
|
655
656
|
it('When user deletes the added bar then added bar should be deleted and Add bar button should be in enabled state', () => {
|
656
657
|
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 2, range: 10 });
|
657
658
|
chartsBarPage.steps.deleteBarInSpecifyCorrectAnswer(3);
|
658
659
|
utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 3);
|
659
|
-
utilities.verifyElementNotDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer());
|
660
|
+
utilities.verifyElementNotDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'));
|
660
661
|
});
|
661
662
|
|
662
663
|
it('When user updates the Max bar count in select chart type then user should be able to add bars according to the updated value in specify correct answer section', () => {
|
@@ -668,12 +669,12 @@ describe('Select chart type - Chart', () => {
|
|
668
669
|
for (var i = 1; i < 7; i++) {
|
669
670
|
chartsBarPage.steps.verifyBarLabelSpecifyCorrectAnswer(i - 1, `Bar ${i}`);
|
670
671
|
}
|
671
|
-
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer());
|
672
|
+
utilities.verifyElementDisabled(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'));
|
672
673
|
});
|
673
674
|
|
674
675
|
it('When user unselects the Add bar tool button then Add bar button should not be displayed and added bar should still remain in specify correct answer', () => {
|
675
676
|
chartsBarPage.steps.unselectAddBarOrPointToolbarOption();
|
676
|
-
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer(), 'notExist');
|
677
|
+
utilities.verifyElementVisibilityState(chartsBarPage.controlOptionsSpecifyCorrectAnswer('Add bar'), 'notExist');
|
677
678
|
utilities.verifyElementCount(chartsBarPage.specifyCorrectAnswerBar(), 6);
|
678
679
|
});
|
679
680
|
|
@@ -0,0 +1,307 @@
|
|
1
|
+
import { chartsLinePage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create item page - Charts - Line: Add and Delete point All or nothing scoring', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Charts - Line: Add point All or nothing scoring', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
chartsLinePage.steps.selectLineButton();
|
15
|
+
chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the point on the chart for the profits of the years');
|
16
|
+
chartsLinePage.steps.selectAddBarOrPointToolbarOption();
|
17
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 1, range: 10 });
|
18
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
19
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 2, value: 3, range: 10 });
|
20
|
+
chartsLinePage.steps.allotPoints(20);
|
21
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
22
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
23
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
24
|
+
chartsLinePage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
|
25
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
26
|
+
chartsLinePage.steps.switchToPreviewTab();
|
27
|
+
});
|
28
|
+
|
29
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
30
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
31
|
+
chartsLinePage.steps.switchToGradingView();
|
32
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
33
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
34
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
35
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
36
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
37
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
38
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
39
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
40
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
41
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
42
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
43
|
+
});
|
44
|
+
|
45
|
+
// Fully incorrect case
|
46
|
+
it('When the user attempts the default available points incorrectly, then the user should be 0 awarded points and on switching to grading view, your answer is incorrect status message should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
47
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 10 });
|
48
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 3, range: 10 });
|
49
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
50
|
+
chartsLinePage.steps.switchToGradingView();
|
51
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
52
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
53
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
54
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
55
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
56
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
57
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
58
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
59
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When the user attempts the question incorrectly by adding a new point and incorrectly attempting all points, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
63
|
+
chartsLinePage.steps.resetQuestionPreview();
|
64
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
65
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 4, range: 10 });
|
66
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 4, range: 10 });
|
67
|
+
chartsLinePage.steps.addBarOrPointInChartInPreviewTab();
|
68
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 4, range: 10 });
|
69
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
70
|
+
chartsLinePage.steps.switchToGradingView();
|
71
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
72
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
73
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
74
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
75
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
76
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
77
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
78
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
79
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
80
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
81
|
+
});
|
82
|
+
|
83
|
+
// Partially correct cases
|
84
|
+
it('When the user attempts the question partially correct with incorrect answer without adding any point, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
85
|
+
chartsLinePage.steps.resetQuestionPreview()
|
86
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
87
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 10 });
|
88
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
89
|
+
chartsLinePage.steps.switchToGradingView();
|
90
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
91
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
92
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
93
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
94
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
95
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
96
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
97
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
98
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
|
+
});
|
100
|
+
|
101
|
+
it('When the user attempts the question partially correct by correctly setting all the default available points, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, and correct answer section should be displayed with the correct answers', () => {
|
102
|
+
chartsLinePage.steps.resetQuestionPreview()
|
103
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
104
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
105
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
106
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
107
|
+
chartsLinePage.steps.switchToGradingView();
|
108
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
109
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
110
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
111
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
112
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
113
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
114
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
115
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
116
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
117
|
+
});
|
118
|
+
|
119
|
+
it('When the user attempts the question partially correct by correctly setting all the default available points and adding a new point but keeping it zero, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
120
|
+
chartsLinePage.steps.resetQuestionPreview();
|
121
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
122
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
123
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
124
|
+
chartsLinePage.steps.addBarOrPointInChartInPreviewTab();
|
125
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
126
|
+
chartsLinePage.steps.switchToGradingView();
|
127
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
128
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
129
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
130
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
131
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
132
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
133
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
134
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
135
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
136
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
137
|
+
});
|
138
|
+
|
139
|
+
it('When the user attempts the question partially correct by correctly setting all the default available points and adding a new point but attempting it incorrectly, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
140
|
+
chartsLinePage.steps.resetQuestionPreview()
|
141
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
142
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
143
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
144
|
+
chartsLinePage.steps.addBarOrPointInChartInPreviewTab();
|
145
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
146
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
147
|
+
chartsLinePage.steps.switchToGradingView();
|
148
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
149
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
150
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
151
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
152
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
153
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
154
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
155
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
156
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 2, range: 10 });
|
157
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
158
|
+
});
|
159
|
+
|
160
|
+
// Fully correct
|
161
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted/set points and the correct answer section graph should not be displayed', () => {
|
162
|
+
chartsLinePage.steps.resetQuestionPreview();
|
163
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
164
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
165
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
166
|
+
chartsLinePage.steps.addBarOrPointInChartInPreviewTab();
|
167
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 2, range: 10 });
|
168
|
+
chartsLinePage.steps.verifyPreviewScore(20, 20);
|
169
|
+
chartsLinePage.steps.switchToGradingView();
|
170
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
171
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
172
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
173
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
174
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
175
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
176
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
177
|
+
});
|
178
|
+
});
|
179
|
+
|
180
|
+
describe('Charts - Line: Delete point All or nothing scoring', () => {
|
181
|
+
abortEarlySetup();
|
182
|
+
before(() => {
|
183
|
+
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
184
|
+
cy.barsPreLoaderWait();
|
185
|
+
chartsLinePage.steps.selectLineButton();
|
186
|
+
chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the point on the chart for the profits of the years');
|
187
|
+
chartsLinePage.steps.selectAddBarOrPointToolbarOption();
|
188
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
189
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 1, range: 10 });
|
190
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
191
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 2, value: 3, range: 10 });
|
192
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 4, range: 10 });
|
193
|
+
chartsLinePage.steps.allotPoints(20);
|
194
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
195
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
196
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
197
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 1, range: 10 });
|
198
|
+
chartsLinePage.steps.deletePointInSpecifyCorrectAnswerSection(3);
|
199
|
+
chartsLinePage.steps.switchToPreviewTab();
|
200
|
+
});
|
201
|
+
|
202
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
203
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, incorrect icon should be displayed for incorrect graph, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
204
|
+
chartsLinePage.steps.switchToGradingView();
|
205
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
206
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
207
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
208
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
209
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
210
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
211
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
212
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
213
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
214
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
215
|
+
});
|
216
|
+
|
217
|
+
// Fully incorrect case
|
218
|
+
it('When the user attempts the default available points incorrectly, then the user should be 0 awarded points and on switching to grading view, your answer is incorrect status message should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
219
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
220
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 4, range: 10 });
|
221
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 4, range: 10 });
|
222
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
223
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
224
|
+
chartsLinePage.steps.switchToGradingView();
|
225
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
226
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
227
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
228
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
229
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
230
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
231
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
232
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
233
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
234
|
+
});
|
235
|
+
|
236
|
+
it('When the user attempts the question incorrectly by deleting point and incorrectly attempting all remaining points, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
237
|
+
chartsLinePage.steps.resetQuestionPreview();
|
238
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
239
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 4, range: 10 });
|
240
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 4, range: 10 });
|
241
|
+
chartsLinePage.steps.deletePointInPreviewTab(3);
|
242
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
243
|
+
chartsLinePage.steps.switchToGradingView();
|
244
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
245
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
246
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
247
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
248
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
249
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
250
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
251
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
252
|
+
});
|
253
|
+
|
254
|
+
// Partially correct cases
|
255
|
+
it('When the user attempts the question partially correct with incorrect answer without deleting any point, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set points, incorrect icons should be displayed on the incorrectly attempted/set points and correct answer section should be displayed with the correct answers', () => {
|
256
|
+
chartsLinePage.steps.resetQuestionPreview()
|
257
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
258
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 10 });
|
259
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
260
|
+
chartsLinePage.steps.switchToGradingView();
|
261
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
262
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'incorrect');
|
263
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
264
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
265
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
266
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
267
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
268
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
269
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
270
|
+
});
|
271
|
+
|
272
|
+
it('When the user attempts the question partially correct by correctly setting all the required points except the one to be deleted, then the user should be awarded with 0 points and on switching to grading view your answer is incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set points, and correct answer section should be displayed with the correct answers', () => {
|
273
|
+
chartsLinePage.steps.resetQuestionPreview()
|
274
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
275
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
276
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
277
|
+
chartsLinePage.steps.verifyPreviewScore(0, 20);
|
278
|
+
chartsLinePage.steps.switchToGradingView();
|
279
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
280
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
281
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
282
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
283
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
284
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
285
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 1, value: 6, range: 10 });
|
286
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
287
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
288
|
+
});
|
289
|
+
|
290
|
+
// Fully correct
|
291
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted/set points and the correct answer section graph should not be displayed', () => {
|
292
|
+
chartsLinePage.steps.resetQuestionPreview();
|
293
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 3, range: 10 });
|
294
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 1, value: 6, range: 10 });
|
295
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
296
|
+
chartsLinePage.steps.deletePointInPreviewTab(3);
|
297
|
+
chartsLinePage.steps.verifyPreviewScore(20, 20);
|
298
|
+
chartsLinePage.steps.switchToGradingView();
|
299
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
300
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(1, 'correct');
|
301
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
302
|
+
chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
303
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
304
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
305
|
+
});
|
306
|
+
});
|
307
|
+
});
|