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
@@ -2,8 +2,6 @@ import { chartsDotPlotPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
4
 
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
6
-
7
5
  describe('Create item page - Charts - Dot plot: Partial different with alternative answers', () => {
8
6
  before(() => {
9
7
  cy.loginAs('admin');
@@ -24,14 +22,14 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
24
22
  chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
25
23
  chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
26
24
  chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 4, 2: 5, 3: 2, 4: 3, 5: 3 });
27
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
28
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
25
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
26
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
29
27
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
30
28
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
31
29
  chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
32
30
  chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 3, 2: 3, 3: 1, 4: 2, 5: 2 });
33
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
34
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
31
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
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();
@@ -72,8 +70,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
72
70
 
73
71
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
74
72
  chartsDotPlotPage.steps.resetQuestionPreview();
75
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
76
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
77
73
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
78
74
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
79
75
  chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
@@ -86,9 +82,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
86
82
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
87
83
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
88
84
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
89
- if (alternativeAnswerCheck === 'true') {
90
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
91
- }
92
85
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
93
86
  /*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 dot column attempted correctly, a status message and correct answer section should not be displayed')
94
87
  chartsDotPlotPage.steps.checkAnswer();
@@ -104,8 +97,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
104
97
 
105
98
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
106
99
  chartsDotPlotPage.steps.resetQuestionPreview();
107
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
108
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
100
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
109
101
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
110
102
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
111
103
  chartsDotPlotPage.steps.verifyPreviewScore(13, 20);
@@ -118,9 +110,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
118
110
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
119
111
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
120
112
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
121
- if (alternativeAnswerCheck === 'true') {
122
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
123
- }
124
113
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
125
114
  /*(cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed')
126
115
  chartsDotPlotPage.steps.checkAnswer();
@@ -136,8 +125,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
136
125
 
137
126
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
138
127
  chartsDotPlotPage.steps.resetQuestionPreview();
139
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
140
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
128
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
141
129
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
142
130
  chartsDotPlotPage.steps.verifyPreviewScore(15, 20);
143
131
  chartsDotPlotPage.steps.switchToGradingView();
@@ -156,25 +144,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
156
144
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
157
145
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
158
146
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
159
- //alternative answer
160
- if (alternativeAnswerCheck === 'true') {
161
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
162
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
163
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
164
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
165
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
166
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
167
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
168
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
169
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
170
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
171
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
172
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
173
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
174
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
175
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
176
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
177
- }
178
147
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
179
148
  /*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 dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
180
149
  chartsDotPlotPage.steps.checkAnswer();
@@ -190,8 +159,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
190
159
 
191
160
  it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
192
161
  chartsDotPlotPage.steps.resetQuestionPreview();
193
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
194
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
162
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
195
163
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
196
164
  chartsDotPlotPage.steps.verifyPreviewScore(10, 20);
197
165
  chartsDotPlotPage.steps.switchToGradingView();
@@ -210,25 +178,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
210
178
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
211
179
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
212
180
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
213
- //alternative answer
214
- if (alternativeAnswerCheck === 'true') {
215
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
216
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
217
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
218
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
219
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
220
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
221
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
222
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
223
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
224
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
225
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
226
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
227
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
228
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
229
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
230
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
231
- }
232
181
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
233
182
  /*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 dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
234
183
  chartsDotPlotPage.steps.checkAnswer();
@@ -244,8 +193,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
244
193
 
245
194
  it('When the user attempts the question partially correct with all the responses correct as per the alternate accordion but one response incomplete, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column attempted from alternate accordion and a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
246
195
  chartsDotPlotPage.steps.resetQuestionPreview();
247
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
248
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
196
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
249
197
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
250
198
  chartsDotPlotPage.steps.verifyPreviewScore(14, 20);
251
199
  chartsDotPlotPage.steps.switchToGradingView();
@@ -264,25 +212,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
264
212
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
265
213
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
266
214
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
267
- //alternative answer
268
- if (alternativeAnswerCheck === 'true') {
269
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
270
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
271
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
272
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
273
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
274
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
275
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
276
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
277
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
278
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
279
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
280
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
281
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
282
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
283
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
284
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
285
- }
286
215
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
287
216
  /*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete 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 dot column from the alternative accordion and, a status message should not be displayed and correct answer section should not be displayed')
288
217
  chartsDotPlotPage.steps.checkAnswer();
@@ -298,8 +227,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
298
227
 
299
228
  it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column attempted from the alternative accordion as score achieved from the correct responses is more than alternate responses, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
300
229
  chartsDotPlotPage.steps.resetQuestionPreview();
301
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
302
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
230
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
303
231
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
304
232
  chartsDotPlotPage.steps.verifyPreviewScore(10, 20);
305
233
  chartsDotPlotPage.steps.switchToGradingView();
@@ -318,25 +246,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
318
246
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
319
247
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
320
248
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
321
- //alternative answer
322
- if (alternativeAnswerCheck === 'true') {
323
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
324
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
325
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
326
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
327
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
328
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
329
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
330
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
331
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
332
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
333
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
334
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
335
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
336
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
337
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
338
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
339
- }
340
249
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
341
250
  /*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 dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly from the alternative accordion, a status message should not be displayed and correct answer section should not be displayed')
342
251
  chartsDotPlotPage.steps.checkAnswer();
@@ -352,9 +261,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
352
261
 
353
262
  it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
354
263
  chartsDotPlotPage.steps.resetQuestionPreview();
355
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
356
264
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
357
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
265
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
358
266
  chartsDotPlotPage.steps.verifyPreviewScore(14, 20);
359
267
  chartsDotPlotPage.steps.switchToGradingView();
360
268
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
@@ -371,25 +279,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
371
279
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
372
280
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
373
281
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
374
- //alternative answer
375
- if (alternativeAnswerCheck === 'true') {
376
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
377
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
378
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
379
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
380
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
381
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
382
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
383
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
384
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
385
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
386
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
387
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
388
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
389
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
390
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
391
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
392
- }
393
282
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
394
283
  /*cy.log('When the user has attempted the question with common response of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
395
284
  chartsDotPlotPage.steps.checkAnswer();
@@ -405,8 +294,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
405
294
 
406
295
  it('When the user attempts the question incorrectly, then the user should be awarded points for correct dot column and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted incorrectly, a status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
407
296
  chartsDotPlotPage.steps.resetQuestionPreview();
408
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
409
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
297
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
410
298
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
411
299
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
412
300
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
@@ -426,25 +314,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
426
314
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
427
315
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
428
316
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
429
- //alternative answer
430
- if (alternativeAnswerCheck === 'true') {
431
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
432
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
433
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
434
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
435
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
436
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
437
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
438
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
439
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
440
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
441
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
442
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
443
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
444
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
445
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
446
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
447
- }
448
317
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
449
318
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed in dot column attempted incorrectly, a status message should not be displayed and correct answer section should not be displayed')
450
319
  chartsDotPlotPage.steps.checkAnswer();
@@ -464,23 +333,22 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
464
333
  chartsDotPlotPage.steps.deleteAlternativeAnswerAccordion(0);
465
334
  chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
466
335
  chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.5, 1: 2, 2: 3, 3: 3, 4: 3.5, 5: 18 });
467
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
468
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
336
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
337
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 2, min: 1, interval: 1, defaultDots: 0 });
469
338
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
470
339
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
471
340
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
472
341
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
473
342
  chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
474
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
475
- chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
343
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1 });
344
+ chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1 });
476
345
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 3, min: 1, interval: 1 });
477
346
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 4, min: 1, interval: 1 });
478
347
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
479
348
  chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
480
349
  chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 0.5, 1: 1, 2: 3, 3: 2, 4: 2.5, 5: 16 });
481
350
  chartsDotPlotPage.steps.switchToPreviewTab();
482
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
483
- chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
351
+ chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 2, min: 1, interval: 1 });
484
352
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
485
353
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
486
354
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
@@ -501,25 +369,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
501
369
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
502
370
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
503
371
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
504
- //alternative answer
505
- if (alternativeAnswerCheck === 'true') {
506
- chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.5 pts, 2 pts, 3 pts, 3 pts, 3.5 pts, 18 pts)');
507
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
508
- chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
509
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
510
- chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
511
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
512
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
513
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0.5 pts, 1 pt, 3 pts, 2 pts, 2.5 pts, 16 pts)');
514
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
515
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
516
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
517
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
518
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
519
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
520
- chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
521
- chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
522
- }
523
372
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
524
373
  /*cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, correct icons icons should be displayed beside the correct responses from the correct accordion, incorrect icons icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label should not be displayed, correct answer section should not be displayed')
525
374
  chartsDotPlotPage.steps.checkAnswer();