itemengine-cypress-automation 1.0.576-IEI-7079-7fbe573.0 → 1.0.576-IEI-7079-794342b.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.
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +160 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +103 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +141 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +153 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +103 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +141 -0
- package/package.json +1 -1
|
@@ -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();
|