itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.0 → 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -205
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -205
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -248
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -247
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -223
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -175
  9. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
  10. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -191
  11. package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -184
  12. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -177
  13. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -206
  14. package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
  15. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -228
  16. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -229
  17. package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -229
  18. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -206
  19. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -183
  20. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -206
  21. package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -184
  22. package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
  23. package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
  24. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +13 -0
  25. package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
  26. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +117 -4
  27. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +101 -4
  28. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
  29. package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +12 -2
  30. package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +38 -3
  31. package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +41 -23
  32. package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +78 -3
  33. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +15 -0
  34. package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
  35. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +10 -164
  36. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +11 -165
  37. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +11 -165
  38. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -164
  39. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
  40. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -167
  41. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +15 -178
  42. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
  43. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +13 -165
  44. package/cypress/pages/chartsBarPage.js +1 -44
  45. package/cypress/pages/chartsDotPlotPage.js +1 -99
  46. package/cypress/pages/chartsLinePage.js +1 -48
  47. package/cypress/pages/components/equationEditorSectionCommonComponent.js +20 -0
  48. package/cypress/pages/components/essayResponseCommonComponents.js +29 -1
  49. package/cypress/pages/essayResponsePage.js +3 -1
  50. package/package.json +1 -1
@@ -1,8 +1,6 @@
1
1
  import { chartsDotPlotPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
 
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
-
6
4
  describe('Create item page - Charts - Dot plot : All or nothing with alternative answers', () => {
7
5
  before(() => {
8
6
  cy.loginAs('admin');
@@ -26,12 +24,12 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
26
24
  chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
27
25
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
28
26
  chartsDotPlotPage.steps.allotPoints(12);
29
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
27
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
30
28
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
31
29
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
32
30
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
33
31
  chartsDotPlotPage.steps.allotPoints(30);
34
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
32
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
35
33
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
36
34
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
37
35
  //chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
@@ -70,8 +68,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
70
68
 
71
69
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion in attempted dot plot chart, correct answer section should not be displayed and a status message with text \'Your answer is correct\' should be displayed above the question preview', () => {
72
70
  chartsDotPlotPage.steps.resetQuestionPreview();
73
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 1, min: 1, interval: 1, defaultDots: 1 });
74
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
75
71
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
76
72
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
77
73
  chartsDotPlotPage.steps.verifyPreviewScore(12, 30);
@@ -83,9 +79,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
83
79
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
84
80
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
85
81
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
86
- if (alternativeAnswerCheck === 'true') {
87
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
88
- }
89
82
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
90
83
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
91
84
  /*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 in responses from correct accordion, a status message with text \'Your answer is correct\' should be displayed above the question preview')
@@ -102,7 +95,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
102
95
 
103
96
  it('When the user attempts the question with alternative accordion response, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed in responses from alternative accordion in dot column grid, correct answer section should be displayed with responses from alternate accordion and a status message with text \'Your answer is correct\' should be displayed', () => {
104
97
  chartsDotPlotPage.steps.resetQuestionPreview();
105
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
98
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
106
99
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
107
100
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
108
101
  chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
@@ -114,9 +107,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
114
107
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
115
108
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
116
109
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
117
- if (alternativeAnswerCheck === 'true') {
118
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
119
- }
120
110
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
121
111
  /*cy.log('When the user has attempted the question with alternative accordion dot column and clicks on \'Check answer\' button, then correct icon should be displayed in responses from alternative accordion, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
122
112
  chartsDotPlotPage.steps.checkAnswer();
@@ -131,7 +121,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
131
121
 
132
122
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted/set from correct accordion , correct answer section should be displayed with responses from alternate accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
133
123
  chartsDotPlotPage.steps.resetQuestionPreview();
134
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
124
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
135
125
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
136
126
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
137
127
  chartsDotPlotPage.steps.switchToGradingView();
@@ -148,24 +138,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
148
138
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
149
139
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
150
140
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
151
- if (alternativeAnswerCheck === 'true') {
152
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
153
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
154
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
155
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
156
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
157
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
158
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
159
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
160
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
161
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
162
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
163
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
164
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
165
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
166
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
167
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
168
- }
169
141
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
170
142
  /*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 in the responses from correct accordion, no icon/border should be displayed for unselected responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed')
171
143
  chartsDotPlotPage.steps.checkAnswer();
@@ -180,7 +152,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
180
152
 
181
153
  it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column from alternate accordion and incorrect icon should be displayed in dot column set incorrectly and correct answer section should be displayed with responses from alternate accordion, a status message with text \'Your answer is incorrect\' should be displayed', () => {
182
154
  chartsDotPlotPage.steps.resetQuestionPreview();
183
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
155
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
184
156
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
185
157
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
186
158
  chartsDotPlotPage.steps.switchToGradingView();
@@ -197,24 +169,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
197
169
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
198
170
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
199
171
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
200
- if (alternativeAnswerCheck === 'true') {
201
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
202
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
203
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
204
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
205
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
206
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
207
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
208
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
209
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
210
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
211
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
212
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
213
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
214
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
215
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
216
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
217
- }
218
172
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
219
173
  /*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 in the dot column from alternate accordion and incorrect icon should be displayed in dot column set incorrectly, a status message with text \'Your answer is incorrect\' should be displayed');
220
174
  chartsDotPlotPage.steps.checkAnswer();
@@ -229,7 +183,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
229
183
 
230
184
  it('When the user attempts the question partially correct with all the responses correct as per the correct accordion but one dot column incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column from the correct accordion, incorrect icon should be displayed in the responses from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion', () => {
231
185
  chartsDotPlotPage.steps.resetQuestionPreview();
232
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
186
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
233
187
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
234
188
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
235
189
  chartsDotPlotPage.steps.switchToGradingView();
@@ -246,24 +200,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
246
200
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
247
201
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
248
202
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
249
- if (alternativeAnswerCheck === 'true') {
250
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
251
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
252
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
253
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
254
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
255
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
256
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
257
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
258
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
259
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
260
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
261
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
262
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
263
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
264
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
265
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
266
- }
267
203
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
268
204
  /*cy.log('When the user has attempted the question with partially correct with all the dot column correct as per the alternative accordion but one dot column unselected and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column from the correct accordion, incorrect icon should be displayed in the responses from the alternative accordion and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed');
269
205
  chartsDotPlotPage.steps.checkAnswer();
@@ -295,24 +231,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
295
231
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
296
232
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
297
233
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
298
- if (alternativeAnswerCheck === 'true') {
299
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
300
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
301
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
302
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
303
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
304
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
305
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
306
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
307
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
308
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
309
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
310
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
311
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
312
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
313
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
314
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
315
- }
316
234
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
317
235
  /*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 in the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
318
236
  chartsDotPlotPage.steps.checkAnswer();
@@ -328,7 +246,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
328
246
 
329
247
  it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the alternate accordion', () => {
330
248
  chartsDotPlotPage.steps.resetQuestionPreview();
331
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
249
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
332
250
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
333
251
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
334
252
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
@@ -346,24 +264,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
346
264
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
347
265
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
348
266
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
349
- if (alternativeAnswerCheck === 'true') {
350
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
351
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
352
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
353
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
354
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
355
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
356
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
357
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
358
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
359
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
360
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
361
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
362
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
363
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
364
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
365
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
366
- }
367
267
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
368
268
  /*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 in the alternate accordion responses, incorrect icons should be displayed on the correct accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
369
269
  chartsDotPlotPage.steps.checkAnswer();
@@ -379,7 +279,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
379
279
 
380
280
  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 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column from alternate accordion, incorrect icon should be displayed in the dot column from accordion accordion, correct answer section should be displayed with responses from alternate accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
381
281
  chartsDotPlotPage.steps.resetQuestionPreview();
382
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
282
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
383
283
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
384
284
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
385
285
  chartsDotPlotPage.steps.switchToGradingView();
@@ -396,24 +296,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
396
296
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
397
297
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
398
298
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
399
- if (alternativeAnswerCheck === 'true') {
400
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
401
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
402
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
403
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
404
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
405
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
406
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
407
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
408
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
409
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
410
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
411
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
412
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
413
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
414
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
415
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
416
- }
417
299
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
418
300
  /*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 in the dot column from correct answer accordion, incorrect icon should be displayed in the dot column from alternative answer accordion and a status message with text \'Your answer is incorrect\' should be displayed')
419
301
  chartsDotPlotPage.steps.checkAnswer();
@@ -429,7 +311,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
429
311
  it('Race condition : When the user attempts the question with the common dot column between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be in the attempted common dot column and incorrect icon should be displayed in dot column set incorrectly, correct answer section should be displayed with responses from alternate accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
430
312
  chartsDotPlotPage.steps.resetQuestionPreview();
431
313
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
432
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
314
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
433
315
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
434
316
  chartsDotPlotPage.steps.switchToGradingView();
435
317
  chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -445,24 +327,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
445
327
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
446
328
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
447
329
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
448
- if (alternativeAnswerCheck === 'true') {
449
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
450
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
451
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
452
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
453
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
454
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
455
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
456
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
457
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
458
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
459
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
460
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
461
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
462
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
463
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
464
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
465
- }
466
330
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
467
331
  /*cy.log('When the user has attempted the question with common dot column between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be in the attempted common dot column and incorrect icon should be displayed in dot column set incorrectly and a status message with text \'Your answer is incorrect\' should be displayed')
468
332
  chartsDotPlotPage.steps.checkAnswer();
@@ -478,7 +342,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
478
342
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in incorrect dot column in dot column grid, correct answer section should be displayed with responses from alternate accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
479
343
  chartsDotPlotPage.steps.resetQuestionPreview();
480
344
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
481
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
345
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
482
346
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
483
347
  chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
484
348
  chartsDotPlotPage.steps.switchToGradingView();
@@ -495,24 +359,6 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
495
359
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
496
360
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
497
361
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
498
- if (alternativeAnswerCheck === 'true') {
499
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
500
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
501
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
502
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
503
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
504
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
505
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
506
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(12 points)');
507
- chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
508
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
509
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
510
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
511
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
512
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
513
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
514
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
515
- }
516
362
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
517
363
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in incorrect responses and status message with text \'Your answer is incorrect\' should be displayed')
518
364
  chartsDotPlotPage.steps.checkAnswer();