itemengine-cypress-automation 1.0.584-IEI-7048-098328c.0 → 1.0.584-IEI-7067-Add-Automated-test-coverage-for-essay-respone-math-a7fb10a.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.
Files changed (91) hide show
  1. package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +69 -0
  2. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -1
  3. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +109 -8
  4. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +109 -8
  5. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +109 -8
  6. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +7 -2
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +139 -10
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +4 -1
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +124 -9
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +139 -10
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +4 -1
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +124 -9
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +109 -8
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +124 -9
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +243 -2
  16. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -77
  17. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -78
  18. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -78
  19. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +9 -104
  20. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +0 -4
  21. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -95
  22. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -95
  23. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -84
  24. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +0 -4
  25. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -73
  26. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -84
  27. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +2 -187
  28. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -79
  29. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -79
  30. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -79
  31. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +0 -4
  32. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -103
  33. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +0 -4
  34. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -103
  35. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
  36. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -91
  37. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +0 -4
  38. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -79
  39. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -91
  40. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +5 -209
  41. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +1 -195
  42. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
  43. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -85
  44. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -82
  45. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -85
  46. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +6 -109
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +0 -4
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -103
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -103
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -91
  51. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +0 -4
  52. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -79
  53. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -91
  54. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +3 -207
  55. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +1 -9
  56. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -102
  57. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -102
  58. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -107
  59. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +2 -36
  60. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -5
  61. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +0 -1
  62. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +1 -10
  63. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -128
  64. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -115
  65. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -128
  66. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +1 -9
  67. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -115
  68. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -102
  69. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -115
  70. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -226
  71. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +1 -9
  72. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -102
  73. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +2 -102
  74. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -102
  75. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +5 -32
  76. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +0 -3
  77. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +1 -10
  78. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -128
  79. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +2 -115
  80. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +2 -128
  81. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +1 -9
  82. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -115
  83. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -102
  84. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -115
  85. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -216
  86. package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +1 -18
  87. package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
  88. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +25 -1
  89. package/cypress/pages/listOrderingPage.js +1 -60
  90. package/cypress/pages/matchingPage.js +1 -23
  91. package/package.json +1 -1
@@ -8,7 +8,6 @@ const views = utilities.getViews(correctAnswerViews);
8
8
  var itemReferenceID = "";
9
9
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
10
10
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle'];
11
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
12
11
 
13
12
  describe('Create item page - Matching: All or nothing ', () => {
14
13
  before(() => {
@@ -121,11 +120,7 @@ describe('Create item page - Matching: All or nothing ', () => {
121
120
  matchingPage.steps.verifyDropzoneNumeration();
122
121
  matchingPage.steps.verifyCorrectIncorrectIconsNotExist();
123
122
  matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
124
- if(alternativeAnswerCheck === 'true') {
125
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
126
- } else {
127
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
128
- }
123
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
129
124
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
130
125
  });
131
126
 
@@ -213,223 +208,11 @@ describe('Create item page - Matching: All or nothing ', () => {
213
208
  matchingPage.steps.verifyCorrectOptionIcon(2);
214
209
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
215
210
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
216
- if (alternativeAnswerCheck === 'true') {
217
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
218
- }
219
211
  cy.eyesCheckWindow(`Matching ${view} - Attempting the question correctly`);
220
212
  });
221
213
  });
222
214
  });
223
215
 
224
- // alternative answer enhancement test
225
- if(alternativeAnswerCheck === 'true') {
226
- views.forEach((view) => {
227
- describe(`${view}: Auto scored - All or nothing scoring with alternative answer`, { tags: 'smoke' }, () => {
228
- abortEarlySetup();
229
- before(() => {
230
- switch (view) {
231
- case 'Question preview':
232
- matchingPage.steps.navigateToCreateQuestion('matching');
233
- cy.barsPreLoaderWait();
234
- matchingPage.steps.addTextInQuestionInstructionsInputField('Fill the categories with the right answer.');
235
- matchingPage.steps.allotPoints(20);
236
- matchingPage.steps.addMultipleOptionFields(2);
237
- matchingPage.steps.enterTextInPromptInputField(promptTextArray);
238
- matchingPage.steps.enterTextInOptionInputField(optionsArray);
239
- matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
240
- matchingPage.steps.addAlternativeAnswerAccordion(1);
241
- matchingPage.steps.allotPoints(10);
242
- matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
243
- matchingPage.steps.switchToPreviewTab();
244
- break;
245
- case 'Item preview':
246
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
247
- itemPreviewPage.steps.switchToPreviewTab();
248
- break;
249
- case 'Grading view':
250
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
251
- break;
252
- };
253
- });
254
-
255
- beforeEach(() => {
256
- switch (view) {
257
- case 'Question preview':
258
- matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
259
- matchingPage.steps.resetQuestionPreview();
260
- break;
261
- case 'Item preview':
262
- matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
263
- itemPreviewPage.steps.resetQuestionPreview();
264
- break;
265
- case 'Grading view':
266
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
267
- break;
268
- }
269
- });
270
-
271
- if (view === 'Question preview') {
272
- after(() => {
273
- matchingPage.steps.clickOnSaveQuestionButton();
274
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
275
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
276
- });
277
- };
278
-
279
- it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
280
- if (view === 'Grading view') {
281
- studentViewPage.steps.submitResponse();
282
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
283
- studentViewPage.steps.clickOnGoToGradingViewButton();
284
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
285
- };
286
- if (view === 'Question preview' || view === 'Item preview') {
287
- matchingPage.steps.verifyPreviewScore(0, 20);
288
- matchingPage.steps.switchToGradingView();
289
- matchingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
290
- };
291
- matchingPage.steps.verifyDropzoneNumeration();
292
- matchingPage.steps.verifyCorrectIncorrectIconsNotExist();
293
- matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
294
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
295
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
296
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
297
- matchingPage.steps.disableShowAlternativeAnswersToggle();
298
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
299
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
300
- matchingPage.steps.clickShowAlternativeAnswersToggle();
301
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
302
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
303
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Eagle'], ['Cat']], 1);
304
- matchingPage.steps.clickShowAlternativeAnswersToggle();
305
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
306
- });
307
-
308
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
309
- matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Eagle', dropzoneIndex: 0 }, { optionText: 'Bear', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
310
- if (view === 'Grading view') {
311
- studentViewPage.steps.submitResponse();
312
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
313
- studentViewPage.steps.clickOnGoToGradingViewButton();
314
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
315
- };
316
- if (view === 'Question preview' || view === 'Item preview') {
317
- matchingPage.steps.verifyPreviewScore(0, 20);
318
- matchingPage.steps.switchToGradingView();
319
- };
320
- matchingPage.steps.verifyIncorrectOptionIcon(0);
321
- matchingPage.steps.verifyIncorrectOptionIcon(1);
322
- matchingPage.steps.verifyIncorrectOptionIcon(2);
323
- matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
324
- // all check correct
325
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
326
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
327
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
328
- matchingPage.steps.disableShowAlternativeAnswersToggle();
329
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
330
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
331
- matchingPage.steps.clickShowAlternativeAnswersToggle();
332
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
333
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
334
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Eagle'], ['Cat']], 1);
335
- matchingPage.steps.clickShowAlternativeAnswersToggle();
336
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
337
- });
338
-
339
- it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
340
- if (view === 'Grading view') {
341
- studentViewPage.steps.clearResponses();
342
- };
343
- matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Bear', dropzoneIndex: 2 }]);
344
- if (view === 'Grading view') {
345
- studentViewPage.steps.submitResponse();
346
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
347
- studentViewPage.steps.clickOnGoToGradingViewButton();
348
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
349
- };
350
- if (view === 'Question preview' || view === 'Item preview') {
351
- matchingPage.steps.verifyPreviewScore(0, 20);
352
- matchingPage.steps.switchToGradingView();
353
- };
354
- matchingPage.steps.verifyCorrectOptionIcon(0);
355
- matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
356
- matchingPage.steps.verifyIncorrectOptionIcon(2);
357
- matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
358
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
359
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
360
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
361
- matchingPage.steps.disableShowAlternativeAnswersToggle();
362
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
363
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
364
- matchingPage.steps.clickShowAlternativeAnswersToggle();
365
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
366
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
367
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Eagle'], ['Cat']], 1);
368
- matchingPage.steps.clickShowAlternativeAnswersToggle();
369
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
370
- });
371
-
372
- it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
373
- if (view === 'Grading view') {
374
- studentViewPage.steps.clearResponses();
375
- };
376
- matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
377
- if (view === 'Grading view') {
378
- studentViewPage.steps.submitResponse();
379
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
380
- studentViewPage.steps.clickOnGoToGradingViewButton();
381
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
382
- };
383
- if (view === 'Question preview' || view === 'Item preview') {
384
- matchingPage.steps.verifyPreviewScore(0, 20);
385
- matchingPage.steps.switchToGradingView();
386
- };
387
- matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
388
- matchingPage.steps.verifyCorrectOptionIcon(1);
389
- matchingPage.steps.verifyCorrectOptionIcon(2);
390
- matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
391
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
392
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
393
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
394
- matchingPage.steps.disableShowAlternativeAnswersToggle();
395
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
396
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
397
- matchingPage.steps.clickShowAlternativeAnswersToggle();
398
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
399
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
400
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Eagle'], ['Cat']], 1);
401
- matchingPage.steps.clickShowAlternativeAnswersToggle();
402
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
403
- });
404
-
405
- it(`${view}: Matching - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
406
- if (view === 'Grading view') {
407
- studentViewPage.steps.clearResponses();
408
- };
409
- matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Elephant', dropzoneIndex: 0 }, { optionText: 'Fish', dropzoneIndex: 1 }, { optionText: 'Cat', dropzoneIndex: 2 }]);
410
- if (view === 'Grading view') {
411
- studentViewPage.steps.submitResponse();
412
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
413
- studentViewPage.steps.clickOnGoToGradingViewButton();
414
- gradingViewPage.steps.verifyGradingViewScore(20, 20);
415
- };
416
- if (view === 'Question preview' || view === 'Item preview') {
417
- matchingPage.steps.verifyPreviewScore(20, 20);
418
- matchingPage.steps.switchToGradingView();
419
- matchingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
420
- };
421
- matchingPage.steps.verifyCorrectOptionIcon(0);
422
- matchingPage.steps.verifyCorrectOptionIcon(1);
423
- matchingPage.steps.verifyCorrectOptionIcon(2);
424
- matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
425
- matchingPage.steps.verifyCorrectAnswerSectionNotExists();
426
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
427
- cy.eyesCheckWindow(`Matching ${view} - Attempting the question correctly`);
428
- });
429
- });
430
- });
431
- }
432
-
433
216
  views.forEach((view) => {
434
217
  describe(`${view}: Matching drag and drop - Manually scored`, { tags: 'smoke' }, () => {
435
218
  abortEarlySetup();
@@ -571,11 +354,7 @@ describe('Create item page - Matching: All or nothing ', () => {
571
354
  matchingPage.steps.verifyDropzoneNumeration();
572
355
  matchingPage.steps.verifyCorrectIncorrectIconsNotExist();
573
356
  matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
574
- if (alternativeAnswerCheck === 'true') {
575
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '', 0);
576
- } else {
577
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
578
- }
357
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
579
358
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
580
359
  });
581
360
 
@@ -640,9 +419,6 @@ describe('Create item page - Matching: All or nothing ', () => {
640
419
  matchingPage.steps.verifyCorrectOptionIcon(2);
641
420
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
642
421
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
643
- if (alternativeAnswerCheck === 'true') {
644
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
645
- }
646
422
  });
647
423
  });
648
424
  });
@@ -2,7 +2,6 @@ import { matchingPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
6
5
 
7
6
  const defaultListOptions = ['No limit', '1', '2', '3']
8
7
  const options = ['Petals', 'Leaves', 'Roots', 'Stem', 'Seeds', 'Flower', 'Branch'];
@@ -139,11 +138,7 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
139
138
  matchingPage.steps.switchToPreviewTab();
140
139
  matchingPage.steps.switchToGradingView();
141
140
  matchingPage.steps.verifyDropzoneNumeration();
142
- if(alternativeAnswerCheck === 'true') {
143
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(5 points)', 0);
144
- } else {
145
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
146
- }
141
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
147
142
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionForMultipleOptions([['Petals', 'Leaves'], ['Roots'], ['Stem', 'Seeds']]);
148
143
  });
149
144
 
@@ -249,9 +244,6 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
249
244
  matchingPage.steps.verifyCorrectOptionIcon(2, 1);
250
245
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
251
246
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
252
- if (alternativeAnswerCheck === 'true') {
253
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
254
- }
255
247
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
248
  /* cy.log('When the user attempts the question correctly 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 correct\' and correct answer section should not be displayed')
257
249
  matchingPage.steps.checkAnswer();
@@ -1,7 +1,6 @@
1
1
  import { matchingPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
4
  const css = Cypress.env('css');
6
5
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
7
6
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
@@ -34,23 +33,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
34
33
  matchingPage.steps.verifyDropdownNumeration(0);
35
34
  matchingPage.steps.verifyDropdownNumeration(1);
36
35
  matchingPage.steps.verifyDropdownNumeration(2);
37
- if (alternativeAnswerCheck === 'true') {
38
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
39
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
40
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
41
- matchingPage.steps.disableShowAlternativeAnswersToggle();
42
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
43
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
44
- matchingPage.steps.clickShowAlternativeAnswersToggle();
45
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
46
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
47
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
48
- matchingPage.steps.clickShowAlternativeAnswersToggle();
49
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
50
- } else {
51
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
52
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
53
- }
36
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
37
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
54
38
  });
55
39
 
56
40
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct tab and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
@@ -63,9 +47,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
63
47
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
64
48
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
65
49
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
66
- if (alternativeAnswerCheck === 'true') {
67
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
68
- }
69
50
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
70
51
  });
71
52
 
@@ -79,9 +60,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
79
60
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
80
61
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
81
62
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
82
- if (alternativeAnswerCheck === 'true') {
83
- matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
84
- }
85
63
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
86
64
  });
87
65
 
@@ -95,19 +73,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
95
73
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
96
74
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
97
75
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
98
- if (alternativeAnswerCheck === 'true') {
99
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
100
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
101
- matchingPage.steps.disableShowAlternativeAnswersToggle();
102
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
103
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
104
- matchingPage.steps.clickShowAlternativeAnswersToggle();
105
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
106
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
107
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
108
- matchingPage.steps.clickShowAlternativeAnswersToggle();
109
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
110
- }
111
76
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
112
77
  });
113
78
 
@@ -121,19 +86,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
121
86
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
122
87
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
123
88
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
124
- if (alternativeAnswerCheck === 'true') {
125
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
126
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
127
- matchingPage.steps.disableShowAlternativeAnswersToggle();
128
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
129
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
130
- matchingPage.steps.clickShowAlternativeAnswersToggle();
131
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
132
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
133
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
134
- matchingPage.steps.clickShowAlternativeAnswersToggle();
135
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
136
- }
137
89
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
138
90
  });
139
91
 
@@ -147,19 +99,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
147
99
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
148
100
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
149
101
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
150
- if (alternativeAnswerCheck === 'true') {
151
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
152
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
153
- matchingPage.steps.disableShowAlternativeAnswersToggle();
154
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
155
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
156
- matchingPage.steps.clickShowAlternativeAnswersToggle();
157
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
158
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
159
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
160
- matchingPage.steps.clickShowAlternativeAnswersToggle();
161
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
162
- }
163
102
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
164
103
  });
165
104
 
@@ -173,19 +112,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
173
112
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
174
113
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
175
114
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
176
- if (alternativeAnswerCheck === 'true') {
177
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
178
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
179
- matchingPage.steps.disableShowAlternativeAnswersToggle();
180
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
181
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
182
- matchingPage.steps.clickShowAlternativeAnswersToggle();
183
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
184
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
185
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
186
- matchingPage.steps.clickShowAlternativeAnswersToggle();
187
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
188
- }
189
115
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
190
116
  });
191
117
 
@@ -199,19 +125,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
199
125
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
200
126
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
201
127
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
202
- if (alternativeAnswerCheck === 'true') {
203
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
204
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
205
- matchingPage.steps.disableShowAlternativeAnswersToggle();
206
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
207
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
208
- matchingPage.steps.clickShowAlternativeAnswersToggle();
209
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
210
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
211
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
212
- matchingPage.steps.clickShowAlternativeAnswersToggle();
213
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
214
- }
215
128
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
216
129
  });
217
130
 
@@ -225,19 +138,6 @@ describe('Create item page - Matching: All or nothing with alternative answers',
225
138
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
226
139
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
227
140
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
228
- if (alternativeAnswerCheck === 'true') {
229
- matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
230
- matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
231
- matchingPage.steps.disableShowAlternativeAnswersToggle();
232
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
233
- matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
234
- matchingPage.steps.clickShowAlternativeAnswersToggle();
235
- matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
236
- matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
237
- matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']], 1);
238
- matchingPage.steps.clickShowAlternativeAnswersToggle();
239
- matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
240
- }
241
141
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
242
142
  });
243
143
  });