itemengine-cypress-automation 1.0.564-IEI-6998-Add-coverage-for-image-hightlight-question-type-f372002.0 → 1.0.564-IEI-7011-3998a1c.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/ImageHighlight/additionalSettings.js +0 -86
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +9 -60
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +12 -14
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +3 -12
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -65
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +1 -15
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -0
- 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/SingleSelection/allOrNothingBasicForAllViews.smoke.js +130 -0
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +16 -0
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/showAlternativeAnswersComponent.js +145 -0
- package/cypress/pages/imageHighlightPage.js +7 -184
- package/cypress/pages/itemPreviewPage.js +0 -1
- package/cypress/pages/multipleSelectionPage.js +35 -1
- package/cypress/pages/singleSelectionPage.js +5 -1
- package/cypress/support/helpers/utilities.js +0 -16
- package/package.json +1 -1
- package/service.yaml +9 -1
|
@@ -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', 'Pollution caused by household waste'];
|
|
4
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
5
|
|
|
5
6
|
//Multiple cases are failing due to - https://redmine.zeuslearning.com/issues/578348.
|
|
6
7
|
describe('Create item page - Multiple selection: Partial different weights with alternative answer', () => {
|
|
@@ -51,6 +52,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
51
52
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
52
53
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
53
54
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
55
|
+
if (alternativeAnswerCheck === 'true') {
|
|
56
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
57
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
58
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
59
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
60
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
61
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
62
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
63
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
64
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
65
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
66
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
67
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
68
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
69
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
70
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
71
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
72
|
+
}
|
|
54
73
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
55
74
|
});
|
|
56
75
|
|
|
@@ -70,6 +89,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
70
89
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
71
90
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
72
91
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
92
|
+
if (alternativeAnswerCheck === 'true') {
|
|
93
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
94
|
+
}
|
|
73
95
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
74
96
|
/*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')
|
|
75
97
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -100,6 +122,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
100
122
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
101
123
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
102
124
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
125
|
+
if (alternativeAnswerCheck === 'true') {
|
|
126
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
127
|
+
}
|
|
103
128
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
104
129
|
/*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')
|
|
105
130
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -136,6 +161,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
136
161
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
137
162
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
138
163
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
164
|
+
if (alternativeAnswerCheck === 'true') {
|
|
165
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
166
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
167
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
168
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
169
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
170
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
171
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
172
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
173
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
174
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
175
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
176
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
177
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
178
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
179
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
180
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
181
|
+
}
|
|
139
182
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
140
183
|
/*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')
|
|
141
184
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -171,6 +214,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
171
214
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
172
215
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
173
216
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
217
|
+
if (alternativeAnswerCheck === 'true') {
|
|
218
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
219
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
220
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
221
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
222
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
223
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
224
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
225
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
226
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
227
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
228
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
229
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
230
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
231
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
232
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
233
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
234
|
+
}
|
|
174
235
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
175
236
|
/*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')
|
|
176
237
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -205,6 +266,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
205
266
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
206
267
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
207
268
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
269
|
+
if (alternativeAnswerCheck === 'true') {
|
|
270
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
271
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
272
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
273
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
274
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
275
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
276
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
277
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
278
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
279
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
280
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
281
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
282
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
283
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
284
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
285
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
286
|
+
}
|
|
208
287
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
209
288
|
/*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')
|
|
210
289
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -240,6 +319,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
240
319
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
241
320
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
242
321
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
322
|
+
if (alternativeAnswerCheck === 'true') {
|
|
323
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
324
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
325
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
326
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
327
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
328
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
329
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
330
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
331
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
332
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
333
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
334
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
335
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
336
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
337
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
338
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
339
|
+
}
|
|
243
340
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
244
341
|
/*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 alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
|
|
245
342
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -273,6 +370,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
273
370
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
274
371
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
275
372
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
373
|
+
if (alternativeAnswerCheck === 'true') {
|
|
374
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 8 pts, 4 pts, 4 pts)');
|
|
375
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
376
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
377
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
378
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
379
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
380
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
381
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
382
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
383
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
384
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
385
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
386
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
387
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
388
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
389
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
390
|
+
}
|
|
276
391
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
277
392
|
/*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
278
393
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -314,6 +429,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
314
429
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
315
430
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
316
431
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
432
|
+
if (alternativeAnswerCheck === 'true') {
|
|
433
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.4 pts, 1.4 pts, 10.4 pts)');
|
|
434
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
435
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
436
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
437
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
438
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
439
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
440
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2.2 pts, 2.2 pts, 6.6 pts)');
|
|
441
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
442
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
443
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(6);
|
|
444
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
445
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
446
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(2);
|
|
447
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
448
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
449
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
450
|
+
}
|
|
317
451
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
318
452
|
/*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion 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')
|
|
319
453
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -348,6 +482,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
348
482
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
349
483
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
350
484
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
485
|
+
if (alternativeAnswerCheck === 'true') {
|
|
486
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.4 pts, 1.4 pts, 10.4 pts)');
|
|
487
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
488
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
489
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
490
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
491
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
492
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
493
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2.2 pts, 2.2 pts, 6.6 pts)');
|
|
494
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
495
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
496
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(6);
|
|
497
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
498
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
499
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(2);
|
|
500
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
501
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
502
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
503
|
+
}
|
|
351
504
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
352
505
|
/*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')
|
|
353
506
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -424,6 +577,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
424
577
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
425
578
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
426
579
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
580
|
+
if (alternativeAnswerCheck === 'true') {
|
|
581
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
582
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
583
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
584
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
585
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
586
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
587
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
588
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
589
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
590
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
591
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
592
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
593
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
594
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
595
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
596
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
597
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
598
|
+
}
|
|
427
599
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
428
600
|
});
|
|
429
601
|
|
|
@@ -444,6 +616,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
444
616
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
445
617
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
446
618
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
619
|
+
if (alternativeAnswerCheck === 'true') {
|
|
620
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
621
|
+
}
|
|
447
622
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
448
623
|
/*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')
|
|
449
624
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -473,6 +648,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
473
648
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
474
649
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
475
650
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
651
|
+
if (alternativeAnswerCheck === 'true') {
|
|
652
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
653
|
+
}
|
|
476
654
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
477
655
|
/*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')
|
|
478
656
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -508,6 +686,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
508
686
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
509
687
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
510
688
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
689
|
+
if (alternativeAnswerCheck === 'true') {
|
|
690
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
691
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
692
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
693
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
694
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
695
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
696
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
697
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
698
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
699
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
700
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
701
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
702
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
703
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
704
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
705
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
706
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
707
|
+
}
|
|
511
708
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
512
709
|
/*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')
|
|
513
710
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -543,6 +740,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
543
740
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
544
741
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
545
742
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
743
|
+
if (alternativeAnswerCheck === 'true') {
|
|
744
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
745
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
746
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
747
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
748
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
749
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
750
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
751
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
752
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
753
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
754
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
755
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
756
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
757
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
758
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
759
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
760
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
761
|
+
}
|
|
546
762
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
547
763
|
/*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')
|
|
548
764
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -577,6 +793,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
577
793
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
578
794
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
579
795
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
796
|
+
if (alternativeAnswerCheck === 'true') {
|
|
797
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
798
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
799
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
800
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
801
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
802
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
803
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
804
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
805
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
806
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
807
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
808
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
809
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
810
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
811
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
812
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
813
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
814
|
+
}
|
|
580
815
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
581
816
|
/*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 correct accordion answer responses, incorrect answer label and border should not be displayed')
|
|
582
817
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -611,6 +846,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
611
846
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
612
847
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
613
848
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
849
|
+
if (alternativeAnswerCheck === 'true') {
|
|
850
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
851
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
852
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
853
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
854
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
855
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
856
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
857
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
858
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
859
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
860
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
861
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
862
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
863
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
864
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
865
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
866
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
867
|
+
}
|
|
614
868
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
615
869
|
/*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 alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
|
|
616
870
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -644,6 +898,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
644
898
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
645
899
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
646
900
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
901
|
+
if (alternativeAnswerCheck === 'true') {
|
|
902
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 4 pts, 4 pts, 8 pts)');
|
|
903
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
904
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
905
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
906
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
907
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
908
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
909
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 5 pts, 6 pts, 4 pts)');
|
|
910
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
911
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
912
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
913
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
914
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
915
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
916
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
917
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
918
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
919
|
+
}
|
|
647
920
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
648
921
|
/*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
649
922
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -685,6 +958,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
685
958
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(6);
|
|
686
959
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
687
960
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
961
|
+
if (alternativeAnswerCheck === 'true') {
|
|
962
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.4 pts, 1.4 pts, 10.4 pts)');
|
|
963
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
964
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
965
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
966
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
967
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
968
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
969
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2.2 pts, 2.2 pts, 6.6 pts)');
|
|
970
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
971
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
972
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
973
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
974
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
975
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
976
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
977
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
978
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
979
|
+
}
|
|
688
980
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
689
981
|
/*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')
|
|
690
982
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -718,6 +1010,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
718
1010
|
// multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(6);
|
|
719
1011
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
720
1012
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
1013
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1014
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.4 pts, 1.4 pts, 10.4 pts)');
|
|
1015
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1016
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1017
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1018
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1019
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1020
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1021
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2.2 pts, 2.2 pts, 6.6 pts)');
|
|
1022
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
1023
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
1024
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1025
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
1026
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
1027
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1028
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(6);
|
|
1029
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1030
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1031
|
+
}
|
|
721
1032
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
722
1033
|
/*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')
|
|
723
1034
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -730,7 +1041,7 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
730
1041
|
});
|
|
731
1042
|
});
|
|
732
1043
|
|
|
733
|
-
describe('Question preview: Auto scored - Partial different weights with alternative answer - When \'Correct answer\' points is equal to \'Alternative answer\' points', () => {
|
|
1044
|
+
describe.only('Question preview: Auto scored - Partial different weights with alternative answer - When \'Correct answer\' points is equal to \'Alternative answer\' points', () => {
|
|
734
1045
|
abortEarlySetup();
|
|
735
1046
|
before(() => {
|
|
736
1047
|
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
|
@@ -773,6 +1084,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
773
1084
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
774
1085
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
775
1086
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1087
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1088
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1089
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1090
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1091
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1092
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1093
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1094
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1095
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1096
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1097
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1098
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1099
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1100
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1101
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1102
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1103
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1104
|
+
}
|
|
776
1105
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
777
1106
|
});
|
|
778
1107
|
|
|
@@ -792,6 +1121,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
792
1121
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
793
1122
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
794
1123
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
1124
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1125
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
1126
|
+
}
|
|
795
1127
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
796
1128
|
/*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')
|
|
797
1129
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -821,6 +1153,9 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
821
1153
|
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
|
822
1154
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
823
1155
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
1156
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1157
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
1158
|
+
}
|
|
824
1159
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
825
1160
|
/*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')
|
|
826
1161
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -857,6 +1192,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
857
1192
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
858
1193
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
859
1194
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1195
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1196
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1197
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1198
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1199
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1200
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1201
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1202
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1203
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1204
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1205
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1206
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1207
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1208
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1209
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1210
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1211
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1212
|
+
}
|
|
860
1213
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
861
1214
|
/*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')
|
|
862
1215
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -892,6 +1245,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
892
1245
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
893
1246
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
894
1247
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1248
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1249
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1250
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1251
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1252
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1253
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1254
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1255
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1256
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1257
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1258
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1259
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1260
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1261
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1262
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1263
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1264
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1265
|
+
}
|
|
895
1266
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
896
1267
|
/*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')
|
|
897
1268
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -926,6 +1297,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
926
1297
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
927
1298
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
928
1299
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1300
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1301
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1302
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1303
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1304
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1305
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1306
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1307
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1308
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1309
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1310
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1311
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1312
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1313
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1314
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1315
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1316
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1317
|
+
}
|
|
929
1318
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
930
1319
|
/*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')
|
|
931
1320
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -960,6 +1349,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
960
1349
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
961
1350
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
962
1351
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1352
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1353
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1354
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1355
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1356
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1357
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1358
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1359
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1360
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1361
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1362
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1363
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1364
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1365
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1366
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1367
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1368
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1369
|
+
}
|
|
963
1370
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
964
1371
|
/*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 alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, incorrect answer label and border should not be displayed')
|
|
965
1372
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -993,6 +1400,24 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
993
1400
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
994
1401
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
995
1402
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1403
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1404
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 9 pts, 3 pts, 3 pts)');
|
|
1405
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1406
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1407
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1408
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1409
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1410
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1411
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 8 pts, 4 pts, 3 pts)');
|
|
1412
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1413
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1414
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1415
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1416
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1417
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1418
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1419
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1420
|
+
}
|
|
996
1421
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
997
1422
|
/*cy.log('When the user has attempted the question with the common responses between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
998
1423
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -1034,6 +1459,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1034
1459
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
1035
1460
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1036
1461
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1462
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1463
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 12.6 pts, 1.2 pts, 1.2 pts)');
|
|
1464
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1465
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1466
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1467
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1468
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1469
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1470
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4.1 pts, 5.4 pts, 5.5 pts)');
|
|
1471
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1472
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1473
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(6);
|
|
1474
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1475
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1476
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(2);
|
|
1477
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1478
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1479
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1480
|
+
}
|
|
1037
1481
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1038
1482
|
/*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')
|
|
1039
1483
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -1068,6 +1512,25 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1068
1512
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
1069
1513
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1070
1514
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1515
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1516
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 12.6 pts, 1.2 pts, 1.2 pts)');
|
|
1517
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1518
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1519
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1520
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1521
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1522
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1523
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4.1 pts, 5.4 pts, 5.5 pts)');
|
|
1524
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1525
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1526
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(6);
|
|
1527
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1528
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1529
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(2);
|
|
1530
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1531
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1532
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1533
|
+
}
|
|
1071
1534
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1072
1535
|
/*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')
|
|
1073
1536
|
multipleSelectionPage.steps.checkAnswer();
|