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.
Files changed (141) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +9 -5
  2. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -6
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +2 -1
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -3
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
  10. package/cypress/e2e/ILC/ChartsBar/editTabScoringSection.js +2 -2
  11. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +3 -3
  12. package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +11 -10
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/addAndDeletePointAllOrNothingScoring.js +307 -0
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/manuallyAndNonScored.js +282 -0
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +387 -0
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +280 -0
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +280 -0
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +340 -0
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +255 -0
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +230 -0
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +354 -0
  22. package/cypress/e2e/ILC/ChartsLine/Scoring/toleranceThresholdScoring.js +143 -0
  23. package/cypress/e2e/ILC/ChartsLine/additionalSettings.js +4 -2
  24. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +2 -2
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +1 -2
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +5 -6
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  29. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -1
  30. package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +1 -0
  31. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +50 -126
  32. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +1 -1
  33. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +2 -2
  34. package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +8 -6
  35. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
  36. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +6 -7
  37. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -0
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/specifyCorrectAnswerSection.js +2 -1
  39. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +4 -3
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +6 -4
  41. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +2 -2
  42. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/specifyCorrectAnswerSection.js +2 -1
  43. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +2 -1
  44. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +3 -3
  45. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -1
  46. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
  47. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -1
  48. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  49. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
  50. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +10 -8
  51. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
  52. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
  53. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  54. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +3 -2
  55. package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -2
  56. package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +7 -5
  57. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +32 -21
  58. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +2 -2
  59. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  60. package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +4 -3
  61. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -1
  62. package/cypress/e2e/ILC/ImageHighlight/editTabScoring.js +1 -1
  63. package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +6 -6
  64. package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -6
  65. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +5 -3
  66. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/setPointsPopup.js +2 -1
  67. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
  68. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/studentViewSettings.js +2 -1
  69. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -1
  70. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -1
  71. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +1 -3
  72. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
  73. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
  74. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  75. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
  76. package/cypress/e2e/ILC/MultipleSelectionGridNew/additionalSettings.js +4 -2
  77. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +4 -3
  78. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +2 -2
  79. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  80. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  81. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +2 -2
  82. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +11 -11
  83. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +5 -5
  84. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
  85. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +3 -3
  86. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +15 -15
  87. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +7 -7
  88. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +2 -2
  89. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +14 -14
  90. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +3 -3
  91. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  92. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +17 -2
  93. package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +8 -8
  94. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +15 -28
  95. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +4 -4
  96. package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +5 -5
  97. package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +4 -2
  98. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +28 -42
  99. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +5 -5
  100. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +6 -4
  101. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +2 -1
  102. package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  103. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +113 -112
  104. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  105. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +66 -65
  106. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +1 -0
  107. package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -4
  108. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +2 -1
  109. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +2 -1
  110. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsStandardRecorderStyle.js +3 -2
  111. package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +4 -2
  112. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
  113. package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
  114. package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +4 -4
  115. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -3
  116. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -1
  117. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -1
  118. package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +4 -3
  119. package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
  120. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +14 -7
  121. package/cypress/pages/audioResponsePage.js +14 -2
  122. package/cypress/pages/chartsDotPlotPage.js +28 -1
  123. package/cypress/pages/chartsLinePage.js +16 -3
  124. package/cypress/pages/components/additionalSettingsPanel.js +0 -3
  125. package/cypress/pages/components/chartsCommonComponent.js +5 -1
  126. package/cypress/pages/components/createCustomCategoryFlyout.js +47 -12
  127. package/cypress/pages/components/customizeMathCharacterComponent.js +1 -1
  128. package/cypress/pages/components/equationEditorFlyout.js +12 -13
  129. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
  130. package/cypress/pages/components/playbackControlsBaseComponent.js +1 -1
  131. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  132. package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -2
  133. package/cypress/pages/essayResponseMathPage.js +19 -10
  134. package/cypress/pages/essayResponsePage.js +16 -10
  135. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +9 -5
  136. package/cypress/pages/imageHighlightPage.js +46 -29
  137. package/cypress/pages/matchingPage.js +1 -1
  138. package/cypress/pages/numberLineLabelPage.js +25 -28
  139. package/cypress/pages/numberLinePage.js +9 -2
  140. package/cypress/pages/shortTextResponsePage.js +33 -9
  141. package/package.json +2 -2
@@ -0,0 +1,230 @@
1
+ import { chartsLinePage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+
5
+ describe('Create item page - Charts - Line: Partial equal weights scoring with alternative answer - When Correct answer points are equal to alternative Answer points', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question Preview: AutoScored - Partial equal weights with alternative answer: When Correct Answer points are equal to alternative Answer points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ chartsLinePage.steps.navigateToCreateQuestion('charts');
14
+ cy.barsPreLoaderWait();
15
+ chartsLinePage.steps.selectLineButton();
16
+ chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the points on the chart for the profits of the years');
17
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
18
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
19
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
20
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
21
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
22
+ chartsLinePage.steps.lockPoint(1);
23
+ chartsLinePage.steps.allotPoints(20);
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.allotPoints(20);
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.selectAutoScoredScoringSubtype('Partial equal weights');
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, 20);
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, correct/incorrect status message should not be displayed, 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(4, 20);
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, correct/incorrect status message should not be displayed 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(20, 20);
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, correct/incorrect status message should not be displayed 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(20, 20);
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
+
109
+ 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', () => {
110
+ chartsLinePage.steps.resetQuestionPreview();
111
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
112
+ chartsLinePage.steps.verifyPreviewScore(16, 20);
113
+ chartsLinePage.steps.switchToGradingView();
114
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
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: 4, range: 10 });
131
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
132
+ chartsLinePage.steps.verifyPreviewScore(16, 20);
133
+ chartsLinePage.steps.switchToGradingView();
134
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
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(12, 20);
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(12, 20);
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 the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, 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: 0, value: 1, range: 10 });
190
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
191
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
192
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
193
+ chartsLinePage.steps.switchToGradingView();
194
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
195
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
196
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
197
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
198
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
199
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
200
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
201
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
202
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
203
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
204
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
205
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
206
+ });
207
+
208
+ 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, correct 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', () => {
209
+ chartsLinePage.steps.resetQuestionPreview();
210
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
211
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
212
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
213
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
214
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
215
+ chartsLinePage.steps.switchToGradingView();
216
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
217
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
218
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
219
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
220
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
221
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
222
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
223
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
224
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
225
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
226
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
227
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
228
+ });
229
+ });
230
+ });
@@ -0,0 +1,354 @@
1
+ import { chartsLinePage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Charts - Line: Partial equal 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 equal 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 points 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.allotPoints(20);
23
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
24
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
25
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
26
+ chartsLinePage.steps.addAlternativeAnswerAccordion(1);
27
+ chartsLinePage.steps.allotPoints(10);
28
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
29
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
30
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 4, value: 6, range: 10 });
31
+ chartsLinePage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
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, 20);
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
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the unattempted bars and correct icons should be displayed on the bar which is correct by default')
53
+ chartsLinePage.steps.checkAnswer();
54
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
55
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
56
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
57
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
58
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
59
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
60
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
61
+ });
62
+
63
+ 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, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
64
+ chartsLinePage.steps.resetQuestionPreview();
65
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
66
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
67
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
68
+ chartsLinePage.steps.verifyPreviewScore(4, 20);
69
+ chartsLinePage.steps.switchToGradingView();
70
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
71
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
72
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
73
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
74
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
75
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
76
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
77
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
78
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
79
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
80
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
81
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
82
+ /* cy.log('When the user selects check answer after incorrectly attempting the question, then correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrectly attempted bars')
83
+ chartsLinePage.steps.checkAnswer();
84
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
85
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
86
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
87
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
88
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
89
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
90
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
91
+ });
92
+
93
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
94
+ chartsLinePage.steps.resetQuestionPreview();
95
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
96
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
97
+ chartsLinePage.steps.verifyPreviewScore(20, 20);
98
+ chartsLinePage.steps.switchToGradingView();
99
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
100
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
101
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
102
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
103
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
104
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
105
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
106
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
107
+ /* cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
108
+ chartsLinePage.steps.checkAnswer();
109
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
110
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
111
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
112
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
113
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
114
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
115
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
116
+ });
117
+
118
+ 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, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
119
+ chartsLinePage.steps.resetQuestionPreview();
120
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
121
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
122
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
123
+ chartsLinePage.steps.verifyPreviewScore(10, 20);
124
+ chartsLinePage.steps.switchToGradingView();
125
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
126
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
127
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
128
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
129
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
130
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
131
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
132
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
133
+ /* cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
134
+ chartsLinePage.steps.checkAnswer();
135
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
136
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
137
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
138
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
139
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
140
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
141
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
142
+ });
143
+
144
+ 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', () => {
145
+ chartsLinePage.steps.resetQuestionPreview();
146
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
147
+ chartsLinePage.steps.verifyPreviewScore(16, 20);
148
+ chartsLinePage.steps.switchToGradingView();
149
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
150
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
151
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
152
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
153
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
154
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
155
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
156
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
157
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
158
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
159
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
160
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
161
+ /* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed')
162
+ chartsLinePage.steps.checkAnswer();
163
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
164
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
165
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
166
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
167
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
168
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
169
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
170
+ });
171
+
172
+ 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', () => {
173
+ chartsLinePage.steps.resetQuestionPreview();
174
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
175
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
176
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
177
+ chartsLinePage.steps.switchToGradingView();
178
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
179
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
180
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
181
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
182
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
183
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
184
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
185
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
186
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
187
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
188
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
189
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
190
+ /* cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then 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 not be displayed')
191
+ chartsLinePage.steps.checkAnswer();
192
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
193
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
194
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
195
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
196
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
197
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
198
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
199
+ });
200
+
201
+ 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', () => {
202
+ chartsLinePage.steps.resetQuestionPreview();
203
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
204
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
205
+ chartsLinePage.steps.verifyPreviewScore(12, 20);
206
+ chartsLinePage.steps.switchToGradingView();
207
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
208
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
209
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
210
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
211
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
212
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
213
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
214
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
215
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
216
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
217
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
218
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
+ /* cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then 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 not be displayed')
220
+ chartsLinePage.steps.checkAnswer();
221
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
222
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
223
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
224
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
225
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
226
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
227
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
228
+ });
229
+
230
+ 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 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', () => {
231
+ chartsLinePage.steps.resetQuestionPreview();
232
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 4, range: 10 });
233
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
234
+ chartsLinePage.steps.switchToGradingView();
235
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
236
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
237
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
238
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
239
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
240
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
241
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
242
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
243
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
244
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
245
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
246
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
247
+ /* cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then 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 not be displayed')
248
+ chartsLinePage.steps.checkAnswer();
249
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
250
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
251
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
252
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
253
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
254
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
255
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
256
+ });
257
+
258
+ it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
259
+ chartsLinePage.steps.resetQuestionPreview();
260
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
261
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 10 });
262
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
263
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
264
+ chartsLinePage.steps.switchToGradingView();
265
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
266
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
267
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
268
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
269
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
270
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
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.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
277
+ /* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses correct/incorrect status message should not be displayed and correct answer section should not be displayed')
278
+ chartsLinePage.steps.checkAnswer();
279
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
280
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
281
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
282
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
283
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
284
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
285
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
286
+ });
287
+
288
+ 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, correct 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', () => {
289
+ chartsLinePage.steps.resetQuestionPreview();
290
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
291
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 1, range: 10 });
292
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 4, range: 10 });
293
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 1, range: 10 });
294
+ chartsLinePage.steps.verifyPreviewScore(8, 20);
295
+ chartsLinePage.steps.switchToGradingView();
296
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
297
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
298
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
299
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
300
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
301
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
302
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
303
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
304
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
305
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
306
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
307
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
308
+ /* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then 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 not be displayed')
309
+ chartsLinePage.steps.checkAnswer();
310
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
311
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
312
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
313
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
314
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
315
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
316
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
317
+ });
318
+
319
+ it('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response from the correct accordion overpowers the combined score of the alternative accordion answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative 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', () => {
320
+ 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')
321
+ chartsLinePage.steps.switchToEditTab();
322
+ chartsLinePage.steps.allotPoints(10);
323
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 8, range: 10 });
324
+ chartsLinePage.steps.expandCorrectAnswerAccordion();
325
+ chartsLinePage.steps.allotPoints(50);
326
+ chartsLinePage.steps.switchToPreviewTab();
327
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 8, range: 10 });
328
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 6, range: 10 });
329
+ chartsLinePage.steps.verifyPreviewScore(12.5, 50);
330
+ chartsLinePage.steps.switchToGradingView();
331
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
332
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
333
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
334
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
335
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
336
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
337
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
338
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 10 });
339
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 4, range: 10 });
340
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
341
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
342
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
343
+ /* cy.log('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on \'Check answer\' button, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect status message and correct answer section should not be displayed')
344
+ chartsLinePage.steps.checkAnswer();
345
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
346
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
347
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
348
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
349
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
350
+ chartsLinePage.steps.verifyCorrectIncorrectStatusMessageNotExists();
351
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
352
+ });
353
+ });
354
+ });