itemengine-cypress-automation 1.0.576-IEI-7079-0591b8d.0 → 1.0.576-IEI-7079-92d877f.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.
@@ -1,6 +1,8 @@
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
+
4
6
  describe('Create item page - Charts - Dot plot: Partial equal with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -54,6 +56,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
54
56
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
55
57
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
56
58
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
59
+ //alternative answer
60
+ if (alternativeAnswerCheck === 'true') {
61
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
62
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
63
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
64
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
65
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
66
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
67
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
68
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
69
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
70
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
71
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
72
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
73
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
74
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
75
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
76
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
77
+ }
57
78
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
58
79
  });
59
80
 
@@ -72,6 +93,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
72
93
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
73
94
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
74
95
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
96
+ //alternative answer
97
+ if (alternativeAnswerCheck === 'true') {
98
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
99
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
100
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
101
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
102
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
103
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
104
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
105
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
106
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
107
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
108
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
109
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
110
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
111
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
112
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
113
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
114
+ }
75
115
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
76
116
  });
77
117
 
@@ -92,6 +132,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
92
132
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
93
133
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
94
134
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
135
+ if (alternativeAnswerCheck === 'true') {
136
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
137
+ }
95
138
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
96
139
  });
97
140
 
@@ -110,6 +153,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
110
153
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
111
154
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
112
155
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
156
+ if (alternativeAnswerCheck === 'true') {
157
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
158
+ }
113
159
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
160
  });
115
161
 
@@ -127,6 +173,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
127
173
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
128
174
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
129
175
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
176
+ //alternative answer
177
+ if (alternativeAnswerCheck === 'true') {
178
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
179
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
180
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
181
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
182
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
183
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
184
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
185
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
186
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
187
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
188
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
189
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
190
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
191
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
192
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
193
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
194
+ }
130
195
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
131
196
  });
132
197
 
@@ -143,6 +208,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
143
208
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
144
209
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
145
210
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
211
+ //alternative answer
212
+ if (alternativeAnswerCheck === 'true') {
213
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
214
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
215
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
216
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
217
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
218
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
219
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
220
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
221
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
222
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
223
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
224
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
228
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
229
+ }
146
230
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
147
231
  });
148
232
 
@@ -160,6 +244,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
160
244
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
161
245
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
162
246
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
247
+ //alternative answer
248
+ if (alternativeAnswerCheck === 'true') {
249
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
250
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
251
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
252
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
253
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
254
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
255
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
256
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
257
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
258
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
259
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
260
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
261
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
262
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
263
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
264
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
265
+ }
163
266
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
164
267
  });
165
268
 
@@ -176,6 +279,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
176
279
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
177
280
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
178
281
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
282
+ //alternative answer
283
+ if (alternativeAnswerCheck === 'true') {
284
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
285
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
286
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
287
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
288
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
289
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
290
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
291
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
292
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
293
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
294
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
295
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
296
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
297
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
298
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
299
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
300
+ }
179
301
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
180
302
  });
181
303
 
@@ -193,6 +315,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
193
315
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
194
316
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
195
317
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
318
+ //alternative answer
319
+ if (alternativeAnswerCheck === 'true') {
320
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
321
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
322
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
323
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
324
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
325
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
326
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
327
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
328
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
329
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
330
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
331
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
332
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
334
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
335
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
336
+ }
196
337
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
197
338
  });
198
339
 
@@ -213,6 +354,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
213
354
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
214
355
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
215
356
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
357
+ //alternative answer
358
+ if (alternativeAnswerCheck === 'true') {
359
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 8 pts, 8 pts, 8 pts, 8 pts, 8 pts)');
360
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
361
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
362
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
363
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
364
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
365
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
366
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
367
+ chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
368
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
369
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
370
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
371
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
372
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
373
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
374
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
375
+ }
216
376
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
217
377
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
218
378
  });
@@ -168,8 +168,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
168
168
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
169
169
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
170
170
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
171
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
172
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
171
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
172
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
173
173
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
174
174
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
175
175
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -222,8 +222,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
222
222
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
223
223
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
224
224
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
225
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
226
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
227
227
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
228
228
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
229
229
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -276,8 +276,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
276
276
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
277
277
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
278
278
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
279
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
280
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
279
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
280
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
281
281
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
282
282
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
283
283
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -329,8 +329,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
329
329
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
330
330
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
331
331
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
332
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
333
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
332
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
334
334
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
335
335
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
336
336
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -384,8 +384,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
384
384
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
385
385
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
386
386
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
387
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
388
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
389
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
390
390
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
391
391
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -165,12 +165,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
165
165
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
166
166
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
167
167
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
168
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
169
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
170
170
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
171
171
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
172
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
173
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
174
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
175
175
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
176
176
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -219,12 +219,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
219
219
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
220
220
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
221
221
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
222
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
223
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
224
224
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
225
225
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
226
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
227
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
228
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
229
229
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
230
230
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -273,12 +273,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
273
273
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
274
274
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
275
275
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
276
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
277
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
278
278
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
279
279
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
280
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
281
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
282
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
283
283
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
284
284
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -327,12 +327,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
327
327
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
328
328
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
329
329
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
330
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
331
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
332
332
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
333
333
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
334
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
335
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
336
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
337
337
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
338
338
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -380,12 +380,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
380
380
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
381
381
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
382
382
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
383
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
384
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
385
385
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
386
386
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
387
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
388
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
389
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
390
390
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
391
391
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -435,12 +435,12 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
435
435
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
436
436
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
437
437
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
438
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
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
439
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
440
440
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
441
441
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
442
- chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
443
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, 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
444
  chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
445
445
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
446
446
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
@@ -510,13 +510,13 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
510
510
  chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
511
511
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
512
512
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
513
- chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0.5 pts, 1 pts, 3 pts, 2 pts, 2.5 pts, 16 pts)');
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
514
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
515
515
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
516
516
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
517
517
  chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
518
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
519
- chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, 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
520
  chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
521
521
  chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
522
522
  }
@@ -2,6 +2,8 @@ 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
+
5
7
  describe('Create item page - Charts - Dot plot: Partial different weights', () => {
6
8
  before(() => {
7
9
  cy.loginAs('admin');
@@ -57,6 +59,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
57
59
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
58
60
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
59
61
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
62
+ //alternative answer
63
+ if (alternativeAnswerCheck === 'true') {
64
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
65
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
66
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
67
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
68
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
69
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
70
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
71
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
72
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
73
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
74
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
75
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
76
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
77
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
78
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
79
+ }
60
80
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
61
81
  /*cy.log('When the user clicks on \'Check answer\' button without attempting the question, locked bar should not have icon, 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 and correct/incorrect status message and correct answer section should not be displayed')
62
82
  chartsDotPlotPage.steps.checkAnswer();
@@ -86,6 +106,9 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
86
106
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
87
107
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
88
108
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
109
+ if (alternativeAnswerCheck === 'true') {
110
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
111
+ }
89
112
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
90
113
  /*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, status message and correct answer section should not be displayed')
91
114
  chartsDotPlotPage.steps.checkAnswer();
@@ -115,6 +138,9 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
115
138
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
116
139
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
117
140
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
141
+ if (alternativeAnswerCheck === 'true') {
142
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
143
+ }
118
144
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
119
145
  /*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, status message and correct answer section should not be displayed')
120
146
  chartsDotPlotPage.steps.checkAnswer();
@@ -150,6 +176,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
150
176
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
151
177
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
152
178
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
179
+ //alternative answer
180
+ if (alternativeAnswerCheck === 'true') {
181
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
182
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
183
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
184
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
185
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
186
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
187
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
188
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
189
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
190
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
191
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
192
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
193
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
194
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
195
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
196
+ }
153
197
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
154
198
  /*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 attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
155
199
  chartsDotPlotPage.steps.checkAnswer();
@@ -185,6 +229,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
185
229
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
186
230
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
187
231
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
232
+ //alternative answer
233
+ if (alternativeAnswerCheck === 'true') {
234
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
235
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
236
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
237
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
238
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
239
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
240
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
241
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
242
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
243
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
244
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
245
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
246
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
247
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
248
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
249
+ }
188
250
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
189
251
  /*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, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
190
252
  chartsDotPlotPage.steps.checkAnswer();
@@ -218,6 +280,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
218
280
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
219
281
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
220
282
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
283
+ //alternative answer
284
+ if (alternativeAnswerCheck === 'true') {
285
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
286
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
287
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
288
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
289
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
290
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
291
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
292
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
293
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
294
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
295
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
296
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
297
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
298
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
299
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
300
+ }
221
301
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
222
302
  /*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 dot column attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
223
303
  chartsDotPlotPage.steps.checkAnswer();
@@ -252,6 +332,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
252
332
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
253
333
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
254
334
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
335
+ //alternative answer
336
+ if (alternativeAnswerCheck === 'true') {
337
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
338
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
339
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
340
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
341
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
342
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
343
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
344
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
345
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
346
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
347
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
348
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
349
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
350
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
351
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
352
+ }
255
353
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
354
  /*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 set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly from the correct accordion, a status message and correct answer section should not be displayed')
257
355
  chartsDotPlotPage.steps.checkAnswer();
@@ -286,6 +384,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
286
384
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
287
385
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
288
386
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
387
+ //alternative answer
388
+ if (alternativeAnswerCheck === 'true') {
389
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
390
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
391
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
392
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
393
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
394
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
395
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
396
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
397
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
398
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
399
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
400
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
401
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
402
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
403
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
404
+ }
289
405
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
290
406
  /*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 common dot column attempted correctly, incorrect icon should be displayed in dot column attempted incorrectly status message and correct answer section should not be displayed')
291
407
  chartsDotPlotPage.steps.checkAnswer();
@@ -322,6 +438,24 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
322
438
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
323
439
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
324
440
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
441
+ //alternative answer
442
+ if (alternativeAnswerCheck === 'true') {
443
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
444
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
445
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
446
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
447
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
448
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
449
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
450
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.83 pts)');
451
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
452
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
453
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
454
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
455
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
456
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
457
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
458
+ }
325
459
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
326
460
  /*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 and correct answer section should not be displayed')
327
461
  chartsDotPlotPage.steps.checkAnswer();
@@ -378,6 +512,25 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
378
512
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
379
513
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
380
514
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
515
+ //alternative answer
516
+ if (alternativeAnswerCheck === 'true') {
517
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 7 pts)');
518
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
519
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
520
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
521
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
522
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
523
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
524
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 1 pt)');
525
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
526
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
527
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
528
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
529
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
530
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
531
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
532
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
533
+ }
381
534
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
382
535
  /*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 and its border, correct answer container should not be displayed')
383
536
  chartsDotPlotPage.steps.checkAnswer();
@@ -1,6 +1,8 @@
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
+
4
6
  describe('Create item page - Charts - Dot plot: Partial equal with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -83,6 +85,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
83
85
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
84
86
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
85
87
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
88
+ if (alternativeAnswerCheck === 'true') {
89
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
90
+ }
86
91
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
87
92
  /*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, correct/incorrect status message and correct answer section should not be displayed')
88
93
  chartsDotPlotPage.steps.checkAnswer();
@@ -112,6 +117,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
112
117
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
113
118
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
114
119
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
120
+ if (alternativeAnswerCheck === 'true') {
121
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
122
+ }
115
123
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
116
124
  /*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, correct/incorrect status message and correct answer section should not be displayed')
117
125
  chartsDotPlotPage.steps.checkAnswer();
@@ -147,6 +155,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
147
155
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
148
156
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
149
157
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
158
+ //alternative answer
159
+ if (alternativeAnswerCheck === 'true') {
160
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
161
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
162
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
163
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
164
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
165
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
166
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
167
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
168
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
169
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
170
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
171
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
172
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
173
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
174
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
175
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
176
+ }
150
177
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
151
178
  /*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 set correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
152
179
  chartsDotPlotPage.steps.checkAnswer();
@@ -182,6 +209,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
182
209
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
183
210
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
184
211
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
212
+ //alternative answer
213
+ if (alternativeAnswerCheck === 'true') {
214
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
215
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
216
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
217
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
218
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
219
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
220
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
221
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
222
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
223
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
224
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
228
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
229
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
230
+ }
185
231
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
186
232
  /*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 set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
187
233
  chartsDotPlotPage.steps.checkAnswer();
@@ -217,6 +263,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
217
263
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
218
264
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
219
265
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
266
+ //alternative answer
267
+ if (alternativeAnswerCheck === 'true') {
268
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
269
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
270
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
271
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
272
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
273
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
274
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
275
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
276
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
277
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
278
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
279
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
280
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
281
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
282
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
283
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
284
+ }
220
285
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
221
286
  /*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 set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
222
287
  chartsDotPlotPage.steps.checkAnswer();
@@ -251,6 +316,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
251
316
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
252
317
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
253
318
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
319
+ //alternative answer
320
+ if (alternativeAnswerCheck === 'true') {
321
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
322
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
323
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
324
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
325
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
326
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
327
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
328
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 5 pts)');
329
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
330
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
331
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
332
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
334
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
335
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
336
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
337
+ }
254
338
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
255
339
  /*cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
256
340
  chartsDotPlotPage.steps.checkAnswer();
@@ -287,6 +371,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
287
371
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
288
372
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
289
373
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
374
+ //alternative answer
375
+ if (alternativeAnswerCheck === 'true') {
376
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 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 - 5 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
+ }
290
393
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
291
394
  /*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 set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
292
395
  chartsDotPlotPage.steps.checkAnswer();
@@ -1,6 +1,8 @@
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
+
4
6
  describe('Create item page - Charts - Dot plot: Partial equal with alternative answers', () => {
5
7
  before(() => {
6
8
  cy.loginAs('admin');
@@ -85,6 +87,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
85
87
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
86
88
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
87
89
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
90
+ if (alternativeAnswerCheck === 'true') {
91
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
92
+ }
88
93
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
89
94
  /*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')
90
95
  chartsDotPlotPage.steps.checkAnswer();
@@ -114,6 +119,9 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
114
119
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
115
120
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
116
121
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
122
+ if (alternativeAnswerCheck === 'true') {
123
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
124
+ }
117
125
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
118
126
  /*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')
119
127
  chartsDotPlotPage.steps.checkAnswer();
@@ -149,6 +157,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
149
157
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
150
158
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
151
159
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
160
+ //alternative answer
161
+ if (alternativeAnswerCheck === 'true') {
162
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
163
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
164
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
165
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
166
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
167
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
168
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
169
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
170
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
171
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
172
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
173
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
174
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
175
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
176
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
177
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
178
+ }
152
179
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
180
  /*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')
154
181
  chartsDotPlotPage.steps.checkAnswer();
@@ -184,6 +211,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
184
211
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
185
212
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
186
213
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
214
+ //alternative answer
215
+ if (alternativeAnswerCheck === 'true') {
216
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
217
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
218
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
219
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
220
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
221
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
222
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
223
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
224
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
225
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
226
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
227
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
228
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
229
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
230
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
231
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
232
+ }
187
233
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
234
  /*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')
189
235
  chartsDotPlotPage.steps.checkAnswer();
@@ -219,6 +265,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
219
265
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
220
266
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
221
267
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
268
+ //alternative answer
269
+ if (alternativeAnswerCheck === 'true') {
270
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
271
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
272
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
273
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
274
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
275
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
276
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
277
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
278
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
279
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
280
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
281
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
282
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
283
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
284
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
285
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
286
+ }
222
287
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
223
288
  /*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')
224
289
  chartsDotPlotPage.steps.checkAnswer();
@@ -254,6 +319,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
254
319
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
255
320
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
256
321
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
322
+ //alternative answer
323
+ if (alternativeAnswerCheck === 'true') {
324
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
325
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
326
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
327
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
328
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
329
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
330
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
331
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
332
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
333
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
334
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
335
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
336
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
337
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
338
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
339
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
340
+ }
257
341
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
258
342
  /*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')
259
343
  chartsDotPlotPage.steps.checkAnswer();
@@ -288,6 +372,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
288
372
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
289
373
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
290
374
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
375
+ //alternative answer
376
+ if (alternativeAnswerCheck === 'true') {
377
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
378
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
379
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
380
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
381
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
382
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
383
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
384
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
385
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
386
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
387
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
388
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
389
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
390
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
391
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
392
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
393
+ }
291
394
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
292
395
  /*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 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')
293
396
  chartsDotPlotPage.steps.checkAnswer();
@@ -324,6 +427,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
324
427
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
325
428
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
326
429
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
430
+ //alternative answer
431
+ if (alternativeAnswerCheck === 'true') {
432
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 5 pts)');
433
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
434
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
435
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
436
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
437
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
438
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
439
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3 pts)');
440
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
441
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
442
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
443
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
444
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
445
+ chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
446
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
447
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
448
+ }
327
449
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
328
450
  /*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')
329
451
  chartsDotPlotPage.steps.checkAnswer();
@@ -380,6 +502,25 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
380
502
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
381
503
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
382
504
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
505
+ //alternative answer
506
+ if (alternativeAnswerCheck === 'true') {
507
+ chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.83 pts)');
508
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
509
+ chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
510
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
511
+ chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
512
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
513
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
514
+ chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2.33 pts)');
515
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
516
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
517
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
518
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
519
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
520
+ chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
521
+ chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
522
+ chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
523
+ }
383
524
  chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
384
525
  /*cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, correct icons should be displayed in the correct responses from the correct accordion, incorrect icons should be displayed in the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
385
526
  chartsDotPlotPage.steps.checkAnswer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.576-IEI-7079-0591b8d.0",
3
+ "version": "1.0.576-IEI-7079-92d877f.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {