itemengine-cypress-automation 1.0.225-activeDeadlineSecondsUpdated-34c7d0c.0 → 1.0.225
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 +2 -2
@@ -0,0 +1,280 @@
|
|
1
|
+
import { chartsLinePage } from "../../../../pages/chartsLinePage";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Charts - Line: Partial different weights scoring with alternative answer - When correct answer points are equal to alternative answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are equal to alternative answer points', () => {
|
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.addBarOrPointInChartInSelectChartTypeSection();
|
17
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
18
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
|
19
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
20
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
|
21
|
+
chartsLinePage.steps.lockPoint(1);
|
22
|
+
chartsLinePage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
23
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 7, 1: 5, 2: 4, 3: 3, 4: 4 });
|
24
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
25
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
26
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
27
|
+
chartsLinePage.steps.addAlternativeAnswerAccordion(1);
|
28
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 8, 1: 4, 2: 2, 3: 6, 4: 3 });
|
29
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
30
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
31
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
32
|
+
//chartsLinePage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
33
|
+
chartsLinePage.steps.switchToPreviewTab();
|
34
|
+
});
|
35
|
+
|
36
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
37
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
|
38
|
+
chartsLinePage.steps.switchToGradingView();
|
39
|
+
chartsLinePage.steps.verifyPreviewScore(0, 23);
|
40
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
41
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
42
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
43
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
44
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(4);
|
45
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
46
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
47
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
48
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
49
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
50
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
51
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
52
|
+
});
|
53
|
+
|
54
|
+
it('When the user incorrectly attempts the answer, then the user should be awarded with points for the correctly set bars(in this case only the locked bar) and on switching to grading view \'Your answer is incorrect\', incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
55
|
+
chartsLinePage.steps.resetQuestionPreview();
|
56
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
|
57
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
|
58
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
59
|
+
chartsLinePage.steps.verifyPreviewScore(5, 23);
|
60
|
+
chartsLinePage.steps.switchToGradingView();
|
61
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
62
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
63
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
64
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
65
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
66
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
67
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
68
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
69
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
70
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
71
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
72
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
73
|
+
});
|
74
|
+
|
75
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
76
|
+
chartsLinePage.steps.resetQuestionPreview();
|
77
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
78
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
79
|
+
chartsLinePage.steps.verifyPreviewScore(23, 23);
|
80
|
+
chartsLinePage.steps.switchToGradingView();
|
81
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
82
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
83
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
84
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
85
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
86
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
87
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
88
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
89
|
+
});
|
90
|
+
|
91
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
92
|
+
chartsLinePage.steps.resetQuestionPreview();
|
93
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
94
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
95
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
96
|
+
chartsLinePage.steps.verifyPreviewScore(23, 23);
|
97
|
+
chartsLinePage.steps.switchToGradingView();
|
98
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
99
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
100
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
101
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
102
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
103
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
104
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
105
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When the user attempts the question with partially correct exclusively from the correct accordion, then the user should be awarded with points for the correctly set bars 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, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
109
|
+
chartsLinePage.steps.resetQuestionPreview();
|
110
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
111
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
112
|
+
chartsLinePage.steps.verifyPreviewScore(13, 23);
|
113
|
+
chartsLinePage.steps.switchToGradingView();
|
114
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
115
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
116
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
117
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
118
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
119
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
121
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
122
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
123
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
124
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
125
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
126
|
+
});
|
127
|
+
|
128
|
+
it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars 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 correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
129
|
+
chartsLinePage.steps.resetQuestionPreview();
|
130
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
131
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
132
|
+
chartsLinePage.steps.verifyPreviewScore(9, 23);
|
133
|
+
chartsLinePage.steps.switchToGradingView();
|
134
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
135
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
136
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
137
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
138
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
139
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
140
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
141
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
142
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
143
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
144
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
145
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
146
|
+
});
|
147
|
+
|
148
|
+
it('When the user attempts the question with more answers from the correct accordion than the alternate accordion, then the user should be awarded with points for the correctly set bars from the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
149
|
+
chartsLinePage.steps.resetQuestionPreview();
|
150
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
151
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
152
|
+
chartsLinePage.steps.verifyPreviewScore(16, 23);
|
153
|
+
chartsLinePage.steps.switchToGradingView();
|
154
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
155
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
156
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
157
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
158
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
159
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
160
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
161
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
162
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
163
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
164
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
165
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
166
|
+
});
|
167
|
+
|
168
|
+
it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
169
|
+
chartsLinePage.steps.resetQuestionPreview();
|
170
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
171
|
+
chartsLinePage.steps.verifyPreviewScore(14, 23);
|
172
|
+
chartsLinePage.steps.switchToGradingView();
|
173
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
174
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
175
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
176
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
177
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
178
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
179
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
180
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
181
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
182
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
183
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
184
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
185
|
+
});
|
186
|
+
|
187
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside incorrect responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
188
|
+
chartsLinePage.steps.resetQuestionPreview();
|
189
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 1, range: 10 });
|
190
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
191
|
+
chartsLinePage.steps.verifyPreviewScore(12, 23);
|
192
|
+
chartsLinePage.steps.switchToGradingView();
|
193
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
194
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
195
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
196
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
197
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
198
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
199
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
200
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
201
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
202
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
203
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
204
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
|
+
});
|
206
|
+
|
207
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside incorrect responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
208
|
+
chartsLinePage.steps.resetQuestionPreview();
|
209
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
210
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
211
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 1, range: 10 });
|
212
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
213
|
+
chartsLinePage.steps.verifyPreviewScore(12, 23);
|
214
|
+
chartsLinePage.steps.switchToGradingView();
|
215
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
216
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
217
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
218
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
219
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
220
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
221
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
222
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
223
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
224
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
225
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
226
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
227
|
+
});
|
228
|
+
|
229
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points for the correctly set bars from the accordion with more points and on switching to \'Grading\' view, green check-mark icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
230
|
+
chartsLinePage.steps.resetQuestionPreview();
|
231
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
232
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
|
233
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
234
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
235
|
+
chartsLinePage.steps.verifyPreviewScore(10, 23);
|
236
|
+
chartsLinePage.steps.switchToGradingView();
|
237
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
238
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
239
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
240
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
241
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
242
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
243
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
244
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
245
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
246
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
247
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
248
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
249
|
+
});
|
250
|
+
|
251
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternate accordion but the score of the individual response from the alternate accordion overpowers the combined score of the correct accordion answers then on switching to the \'Grading view\', then points awarded should be of the alternate accordion, correct icons should be displayed for the alternate accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section with a preview of the entire grid with correct answers from the correct accordion should be displayed', () => {
|
252
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such that the difference between the points is substantial')
|
253
|
+
chartsLinePage.steps.switchToEditTab();
|
254
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
|
255
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 18, 1: 1, 2: 2, 3: 3, 4: 4 });
|
256
|
+
chartsLinePage.steps.expandCorrectAnswerAccordion();
|
257
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 15, 1: 1, 2: 3, 3: 4, 4: 5 });
|
258
|
+
chartsLinePage.steps.switchToPreviewTab();
|
259
|
+
|
260
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
261
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
262
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
263
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
264
|
+
chartsLinePage.steps.verifyPreviewScore(19, 28);
|
265
|
+
chartsLinePage.steps.switchToGradingView();
|
266
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
267
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
268
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
269
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
270
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
271
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
272
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
273
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
274
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
275
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
276
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
277
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
278
|
+
});
|
279
|
+
});
|
280
|
+
});
|
@@ -0,0 +1,280 @@
|
|
1
|
+
import { chartsLinePage } from "../../../../pages/chartsLinePage";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Charts - Line: Partial different weights scoring with alternative answer - When correct answer points are more than alternative answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights with alternative answer: When correct answer points are more than alternative answer points', () => {
|
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.addBarOrPointInChartInSelectChartTypeSection();
|
17
|
+
chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
18
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
|
19
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
|
20
|
+
chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
|
21
|
+
chartsLinePage.steps.lockPoint(1);
|
22
|
+
chartsLinePage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
23
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 7, 1: 5, 2: 4, 3: 8, 4: 4 });
|
24
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
25
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
26
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
27
|
+
chartsLinePage.steps.addAlternativeAnswerAccordion(1);
|
28
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 6, 1: 3, 2: 2, 3: 9, 4: 2 });
|
29
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
|
30
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
31
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
|
32
|
+
//chartsLinePage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
33
|
+
chartsLinePage.steps.switchToPreviewTab();
|
34
|
+
});
|
35
|
+
|
36
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
|
37
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then user should be provided with 0 points, correct icon should be displayed for bar set to correct by default, incorrect icon should be displayed for incorrect graph, the correct accordion answer should be displayed in the correct answer section graph and incorrect status message should be displayed', () => {
|
38
|
+
chartsLinePage.steps.switchToGradingView();
|
39
|
+
chartsLinePage.steps.verifyPreviewScore(0, 28);
|
40
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
|
41
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
42
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
|
43
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
|
44
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(4);
|
45
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
46
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
47
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
48
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
49
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
50
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
51
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
52
|
+
});
|
53
|
+
|
54
|
+
it('When the user incorrectly attempts the answer, then the user should be awarded with points for the correctly set bars(in this case only the locked bar) and on switching to grading view \'Your answer is incorrect\', incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
55
|
+
chartsLinePage.steps.resetQuestionPreview();
|
56
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
|
57
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
|
58
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
59
|
+
chartsLinePage.steps.verifyPreviewScore(5, 28);
|
60
|
+
chartsLinePage.steps.switchToGradingView();
|
61
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
62
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
63
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
64
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
65
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
66
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
67
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
68
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
69
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
70
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
71
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
72
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
73
|
+
});
|
74
|
+
|
75
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
76
|
+
chartsLinePage.steps.resetQuestionPreview();
|
77
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
78
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
79
|
+
chartsLinePage.steps.verifyPreviewScore(28, 28);
|
80
|
+
chartsLinePage.steps.switchToGradingView();
|
81
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
82
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
83
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
84
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
85
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
86
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
87
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
88
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
89
|
+
});
|
90
|
+
|
91
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative 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\' and correct answer section should not be displayed', () => {
|
92
|
+
chartsLinePage.steps.resetQuestionPreview();
|
93
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
94
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
95
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
96
|
+
chartsLinePage.steps.verifyPreviewScore(22, 28);
|
97
|
+
chartsLinePage.steps.switchToGradingView();
|
98
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
99
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
100
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
101
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
102
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
103
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
104
|
+
chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
105
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When the user attempts the question with partially correct exclusively from the correct accordion, then the user should be awarded with points for the correctly set bars 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, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
109
|
+
chartsLinePage.steps.resetQuestionPreview();
|
110
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
111
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
112
|
+
chartsLinePage.steps.verifyPreviewScore(13, 28);
|
113
|
+
chartsLinePage.steps.switchToGradingView();
|
114
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
115
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
116
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
117
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
118
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
119
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
121
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
122
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
123
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
124
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
125
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
126
|
+
});
|
127
|
+
|
128
|
+
it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars 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 correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
129
|
+
chartsLinePage.steps.resetQuestionPreview();
|
130
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
131
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
132
|
+
chartsLinePage.steps.verifyPreviewScore(7, 28);
|
133
|
+
chartsLinePage.steps.switchToGradingView();
|
134
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
135
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
136
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
137
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
138
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
|
139
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
140
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
141
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
142
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
143
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
144
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
145
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
146
|
+
});
|
147
|
+
|
148
|
+
it('When the user attempts the question with more answers from the correct accordion than the alternate accordion, then the user should be awarded with points for the correctly set bars from the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
149
|
+
chartsLinePage.steps.resetQuestionPreview();
|
150
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
151
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
|
152
|
+
chartsLinePage.steps.verifyPreviewScore(16, 28);
|
153
|
+
chartsLinePage.steps.switchToGradingView();
|
154
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
155
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
156
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
157
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
158
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
159
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
160
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
161
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
162
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
163
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
164
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
165
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
166
|
+
});
|
167
|
+
|
168
|
+
it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
169
|
+
chartsLinePage.steps.resetQuestionPreview();
|
170
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
171
|
+
chartsLinePage.steps.verifyPreviewScore(11, 28);
|
172
|
+
chartsLinePage.steps.switchToGradingView();
|
173
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
174
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
175
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
176
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
177
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
178
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
179
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
180
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
181
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
182
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
183
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
184
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
185
|
+
});
|
186
|
+
|
187
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside incorrect responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
188
|
+
chartsLinePage.steps.resetQuestionPreview();
|
189
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 1, range: 10 });
|
190
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
191
|
+
chartsLinePage.steps.verifyPreviewScore(12, 28);
|
192
|
+
chartsLinePage.steps.switchToGradingView();
|
193
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
194
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
195
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
196
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
197
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
198
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
199
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
200
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
201
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
202
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
203
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
204
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
|
+
});
|
206
|
+
|
207
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside incorrect responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
208
|
+
chartsLinePage.steps.resetQuestionPreview();
|
209
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
210
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
211
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 1, range: 10 });
|
212
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
213
|
+
chartsLinePage.steps.verifyPreviewScore(9, 28);
|
214
|
+
chartsLinePage.steps.switchToGradingView();
|
215
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
216
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
217
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
|
218
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
219
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
220
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
221
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
222
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
223
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
224
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
225
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
226
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
227
|
+
});
|
228
|
+
|
229
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points for the correctly set bars from the correct accordion and on switching to \'Grading\' view, green check-mark icon should be besides the common response, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
230
|
+
chartsLinePage.steps.resetQuestionPreview();
|
231
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
|
232
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
|
233
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
234
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
235
|
+
chartsLinePage.steps.verifyPreviewScore(13, 28);
|
236
|
+
chartsLinePage.steps.switchToGradingView();
|
237
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
|
238
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
239
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
240
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
|
241
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
242
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
243
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
244
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
245
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
246
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
247
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
248
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
249
|
+
});
|
250
|
+
|
251
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the correct accordion than the alternate accordion but the score of the individual response from the alternate accordion overpowers the combined score of the correct accordion answers then on switching to the \'Grading view\', then points awarded should be of the alternate accordion, correct icons should be displayed for the alternate accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect status message should not be displayed and correct answer section with a preview of the entire grid with correct answers from the correct accordion should be displayed', () => {
|
252
|
+
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such that the difference between the points is substantial')
|
253
|
+
chartsLinePage.steps.switchToEditTab();
|
254
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
|
255
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 12, 1: 1, 2: 2, 3: 3, 4: 4 });
|
256
|
+
chartsLinePage.steps.expandCorrectAnswerAccordion();
|
257
|
+
chartsLinePage.steps.allotPartialDifferentWeightsPoints({ 0: 15, 1: 1, 2: 2, 3: 3, 4: 4 });
|
258
|
+
chartsLinePage.steps.switchToPreviewTab();
|
259
|
+
|
260
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
|
261
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
|
262
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
|
263
|
+
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
|
264
|
+
chartsLinePage.steps.verifyPreviewScore(13, 25);
|
265
|
+
chartsLinePage.steps.switchToGradingView();
|
266
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
|
267
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
|
268
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
|
269
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
|
270
|
+
chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
|
271
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
|
272
|
+
chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
|
273
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
|
274
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
|
275
|
+
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
276
|
+
chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
277
|
+
chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
278
|
+
});
|
279
|
+
});
|
280
|
+
});
|