itemengine-cypress-automation 1.0.225-activeDeadlineSecondsUpdated-34c7d0c.0 → 1.0.226-5thAugustFixes-cc6b557.0

Sign up to get free protection for your applications and to get access to all the features.
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 +1 -1
@@ -0,0 +1,282 @@
1
+ import { chartsLinePage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create Item page - Charts - Line: Manually and non scored', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Question Preview: Manually Scored', () => {
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: 6, range: 10 });
25
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
26
+ chartsLinePage.steps.expandScoringTypeDropdown();
27
+ chartsLinePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
28
+ chartsLinePage.steps.switchToPreviewTab();
29
+ });
30
+
31
+ it('Question instructions and default bar chart should be displayed in the preview tab', () => {
32
+ chartsLinePage.steps.verifyQuestionInstructionsTextPreviewTab('Set the points on the chart for the profits of the years');
33
+ chartsLinePage.steps.verifyPointHeightInPreviewTab({ pointIndex: 0, pointValue: 3, range: 10 });
34
+ chartsLinePage.steps.verifyPointHeightInPreviewTab({ pointIndex: 1, pointValue: 2, range: 10 });
35
+ chartsLinePage.steps.verifyPointHeightInPreviewTab({ pointIndex: 2, pointValue: 0, range: 10 });
36
+ chartsLinePage.steps.verifyPointHeightInPreviewTab({ pointIndex: 3, pointValue: 3, range: 10 });
37
+ chartsLinePage.steps.verifyPointHeightInPreviewTab({ pointIndex: 4, pointValue: 0, range: 10 });
38
+ });
39
+
40
+ chartsLinePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
41
+ });
42
+
43
+ describe('Question Preview: Non Scored', () => {
44
+ abortEarlySetup();
45
+ before(() => {
46
+ chartsLinePage.steps.navigateToCreateQuestion('charts');
47
+ cy.barsPreLoaderWait();
48
+ chartsLinePage.steps.selectLineButton();
49
+ chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the points on the chart for the profits of the years');
50
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
51
+ chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
52
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
53
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
54
+ chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
55
+ chartsLinePage.steps.lockPoint(1);
56
+ chartsLinePage.steps.allotPoints(20);
57
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
58
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
59
+ chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
60
+ chartsLinePage.steps.expandScoringTypeDropdown();
61
+ chartsLinePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
62
+ // chartsLinePage.steps.checkAllowStudentToCheckAnswerCheckbox();
63
+ chartsLinePage.steps.switchToPreviewTab();
64
+ });
65
+
66
+ chartsLinePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
67
+
68
+ //Need to remove skip once https://redmine.zeuslearning.com/issues/577535 , https://redmine.zeuslearning.com/issues/577716 is resolved
69
+ it.skip('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed for any bar, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
70
+ chartsLinePage.steps.switchToGradingView();
71
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(0);
72
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
73
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(2);
74
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(3);
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: 6, range: 10 });
79
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, 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 without attempting the question, then correct/incorrect status message should 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')
83
+ chartsLinePage.steps.checkAnswer();
84
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
85
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
86
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
87
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
88
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
89
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
90
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
91
+ });
92
+
93
+ // Fully incorrect case
94
+ it('When the user incorrectly sets a bar which was correct by default then on switching to grading view, correct/incorrect status message should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
95
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
96
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
97
+ chartsLinePage.steps.switchToGradingView();
98
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
99
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
100
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
101
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
102
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
103
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
104
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
105
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
106
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
107
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
108
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
109
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
110
+ /* cy.log('When the user selects check answer after incorrectly attempting the question, then correct/incorrect status message should be displayed, incorrect icons should be displayed on the incorrectly attempted bars')
111
+ chartsLinePage.steps.checkAnswer();
112
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
113
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
114
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
115
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
116
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
117
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
118
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
119
+ });
120
+
121
+ // Partially correct cases
122
+ it('When the user incorrectly sets a bar which was set to 0 and correct by default, and on switching to grading view correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
123
+ chartsLinePage.steps.resetQuestionPreview()
124
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 5, range: 10 });
125
+ chartsLinePage.steps.switchToGradingView();
126
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
127
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
128
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
129
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
130
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
131
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
132
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
133
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
134
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
135
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
136
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
137
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
138
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
139
+ chartsLinePage.steps.checkAnswer();
140
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
141
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
142
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
143
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
144
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
145
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
146
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
147
+ });
148
+
149
+ it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, and on switching to grading view correct/incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
150
+ chartsLinePage.steps.resetQuestionPreview()
151
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 2, range: 10 });
152
+ chartsLinePage.steps.switchToGradingView();
153
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
154
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
155
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
156
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
157
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
158
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
159
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
160
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
161
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
162
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
163
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
164
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
165
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
166
+ chartsLinePage.steps.checkAnswer();
167
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
168
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
169
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
170
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
171
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
172
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
173
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
174
+ });
175
+
176
+ it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, and on switching to grading view correct/incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
177
+ chartsLinePage.steps.resetQuestionPreview()
178
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 0, range: 10 });
179
+ chartsLinePage.steps.switchToGradingView();
180
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
181
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
182
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
183
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
184
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
185
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
186
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
187
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
188
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
189
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
190
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
191
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
192
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
193
+ chartsLinePage.steps.checkAnswer();
194
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
195
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
196
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
197
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
198
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
199
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
200
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
201
+ });
202
+
203
+ it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, and on switching to grading view correct/incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
204
+ chartsLinePage.steps.resetQuestionPreview()
205
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 9, range: 10 });
206
+ chartsLinePage.steps.switchToGradingView();
207
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
208
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
209
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
210
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
211
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
212
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
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: 6, range: 10 });
216
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
217
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
218
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
220
+ chartsLinePage.steps.checkAnswer();
221
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
222
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
223
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
224
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
225
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
226
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
227
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
228
+ });
229
+
230
+ it('When the user attempts the question partially correct by setting all bars correctly except 1 and on switching to grading view correct/incorrect status message should be displayed, correct icons should be displayed on the correctly attempted/set bars and incorrect icons should be displayed on the incorrectly attempted/set bars and correct answer section should be displayed with the correct answers', () => {
231
+ chartsLinePage.steps.resetQuestionPreview()
232
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
233
+ chartsLinePage.steps.switchToGradingView();
234
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
235
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
236
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
237
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
238
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
239
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
240
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
241
+ chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
242
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
243
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
244
+ chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
245
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
246
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars, incorrect icons should be displayed on the incorrectly attempted/set bars')
247
+ chartsLinePage.steps.checkAnswer();
248
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
249
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
250
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
251
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
252
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
253
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
254
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
255
+ });
256
+
257
+ // Fully correct
258
+ it('When the user attempts the question correctly and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted/set bars and the correct answer section graph should not be displayed', () => {
259
+ chartsLinePage.steps.resetQuestionPreview()
260
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 6, range: 10 });
261
+ chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
262
+ chartsLinePage.steps.switchToGradingView();
263
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
264
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
265
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
266
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
267
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
268
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
269
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
270
+ chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
+ /* cy.log('When the user selects check answer without attempting the question, then correct/incorrect status message should be displayed, correct icons should be displayed for correctly attempted/set bars')
272
+ chartsLinePage.steps.checkAnswer();
273
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
274
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
275
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
276
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
277
+ chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
278
+ chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
279
+ chartsLinePage.steps.verifyCorrectAnswerSectionNotExist(); */
280
+ });
281
+ });
282
+ });