itemengine-cypress-automation 1.0.198 → 1.0.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +3 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +348 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +346 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +401 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingPenaltyScoring.js +53 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +251 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +251 -0
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
  10. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  11. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +367 -0
  12. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +3 -3
  13. package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +134 -0
  14. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +88 -0
  15. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
  16. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +3 -3
  17. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
  18. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -0
  19. package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
  20. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +3 -3
  21. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +1 -1
  22. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +5 -5
  23. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  24. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  25. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  26. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
  27. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +4 -4
  28. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
  29. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +4 -4
  30. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +4 -4
  31. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +4 -4
  32. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
  33. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -16
  34. package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
  35. package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +223 -0
  36. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +110 -0
  37. package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +199 -0
  38. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +375 -0
  39. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +382 -0
  40. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +422 -0
  41. package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +159 -0
  42. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +233 -0
  43. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +380 -0
  44. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +293 -0
  45. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +382 -0
  46. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +184 -0
  47. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +76 -0
  48. package/cypress/pages/chartsBarPage.js +23 -15
  49. package/cypress/pages/chartsDotPlotPage.js +130 -7
  50. package/cypress/pages/chartsLinePage.js +11 -11
  51. package/cypress/pages/compassPage.js +57 -0
  52. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  53. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  54. package/cypress/pages/components/barAndLineChartComponent.js +7 -7
  55. package/cypress/pages/components/chartsCommonComponent.js +55 -7
  56. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  57. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  58. package/cypress/pages/components/questionInputFieldComponent.js +2 -2
  59. package/cypress/pages/feedbackScalePage.js +3 -1
  60. package/cypress/pages/graphingPage.js +1 -1
  61. package/cypress/pages/imageHighlightPage.js +4 -434
  62. package/cypress/pages/index.js +2 -1
  63. package/cypress/pages/listOrderingPage.js +9 -9
  64. package/cypress/pages/textEntryMathPage.js +16 -16
  65. package/package.json +1 -1
@@ -0,0 +1,233 @@
1
+ import { chartsDotPlotPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Charts - Dot plot: Partial equal weights', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe(`Charts - Dot plot: Partial equal weights scoring`, () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
13
+ cy.barsPreLoaderWait();
14
+ chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
15
+ chartsDotPlotPage.steps.selectDotPlot();
16
+ chartsDotPlotPage.steps.enterTextInMinInputField(1);
17
+ chartsDotPlotPage.steps.enterTextInMaxInputField(5);
18
+ chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
19
+ chartsDotPlotPage.steps.setXAxisLabel('Days');
20
+ chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
21
+ chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(1);
22
+ //locked column
23
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
24
+ chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
25
+ //adding more dots
26
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
27
+ //adding equal dots
28
+ chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
29
+ chartsDotPlotPage.steps.allotPoints(30);
30
+ //adding more dots
31
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
32
+ //adding equal dots
33
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
34
+ //exclusive to specify correct answer
35
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
36
+ chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
37
+ chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
38
+ chartsDotPlotPage.steps.switchToPreviewTab();
39
+ });
40
+
41
+ it('When the user selects \'Grading\' view without attempting the question, then correct icon should be displayed in dot column set correctly by default, incorrect icon should be displayed in dot column set to incorrectly by default, correct answer should be displayed in the correct answer section and correct/incorrect status message should not be displayed', () => {
42
+ chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
43
+ chartsDotPlotPage.steps.switchToGradingView();
44
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
45
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
46
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
47
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
48
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
49
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
50
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
51
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
52
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
53
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
54
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
55
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
56
+
57
+ cy.log('When the user selects \'check answer button\' button without attempting the question, the correct answer section should be not displayed')
58
+ chartsDotPlotPage.steps.checkAnswer();
59
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
60
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
61
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
62
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
63
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
64
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
65
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
66
+ });
67
+
68
+ it('When the user attempts the question incorrectly then the user should be awarded points only for locked and on switching to grading view incorrect icon should be displayed in dot column attempted incorrectly and the correct answer should be displayed in the correct answer section chart dot plot and correct/incorrect status message should not be displayed', () => {
69
+ chartsDotPlotPage.steps.resetQuestionPreview();
70
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1 });
71
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 })
72
+ chartsDotPlotPage.steps.verifyPreviewScore(6, 30);
73
+ chartsDotPlotPage.steps.switchToGradingView();
74
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
75
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
76
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
77
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
78
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
79
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
80
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
81
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
82
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
83
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
84
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
85
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
86
+ cy.log('When the user attempts the question incorrectly then the user should be awarded points only for locked and on selecting check answer button, incorrect icon should be displayed in dot column attempted incorrectly and correct/incorrect status message should not be displayed');
87
+ chartsDotPlotPage.steps.checkAnswer();
88
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
89
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
90
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
91
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
92
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
93
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
94
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
95
+ });
96
+
97
+ it('When the user attempts the question by setting more dots than required in the dot columns having dots by default, then the user should be awarded points for the correctly set/attempted dot column and on switching to grading view, incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and the correct answers should be displayed in the correct answer section dot plot chart and correct/incorrect status message should not be displayed', () => {
98
+ chartsDotPlotPage.steps.resetQuestionPreview();
99
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1 });
100
+ chartsDotPlotPage.steps.verifyPreviewScore(18, 30);
101
+ chartsDotPlotPage.steps.switchToGradingView();
102
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
103
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
104
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
105
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
106
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
107
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
108
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
109
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
110
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
111
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
112
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
113
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
+ cy.log('When the user attempts the question by setting more dots than required in the dot columns having dots by default and clicks on check answer button then incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and correct/incorrect status message should not be displayed')
115
+ chartsDotPlotPage.steps.checkAnswer();
116
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
117
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
118
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
119
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
120
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
121
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
122
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
123
+ });
124
+
125
+ it('When the user attempts the question by removing all the dots from the dot column that is not supposed to be empty, then the user should be awarded points for the correctly set/attempted dot column and on switching to grading view, incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and the the correct answers should be displayed in the correct answer section dot chart plot and correct/incorrect status message should not be displayed', () => {
126
+ chartsDotPlotPage.steps.resetQuestionPreview();
127
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
128
+ chartsDotPlotPage.steps.verifyPreviewScore(18, 30);
129
+ chartsDotPlotPage.steps.switchToGradingView();
130
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
131
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
132
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
133
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
134
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
135
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
136
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
137
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
138
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
139
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
140
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
141
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
142
+ cy.log('When the user attempts the question by removing all the dots from the dot column that is not supposed to be empty, then the user should be awarded with points of the correct response and clicks on check answer button then incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and correct/incorrect status message should not be displayed')
143
+ chartsDotPlotPage.steps.checkAnswer();
144
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
145
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
146
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
147
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
148
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
149
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
150
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
151
+ });
152
+
153
+ it('When the user attempts the question by setting dots incorrectly in the dot column that is empty and correct by default, then the user should be awarded points for the correctly set/attempted dot column and on switching to grading view, incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and the correct answers should be displayed in the correct answer section dot chart plot and correct/incorrect status message should not be displayed', () => {
154
+ chartsDotPlotPage.steps.resetQuestionPreview();
155
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
156
+ chartsDotPlotPage.steps.verifyPreviewScore(12, 30);
157
+ chartsDotPlotPage.steps.switchToGradingView();
158
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
159
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
160
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
161
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
162
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
163
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
164
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
165
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
166
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
167
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
168
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
169
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
170
+ cy.log('When the user attempts the question by adding dots to the dot columns that is supposed to be empty, then the user should be awarded with points of the correctly response and clicks on check answer button then incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and correct/incorrect status message should not be displayed');
171
+ chartsDotPlotPage.steps.checkAnswer();
172
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
173
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
174
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
175
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
176
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
177
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
178
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
179
+ });
180
+
181
+ it('When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting correct number of dots in dot column which was empty by default, then the user should be awarded points for the correctly set/attempted dot column and on switching to grading view, incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and the the correct answers should be displayed in the correct answer section dot chart plot and correct/incorrect status message should not be displayed', () => {
182
+ chartsDotPlotPage.steps.resetQuestionPreview();
183
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1 });
184
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
185
+ chartsDotPlotPage.steps.verifyPreviewScore(18, 30);
186
+ chartsDotPlotPage.steps.switchToGradingView();
187
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
188
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
189
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
190
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
191
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
192
+ chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
193
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
194
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
195
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
196
+ chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
197
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
198
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
199
+ cy.log('When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default, and clicks on check answer button then incorrect icon should be displayed in incorrectly attempted dot column, correct icon should be displayed in correctly attempted dot column and correct/incorrect status message should not be displayed');
200
+ chartsDotPlotPage.steps.checkAnswer();
201
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
202
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
203
+ chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
204
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
205
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
206
+ chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
207
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
208
+ });
209
+
210
+ it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view then correct icon should be displayed in correctly attempted dot column and the correct answer section should not be displayed and correct/incorrect status message should not be displayed', () => {
211
+ chartsDotPlotPage.steps.resetQuestionPreview();
212
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
213
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
214
+ chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
215
+ chartsDotPlotPage.steps.switchToGradingView();
216
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
217
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
218
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
219
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
220
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
221
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
222
+ chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
223
+ cy.log('When the user attempts the question correctly then the user should be awarded with full points and on selecting check answer button then correct icon should be displayed in correctly attempted dot column and correct/incorrect status message should not be displayed')
224
+ chartsDotPlotPage.steps.checkAnswer();
225
+ chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
228
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
229
+ chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
230
+ chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
231
+ });
232
+ });
233
+ });