itemengine-cypress-automation 1.0.571-scoring-fix-8676243.0 → 1.0.573-IEI-7011-17b1079.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/config-files/ilprod.json +2 -1
- package/cypress/config-files/ilqa.json +2 -1
- package/cypress/config-files/ilstage.json +2 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +353 -0
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +464 -1
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +379 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +55 -73
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +103 -0
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/showAlternativeAnswersComponent.js +145 -0
- package/cypress/pages/multipleSelectionPage.js +35 -1
- package/cypress/pages/singleSelectionPage.js +22 -1
- package/package.json +1 -1
- package/service.yaml +11 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { multipleSelectionPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste'];
|
|
4
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
5
|
|
|
5
6
|
describe('Create item page - Multiple selection: Partial equal weights with alternative answer', () => {
|
|
6
7
|
before(() => {
|
|
@@ -47,6 +48,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
47
48
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
48
49
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
49
50
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
51
|
+
if (alternativeAnswerCheck === 'true') {
|
|
52
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
53
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
54
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
55
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
56
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
57
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
58
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
59
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
60
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
61
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
62
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
63
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
64
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
65
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
66
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
67
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
68
|
+
}
|
|
50
69
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
51
70
|
});
|
|
52
71
|
|
|
@@ -65,6 +84,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
65
84
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
66
85
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
67
86
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
87
|
+
if (alternativeAnswerCheck === 'true') {
|
|
88
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
89
|
+
}
|
|
68
90
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
69
91
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
|
|
70
92
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -94,6 +116,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
94
116
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
95
117
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
96
118
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
119
|
+
if (alternativeAnswerCheck === 'true') {
|
|
120
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
121
|
+
}
|
|
97
122
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
98
123
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
|
|
99
124
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -127,6 +152,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
127
152
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
128
153
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
129
154
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
155
|
+
if (alternativeAnswerCheck === 'true') {
|
|
156
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
157
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
158
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
159
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
160
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
161
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
162
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
163
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
164
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
165
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
166
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
167
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
168
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
169
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
170
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
171
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
172
|
+
}
|
|
130
173
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
131
174
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
132
175
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -160,6 +203,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
160
203
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
161
204
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
162
205
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
206
|
+
if (alternativeAnswerCheck === 'true') {
|
|
207
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
208
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
209
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
210
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
211
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
212
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
213
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
214
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
215
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
216
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
217
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
218
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
219
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
220
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
221
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
222
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
223
|
+
}
|
|
163
224
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
164
225
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
165
226
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -192,6 +253,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
192
253
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
193
254
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
194
255
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
256
|
+
if (alternativeAnswerCheck === 'true') {
|
|
257
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
258
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
259
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
260
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
261
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
262
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
263
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
264
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
265
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
266
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
267
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
268
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
269
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
270
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
271
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
272
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
273
|
+
}
|
|
195
274
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
196
275
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
197
276
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -223,6 +302,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
223
302
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
224
303
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
225
304
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
305
|
+
if (alternativeAnswerCheck === 'true') {
|
|
306
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
307
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
308
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
309
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
310
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
311
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
312
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
313
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
314
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
315
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
316
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
317
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
318
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
319
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
320
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
321
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
322
|
+
}
|
|
226
323
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
227
324
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
228
325
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -260,6 +357,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
260
357
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
261
358
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
262
359
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
360
|
+
if (alternativeAnswerCheck === 'true') {
|
|
361
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 8 pts)');
|
|
362
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
363
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
364
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
365
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
366
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
367
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
368
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
369
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
370
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
371
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
372
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
373
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
374
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
375
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
376
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
377
|
+
}
|
|
263
378
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
264
379
|
/*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, incorrect answer label and border should not be displayed')
|
|
265
380
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -292,6 +407,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
292
407
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
293
408
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
294
409
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
410
|
+
if (alternativeAnswerCheck === 'true') {
|
|
411
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 8 pts)');
|
|
412
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
413
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
414
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
415
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
416
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
417
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
418
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
419
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
420
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
421
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
422
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
423
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
424
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
425
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
426
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
427
|
+
}
|
|
295
428
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
296
429
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
297
430
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -366,6 +499,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
366
499
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
367
500
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
368
501
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
502
|
+
if (alternativeAnswerCheck === 'true') {
|
|
503
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
504
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
505
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
506
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
507
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
508
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
509
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
510
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
511
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
512
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
513
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
514
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
515
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
516
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
517
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
518
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
519
|
+
}
|
|
369
520
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
370
521
|
});
|
|
371
522
|
|
|
@@ -384,6 +535,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
384
535
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
385
536
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
386
537
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
538
|
+
if (alternativeAnswerCheck === 'true') {
|
|
539
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
540
|
+
}
|
|
387
541
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
388
542
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
|
|
389
543
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -412,6 +566,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
412
566
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
413
567
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
414
568
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
569
|
+
if (alternativeAnswerCheck === 'true') {
|
|
570
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
571
|
+
}
|
|
415
572
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
416
573
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
|
|
417
574
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -446,6 +603,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
446
603
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
447
604
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
448
605
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
606
|
+
if (alternativeAnswerCheck === 'true') {
|
|
607
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
608
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
609
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
610
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
611
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
612
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
613
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
614
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
615
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
616
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
617
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
618
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
619
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
620
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
621
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
622
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
623
|
+
}
|
|
449
624
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
450
625
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
451
626
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -478,6 +653,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
478
653
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
479
654
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
480
655
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
656
|
+
if (alternativeAnswerCheck === 'true') {
|
|
657
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
658
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
659
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
660
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
661
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
662
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
663
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
664
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
665
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
666
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
667
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
668
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
669
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
670
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
671
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
672
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
673
|
+
}
|
|
481
674
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
482
675
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
483
676
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -510,6 +703,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
510
703
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
511
704
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
512
705
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
706
|
+
if (alternativeAnswerCheck === 'true') {
|
|
707
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
708
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
709
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
710
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
711
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
712
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
713
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
714
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
715
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
716
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
717
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
718
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
719
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
720
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
721
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
722
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
723
|
+
}
|
|
513
724
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
514
725
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
515
726
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -541,6 +752,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
541
752
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
542
753
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
543
754
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
755
|
+
if (alternativeAnswerCheck === 'true') {
|
|
756
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
757
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
758
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
759
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
760
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
761
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
762
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
763
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
764
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
765
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
766
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
767
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
768
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
769
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
770
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
771
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
772
|
+
}
|
|
544
773
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
545
774
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides common response, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
546
775
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -576,6 +805,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
576
805
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
577
806
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
578
807
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
808
|
+
if (alternativeAnswerCheck === 'true') {
|
|
809
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
810
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
811
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
812
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
813
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
814
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
815
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
816
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
817
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
818
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
819
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
820
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
821
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
822
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
823
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
824
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
825
|
+
}
|
|
579
826
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
580
827
|
/*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, incorrect answer label and border should not be displayed')
|
|
581
828
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -608,6 +855,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
608
855
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
609
856
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
610
857
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
858
|
+
if (alternativeAnswerCheck === 'true') {
|
|
859
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
860
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
861
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
862
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
863
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
864
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
865
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
866
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
867
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
868
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
869
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
870
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
871
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
872
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
873
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
874
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
875
|
+
}
|
|
611
876
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
612
877
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
613
878
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -660,6 +925,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
660
925
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
661
926
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
662
927
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
928
|
+
if (alternativeAnswerCheck === 'true') {
|
|
929
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
930
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
931
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
932
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
933
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
934
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
935
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
936
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
937
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
938
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
939
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
940
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
941
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
942
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
943
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
944
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
945
|
+
}
|
|
663
946
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
664
947
|
});
|
|
665
948
|
|
|
@@ -678,6 +961,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
678
961
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
679
962
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
680
963
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
964
|
+
if (alternativeAnswerCheck === 'true') {
|
|
965
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
966
|
+
}
|
|
681
967
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
682
968
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
|
|
683
969
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -706,6 +992,9 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
706
992
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
707
993
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
708
994
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
995
|
+
if (alternativeAnswerCheck === 'true') {
|
|
996
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
997
|
+
}
|
|
709
998
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
710
999
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer label and border should not be displayed')
|
|
711
1000
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -739,6 +1028,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
739
1028
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
740
1029
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
741
1030
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1031
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1032
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1033
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1034
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1035
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1036
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1037
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1038
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1039
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1040
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1041
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1042
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1043
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1044
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1045
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1046
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1047
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1048
|
+
}
|
|
742
1049
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
743
1050
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
744
1051
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -772,6 +1079,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
772
1079
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
773
1080
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
774
1081
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1082
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1083
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1084
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1085
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1086
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1087
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1088
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1089
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1090
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1091
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1092
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1093
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1094
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1095
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1096
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1097
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1098
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1099
|
+
}
|
|
775
1100
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
776
1101
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
777
1102
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -804,6 +1129,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
804
1129
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
805
1130
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
806
1131
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1132
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1133
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1134
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1135
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1136
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1137
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1138
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1139
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1140
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1141
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1142
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1143
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1144
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1145
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1146
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1147
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1148
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1149
|
+
}
|
|
807
1150
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
808
1151
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
809
1152
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -835,6 +1178,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
835
1178
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
836
1179
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
837
1180
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1181
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1182
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1183
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1184
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1185
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1186
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1187
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1188
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1189
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1190
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1191
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1192
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1193
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1194
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1195
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1196
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1197
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1198
|
+
}
|
|
838
1199
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
839
1200
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
840
1201
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -865,6 +1226,24 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
865
1226
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
866
1227
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
867
1228
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1229
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1230
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1231
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1232
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1233
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1234
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1235
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1236
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1237
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1238
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1239
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1240
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1241
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1242
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1243
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1244
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1245
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1246
|
+
}
|
|
868
1247
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
869
1248
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
870
1249
|
multipleSelectionPage.steps.checkAnswer();
|