itemengine-cypress-automation 1.0.579-IEI-7046-a317a6b.0 → 1.0.579
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/config-files/ilprod.json +2 -1
- package/cypress/config-files/ilqa.json +2 -1
- package/cypress/config-files/ilstage.json +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +8 -123
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +8 -123
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +14 -131
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +9 -138
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +9 -138
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +10 -153
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -138
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +7 -108
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +9 -138
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +135 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +135 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +136 -9
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +7 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +154 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +154 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +154 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +135 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +116 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +136 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +21 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +190 -2
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +17 -0
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +18 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +19 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +18 -0
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +18 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +19 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +17 -0
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +16 -0
- package/cypress/pages/components/ckEditorToolbar.js +20 -0
- package/cypress/pages/components/draggableOptionContainer.js +14 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +17 -1
- package/cypress/pages/components/optionsWrapperComponent.js +33 -2
- package/cypress/pages/components/questionInputFieldComponent.js +18 -2
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -38
- package/cypress/pages/fillInTheGapsDropdownPage.js +47 -2
- package/cypress/pages/matchingPage.js +18 -0
- package/cypress/pages/numberLineLabelPage.js +1 -0
- package/cypress/pages/textSelectionPage.js +17 -1
- package/package.json +1 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { dragAndDropIntoCategoriesPage } from "../../../../pages";
|
|
2
|
-
import { showAlternativeAnswersComponent } from "../../../../pages/components";
|
|
3
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
4
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
5
4
|
const css = Cypress.env('css');
|
|
6
5
|
|
|
7
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
8
|
-
|
|
9
6
|
describe('Create item page - Drag and drop into categories: All or nothing with alternative answers', () => {
|
|
10
7
|
before(() => {
|
|
11
8
|
cy.loginAs('admin');
|
|
@@ -35,32 +32,16 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
35
32
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
|
36
33
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
|
37
34
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
41
|
-
{
|
|
42
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
43
|
-
pointsText: '(20 points)',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
47
|
-
pointsText: '(10 points)',
|
|
48
|
-
}
|
|
49
|
-
]);;
|
|
50
|
-
} else {
|
|
51
|
-
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
|
52
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
53
|
-
}
|
|
35
|
+
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
|
36
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
54
37
|
});
|
|
55
38
|
|
|
56
39
|
it('CSS of correct answer section and dropzone cell numeration', { tags: 'css' }, () => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
}
|
|
40
|
+
utilities.verifyCSS(dragAndDropIntoCategoriesPage.correctAnswersLabel(), {
|
|
41
|
+
'color': css.color.sectionHeading,
|
|
42
|
+
'font-size': css.fontSize.default,
|
|
43
|
+
'font-weight': css.fontWeight.bold
|
|
44
|
+
});
|
|
64
45
|
utilities.verifyCSS(dragAndDropIntoCategoriesPage.dropzoneCellNumeration(), {
|
|
65
46
|
'background-color': css.color.liTextSelectedBg,
|
|
66
47
|
'border': `1px solid ${css.color.optionsSelectedText}`
|
|
@@ -181,21 +162,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
181
162
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
182
163
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
183
164
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
184
|
-
|
|
185
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
186
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
187
|
-
{
|
|
188
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
189
|
-
pointsText: '(20 points)',
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
193
|
-
pointsText: '(10 points)',
|
|
194
|
-
}
|
|
195
|
-
]);
|
|
196
|
-
} else {
|
|
197
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
198
|
-
}
|
|
165
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
199
166
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
200
167
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
201
168
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -217,21 +184,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
217
184
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
218
185
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
219
186
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
220
|
-
|
|
221
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
222
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
223
|
-
{
|
|
224
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
225
|
-
pointsText: '(20 points)',
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
229
|
-
pointsText: '(10 points)',
|
|
230
|
-
}
|
|
231
|
-
]);
|
|
232
|
-
} else {
|
|
233
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
234
|
-
}
|
|
187
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
235
188
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
236
189
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
237
190
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -253,21 +206,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
253
206
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(3);
|
|
254
207
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
255
208
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
256
|
-
|
|
257
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
258
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
259
|
-
{
|
|
260
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
261
|
-
pointsText: '(20 points)',
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
265
|
-
pointsText: '(10 points)',
|
|
266
|
-
}
|
|
267
|
-
]);
|
|
268
|
-
} else {
|
|
269
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
270
|
-
}
|
|
209
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
271
210
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
272
211
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correct as per the alternative accordion but one cell incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
273
212
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -291,21 +230,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
291
230
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
|
292
231
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
293
232
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
294
|
-
|
|
295
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
296
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
297
|
-
{
|
|
298
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
299
|
-
pointsText: '(20 points)',
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
303
|
-
pointsText: '(10 points)',
|
|
304
|
-
}
|
|
305
|
-
]);
|
|
306
|
-
} else {
|
|
307
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
308
|
-
}
|
|
233
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
309
234
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
310
235
|
/*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
311
236
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -329,21 +254,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
329
254
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(4);
|
|
330
255
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
|
|
331
256
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
332
|
-
|
|
333
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
334
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
335
|
-
{
|
|
336
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
337
|
-
pointsText: '(20 points)',
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
341
|
-
pointsText: '(10 points)',
|
|
342
|
-
}
|
|
343
|
-
]);
|
|
344
|
-
} else {
|
|
345
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
346
|
-
}
|
|
257
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
347
258
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
348
259
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
349
260
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -369,21 +280,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
369
280
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(3);
|
|
370
281
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
371
282
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
372
|
-
|
|
373
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
374
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
375
|
-
{
|
|
376
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
377
|
-
pointsText: '(20 points)',
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
381
|
-
pointsText: '(10 points)',
|
|
382
|
-
}
|
|
383
|
-
]);
|
|
384
|
-
} else {
|
|
385
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
386
|
-
}
|
|
283
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
387
284
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
388
285
|
/*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
389
286
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -407,21 +304,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
|
407
304
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
408
305
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
409
306
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
410
|
-
|
|
411
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
412
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
413
|
-
{
|
|
414
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
415
|
-
pointsText: '(20 points)',
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], [], []],
|
|
419
|
-
pointsText: '(10 points)',
|
|
420
|
-
}
|
|
421
|
-
]);
|
|
422
|
-
} else {
|
|
423
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
424
|
-
}
|
|
307
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
|
425
308
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
426
309
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
427
310
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { dragAndDropIntoCategoriesPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
|
-
import { showAlternativeAnswersComponent } from "../../../../pages/components";
|
|
4
|
-
|
|
5
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
|
|
6
3
|
|
|
7
4
|
describe('Create item page - Drag and drop into categories: Per correct option with alternative answers', () => {
|
|
8
5
|
before(() => {
|
|
@@ -34,21 +31,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
34
31
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
|
35
32
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
|
36
33
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
|
37
|
-
|
|
38
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
39
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
40
|
-
{
|
|
41
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
42
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
46
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
47
|
-
}
|
|
48
|
-
]);
|
|
49
|
-
} else {
|
|
50
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
51
|
-
}
|
|
34
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
52
35
|
});
|
|
53
36
|
|
|
54
37
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
|
@@ -116,21 +99,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
116
99
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
|
117
100
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
118
101
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
119
|
-
|
|
120
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
121
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
122
|
-
{
|
|
123
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
124
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
128
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
129
|
-
}
|
|
130
|
-
]);
|
|
131
|
-
} else {
|
|
132
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
133
|
-
}
|
|
102
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
134
103
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
135
104
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
136
105
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
@@ -153,21 +122,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
153
122
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
154
123
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
|
155
124
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
156
|
-
|
|
157
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
158
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
159
|
-
{
|
|
160
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
161
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
165
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
166
|
-
}
|
|
167
|
-
]);
|
|
168
|
-
} else {
|
|
169
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
170
|
-
}
|
|
125
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
171
126
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
172
127
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
173
128
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -189,21 +144,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
189
144
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
190
145
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
191
146
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
192
|
-
|
|
193
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
194
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
195
|
-
{
|
|
196
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
197
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
201
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
202
|
-
}
|
|
203
|
-
]);
|
|
204
|
-
} else {
|
|
205
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
206
|
-
}
|
|
147
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
207
148
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
208
149
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correct as per the alternative accordion but one cell incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
209
150
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -228,21 +169,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
228
169
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
229
170
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
230
171
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
231
|
-
|
|
232
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
233
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
234
|
-
{
|
|
235
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
236
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
240
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
241
|
-
}
|
|
242
|
-
]);
|
|
243
|
-
} else {
|
|
244
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
245
|
-
}
|
|
172
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
246
173
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
247
174
|
/*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the correct accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
248
175
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -295,21 +222,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
295
222
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
296
223
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
|
297
224
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
298
|
-
|
|
299
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
300
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
301
|
-
{
|
|
302
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
303
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
307
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
308
|
-
}
|
|
309
|
-
]);
|
|
310
|
-
} else {
|
|
311
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
312
|
-
}
|
|
225
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
313
226
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
314
227
|
/*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the correct accordion but with one option exclusively from the alternative accordion in the same dropzone and clicks on \'Check answer\' button, correct icon should be displayed besides the correct accordion response, incorrect icon should be displayed besides the alternative accordion response, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
315
228
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -333,21 +246,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
333
246
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
334
247
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
|
335
248
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
336
|
-
|
|
337
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
338
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
339
|
-
{
|
|
340
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
341
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
345
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
346
|
-
}
|
|
347
|
-
]);
|
|
348
|
-
} else {
|
|
349
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
350
|
-
}
|
|
249
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
351
250
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
352
251
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
353
252
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -374,21 +273,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
374
273
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
375
274
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
|
376
275
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
377
|
-
|
|
378
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
379
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
380
|
-
{
|
|
381
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
382
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
386
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
387
|
-
}
|
|
388
|
-
]);
|
|
389
|
-
} else {
|
|
390
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
391
|
-
}
|
|
276
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
392
277
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
393
278
|
/*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the correct accordion but with one option common across both the accordions and clicks on \'Check answer\' button, then the correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
394
279
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
|
@@ -412,21 +297,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
|
412
297
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
|
413
298
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
|
414
299
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
415
|
-
|
|
416
|
-
showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
|
|
417
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInAlternateAnswerSection([
|
|
418
|
-
{
|
|
419
|
-
correctAnswers: [['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []],
|
|
420
|
-
pointsText: '(Points per correct option - 5 points)',
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
correctAnswers: [['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []],
|
|
424
|
-
pointsText: '(Points per correct option - 3 points)',
|
|
425
|
-
}
|
|
426
|
-
]);
|
|
427
|
-
} else {
|
|
428
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
429
|
-
}
|
|
300
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
|
430
301
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
431
302
|
/*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the correct accordion but with one option exclusively from the alternative accordion in the same dropzone and clicks on \'Check answer\' button, then correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
|
432
303
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|