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
|
@@ -49,7 +49,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
49
49
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
50
50
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
51
51
|
if (alternativeAnswerCheck === 'true') {
|
|
52
|
-
multipleSelectionPage.steps.
|
|
52
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
53
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
54
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
55
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
56
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
57
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
58
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
59
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
60
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
61
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
62
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
63
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
64
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
65
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
66
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
67
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
53
68
|
}
|
|
54
69
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
55
70
|
});
|
|
@@ -138,7 +153,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
138
153
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
139
154
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
140
155
|
if (alternativeAnswerCheck === 'true') {
|
|
141
|
-
multipleSelectionPage.steps.
|
|
156
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
157
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
158
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
159
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
160
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
161
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
162
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
163
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
164
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
165
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
166
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
167
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
168
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
169
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
170
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
171
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
142
172
|
}
|
|
143
173
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
144
174
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -174,7 +204,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
174
204
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
175
205
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
176
206
|
if (alternativeAnswerCheck === 'true') {
|
|
177
|
-
multipleSelectionPage.steps.
|
|
207
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
208
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
209
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
210
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
211
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
212
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
213
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
214
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
215
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
216
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
217
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
218
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
219
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
220
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
221
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
222
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
178
223
|
}
|
|
179
224
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
180
225
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -209,7 +254,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
209
254
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
210
255
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
211
256
|
if (alternativeAnswerCheck === 'true') {
|
|
212
|
-
multipleSelectionPage.steps.
|
|
257
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
258
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
259
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
260
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
261
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
262
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
263
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
264
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
265
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
266
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
267
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
268
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
269
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
270
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
271
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
272
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
213
273
|
}
|
|
214
274
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
215
275
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
@@ -243,7 +303,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
243
303
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
244
304
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
245
305
|
if (alternativeAnswerCheck === 'true') {
|
|
246
|
-
multipleSelectionPage.steps.
|
|
306
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
307
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
308
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
309
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
310
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
311
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
312
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
313
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
314
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
315
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
316
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
317
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
318
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
319
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
320
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
321
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
247
322
|
}
|
|
248
323
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
249
324
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
@@ -283,7 +358,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
283
358
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
284
359
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
285
360
|
if (alternativeAnswerCheck === 'true') {
|
|
286
|
-
multipleSelectionPage.steps.
|
|
361
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 8 pts)');
|
|
362
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
363
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
364
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
365
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
366
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
367
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
368
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
369
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
370
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
371
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
372
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
373
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
374
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
375
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
376
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
287
377
|
}
|
|
288
378
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
289
379
|
/*cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, incorrect answer label and border should not be displayed')
|
|
@@ -318,7 +408,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
318
408
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
319
409
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
320
410
|
if (alternativeAnswerCheck === 'true') {
|
|
321
|
-
multipleSelectionPage.steps.
|
|
411
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 8 pts)');
|
|
412
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
413
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
414
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
415
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
416
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
417
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
418
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 2 pts)');
|
|
419
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
420
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
421
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
422
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
423
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
424
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
425
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
426
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
322
427
|
}
|
|
323
428
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
324
429
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
@@ -395,7 +500,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
395
500
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
396
501
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
397
502
|
if (alternativeAnswerCheck === 'true') {
|
|
398
|
-
multipleSelectionPage.steps.
|
|
503
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
504
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
505
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
506
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
507
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
508
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
509
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
510
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
511
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
512
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
513
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
514
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
515
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
516
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
517
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
518
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
399
519
|
}
|
|
400
520
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
401
521
|
});
|
|
@@ -484,7 +604,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
484
604
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
485
605
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
486
606
|
if (alternativeAnswerCheck === 'true') {
|
|
487
|
-
multipleSelectionPage.steps.
|
|
607
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
608
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
609
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
610
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
611
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
612
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
613
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
614
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
615
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
616
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
617
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
618
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
619
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
620
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
621
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
622
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
488
623
|
}
|
|
489
624
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
490
625
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -519,7 +654,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
519
654
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
520
655
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
521
656
|
if (alternativeAnswerCheck === 'true') {
|
|
522
|
-
multipleSelectionPage.steps.
|
|
657
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
658
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
659
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
660
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
661
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
662
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
663
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
664
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
665
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
666
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
667
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
668
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
669
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
670
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
671
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
672
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
523
673
|
}
|
|
524
674
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
525
675
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -554,7 +704,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
554
704
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
555
705
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
556
706
|
if (alternativeAnswerCheck === 'true') {
|
|
557
|
-
multipleSelectionPage.steps.
|
|
707
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
708
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
709
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
710
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
711
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
712
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
713
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
714
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
715
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
716
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
717
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
718
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
719
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
720
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
721
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
722
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
558
723
|
}
|
|
559
724
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
560
725
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
@@ -588,7 +753,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
588
753
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
589
754
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
590
755
|
if (alternativeAnswerCheck === 'true') {
|
|
591
|
-
multipleSelectionPage.steps.
|
|
756
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
757
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
758
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
759
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
760
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
761
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
762
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
763
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
764
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
765
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
766
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
767
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
768
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
769
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
770
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
771
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
592
772
|
}
|
|
593
773
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
594
774
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides common response, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
@@ -626,7 +806,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
626
806
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
627
807
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
628
808
|
if (alternativeAnswerCheck === 'true') {
|
|
629
|
-
multipleSelectionPage.steps.
|
|
809
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
810
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
811
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
812
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
813
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
814
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
815
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
816
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
817
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
818
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
819
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
820
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
821
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
822
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
823
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
824
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
630
825
|
}
|
|
631
826
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
632
827
|
/*cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, incorrect answer label and border should not be displayed')
|
|
@@ -661,7 +856,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
661
856
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
662
857
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
663
858
|
if (alternativeAnswerCheck === 'true') {
|
|
664
|
-
multipleSelectionPage.steps.
|
|
859
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
860
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
861
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
862
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
863
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
864
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
865
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
866
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 3.33 pts)');
|
|
867
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
868
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
869
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
870
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
871
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
872
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
873
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
874
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
665
875
|
}
|
|
666
876
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
667
877
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
@@ -716,7 +926,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
716
926
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
717
927
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
718
928
|
if (alternativeAnswerCheck === 'true') {
|
|
719
|
-
multipleSelectionPage.steps.
|
|
929
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
930
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
931
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
932
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
933
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
934
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
935
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
936
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
937
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
938
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
939
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
940
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
941
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
942
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
943
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
944
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
720
945
|
}
|
|
721
946
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
722
947
|
});
|
|
@@ -804,7 +1029,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
804
1029
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
805
1030
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
806
1031
|
if (alternativeAnswerCheck === 'true') {
|
|
807
|
-
multipleSelectionPage.steps.
|
|
1032
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1033
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1034
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1035
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1036
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1037
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1038
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1039
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1040
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1041
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1042
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1043
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1044
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1045
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1046
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1047
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
808
1048
|
}
|
|
809
1049
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
810
1050
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -840,7 +1080,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
840
1080
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
841
1081
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
842
1082
|
if (alternativeAnswerCheck === 'true') {
|
|
843
|
-
multipleSelectionPage.steps.
|
|
1083
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1084
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1085
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1086
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1087
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1088
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1089
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1090
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1091
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1092
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1093
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1094
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1095
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1096
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1097
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1098
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
844
1099
|
}
|
|
845
1100
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
846
1101
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, incorrect answer label and border should not be displayed')
|
|
@@ -875,7 +1130,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
875
1130
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
876
1131
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
877
1132
|
if (alternativeAnswerCheck === 'true') {
|
|
878
|
-
multipleSelectionPage.steps.
|
|
1133
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1134
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1135
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1136
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1137
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1138
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1139
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1140
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1141
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1142
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1143
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1144
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1145
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1146
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1147
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1148
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
879
1149
|
}
|
|
880
1150
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
881
1151
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, incorrect answer label and border should not be displayed')
|
|
@@ -909,7 +1179,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
909
1179
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
910
1180
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
911
1181
|
if (alternativeAnswerCheck === 'true') {
|
|
912
|
-
multipleSelectionPage.steps.
|
|
1182
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1183
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1184
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1185
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1186
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1187
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1188
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1189
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1190
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1191
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1192
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1193
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1194
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1195
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1196
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1197
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
913
1198
|
}
|
|
914
1199
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
915
1200
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|
|
@@ -942,7 +1227,22 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
|
942
1227
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
943
1228
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
944
1229
|
if (alternativeAnswerCheck === 'true') {
|
|
945
|
-
multipleSelectionPage.steps.
|
|
1230
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response - 6.67 pts)');
|
|
1231
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1232
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1233
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1234
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1235
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1236
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1237
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response - 6.67 pts)');
|
|
1238
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1239
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1240
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1241
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1242
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1243
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1244
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1245
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
946
1246
|
}
|
|
947
1247
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
948
1248
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
|