itemengine-cypress-automation 1.0.573-IEI-7080-f70315e.0 → 1.0.574-IEI-7080-e6d1871.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +181 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +37 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +72 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +19 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +56 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +57 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +15 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +54 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +12 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomizationAllViews.js +156 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +0 -2
- package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +284 -17
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +397 -25
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +320 -20
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +97 -10
- package/cypress/e2e/ILC/dataApi/saveItems.js +1 -1
- package/cypress/e2e/ILC/dataApi/saveQuestions.js +7 -7
- package/cypress/e2e/ILC/dataApi/saveQuestionsMCQAlternateAnswers.js +6 -6
- package/cypress/pages/components/additionalSettingsPanel.js +9 -0
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/colorPopupComponent.js +1 -1
- package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +4 -10
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +15 -2
- package/cypress/pages/components/gradingViewEnumerationComponent.js +5 -0
- package/cypress/pages/components/imageCanvasComponent.js +0 -3
- package/cypress/pages/components/placeholderTextSectionComponent.js +10 -0
- package/cypress/pages/components/showAlternativeAnswersComponent.js +41 -65
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +21 -1
- package/cypress/pages/imageHighlightPage.js +184 -7
- package/cypress/pages/itemPreviewPage.js +1 -0
- package/cypress/pages/multipleSelectionPage.js +32 -0
- package/cypress/pages/singleSelectionPage.js +17 -0
- package/cypress/support/helpers/utilities.js +16 -0
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +47 -53
- package/service.yaml +2 -2
|
@@ -53,7 +53,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
53
53
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
54
54
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
55
55
|
if (alternativeAnswerCheck === 'true') {
|
|
56
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
57
72
|
}
|
|
58
73
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
59
74
|
});
|
|
@@ -147,7 +162,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
147
162
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
148
163
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
149
164
|
if (alternativeAnswerCheck === 'true') {
|
|
150
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
151
181
|
}
|
|
152
182
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
153
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')
|
|
@@ -185,7 +215,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
185
215
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
186
216
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
187
217
|
if (alternativeAnswerCheck === 'true') {
|
|
188
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
189
234
|
}
|
|
190
235
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
191
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')
|
|
@@ -222,7 +267,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
222
267
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
223
268
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
224
269
|
if (alternativeAnswerCheck === 'true') {
|
|
225
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
226
286
|
}
|
|
227
287
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
228
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')
|
|
@@ -260,7 +320,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
260
320
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
261
321
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
262
322
|
if (alternativeAnswerCheck === 'true') {
|
|
263
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
264
339
|
}
|
|
265
340
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
266
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')
|
|
@@ -296,7 +371,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
296
371
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
297
372
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
298
373
|
if (alternativeAnswerCheck === 'true') {
|
|
299
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
300
390
|
}
|
|
301
391
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
302
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')
|
|
@@ -340,7 +430,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
340
430
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
341
431
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
342
432
|
if (alternativeAnswerCheck === 'true') {
|
|
343
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
344
450
|
}
|
|
345
451
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
346
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')
|
|
@@ -377,7 +483,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
377
483
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
378
484
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
379
485
|
if (alternativeAnswerCheck === 'true') {
|
|
380
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
381
503
|
}
|
|
382
504
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
383
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')
|
|
@@ -456,7 +578,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
456
578
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
457
579
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
458
580
|
if (alternativeAnswerCheck === 'true') {
|
|
459
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
460
598
|
}
|
|
461
599
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
462
600
|
});
|
|
@@ -549,7 +687,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
549
687
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
550
688
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
551
689
|
if (alternativeAnswerCheck === 'true') {
|
|
552
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
553
707
|
}
|
|
554
708
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
555
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')
|
|
@@ -587,7 +741,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
587
741
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
588
742
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
589
743
|
if (alternativeAnswerCheck === 'true') {
|
|
590
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
591
761
|
}
|
|
592
762
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
593
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')
|
|
@@ -624,7 +794,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
624
794
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
625
795
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
626
796
|
if (alternativeAnswerCheck === 'true') {
|
|
627
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
628
814
|
}
|
|
629
815
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
630
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')
|
|
@@ -661,7 +847,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
661
847
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
662
848
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
663
849
|
if (alternativeAnswerCheck === 'true') {
|
|
664
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
665
867
|
}
|
|
666
868
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
667
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')
|
|
@@ -697,7 +899,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
697
899
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
698
900
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
699
901
|
if (alternativeAnswerCheck === 'true') {
|
|
700
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
701
919
|
}
|
|
702
920
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
703
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')
|
|
@@ -741,7 +959,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
741
959
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
742
960
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
743
961
|
if (alternativeAnswerCheck === 'true') {
|
|
744
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
745
979
|
}
|
|
746
980
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
747
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')
|
|
@@ -777,7 +1011,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
777
1011
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
778
1012
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
779
1013
|
if (alternativeAnswerCheck === 'true') {
|
|
780
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
781
1031
|
}
|
|
782
1032
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
783
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')
|
|
@@ -791,7 +1041,7 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
791
1041
|
});
|
|
792
1042
|
});
|
|
793
1043
|
|
|
794
|
-
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', () => {
|
|
795
1045
|
abortEarlySetup();
|
|
796
1046
|
before(() => {
|
|
797
1047
|
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
|
@@ -835,7 +1085,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
835
1085
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
836
1086
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
837
1087
|
if (alternativeAnswerCheck === 'true') {
|
|
838
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
839
1104
|
}
|
|
840
1105
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
841
1106
|
});
|
|
@@ -928,7 +1193,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
928
1193
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
929
1194
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
930
1195
|
if (alternativeAnswerCheck === 'true') {
|
|
931
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
932
1212
|
}
|
|
933
1213
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
934
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')
|
|
@@ -966,7 +1246,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
966
1246
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
967
1247
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
968
1248
|
if (alternativeAnswerCheck === 'true') {
|
|
969
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
970
1265
|
}
|
|
971
1266
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
972
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')
|
|
@@ -1003,7 +1298,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1003
1298
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1004
1299
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1005
1300
|
if (alternativeAnswerCheck === 'true') {
|
|
1006
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
1007
1317
|
}
|
|
1008
1318
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1009
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')
|
|
@@ -1040,7 +1350,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1040
1350
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1041
1351
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1042
1352
|
if (alternativeAnswerCheck === 'true') {
|
|
1043
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
1044
1369
|
}
|
|
1045
1370
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1046
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')
|
|
@@ -1076,7 +1401,22 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1076
1401
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1077
1402
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1078
1403
|
if (alternativeAnswerCheck === 'true') {
|
|
1079
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
1080
1420
|
}
|
|
1081
1421
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1082
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')
|
|
@@ -1120,7 +1460,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1120
1460
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1121
1461
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1122
1462
|
if (alternativeAnswerCheck === 'true') {
|
|
1123
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
1124
1480
|
}
|
|
1125
1481
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1126
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')
|
|
@@ -1157,7 +1513,23 @@ describe('Create item page - Multiple selection: Partial different weights with
|
|
|
1157
1513
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1158
1514
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(6);
|
|
1159
1515
|
if (alternativeAnswerCheck === 'true') {
|
|
1160
|
-
multipleSelectionPage.steps.
|
|
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();
|
|
1161
1533
|
}
|
|
1162
1534
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
1163
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')
|