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.
Files changed (44) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +181 -0
  2. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +37 -2
  3. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +72 -4
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +19 -1
  5. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +56 -1
  6. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +57 -3
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +15 -18
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +54 -1
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +12 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomizationAllViews.js +156 -0
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +0 -2
  12. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
  13. package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
  14. package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
  15. package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
  16. package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
  17. package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
  18. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
  19. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +284 -17
  20. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +397 -25
  21. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +320 -20
  22. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
  23. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +97 -10
  24. package/cypress/e2e/ILC/dataApi/saveItems.js +1 -1
  25. package/cypress/e2e/ILC/dataApi/saveQuestions.js +7 -7
  26. package/cypress/e2e/ILC/dataApi/saveQuestionsMCQAlternateAnswers.js +6 -6
  27. package/cypress/pages/components/additionalSettingsPanel.js +9 -0
  28. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  29. package/cypress/pages/components/colorPopupComponent.js +1 -1
  30. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +4 -10
  31. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +15 -2
  32. package/cypress/pages/components/gradingViewEnumerationComponent.js +5 -0
  33. package/cypress/pages/components/imageCanvasComponent.js +0 -3
  34. package/cypress/pages/components/placeholderTextSectionComponent.js +10 -0
  35. package/cypress/pages/components/showAlternativeAnswersComponent.js +41 -65
  36. package/cypress/pages/fillInTheGapsOverImageTextPage.js +21 -1
  37. package/cypress/pages/imageHighlightPage.js +184 -7
  38. package/cypress/pages/itemPreviewPage.js +1 -0
  39. package/cypress/pages/multipleSelectionPage.js +32 -0
  40. package/cypress/pages/singleSelectionPage.js +17 -0
  41. package/cypress/support/helpers/utilities.js +16 -0
  42. package/package.json +1 -1
  43. package/scripts/sorry-cypress.mjs +47 -53
  44. package/service.yaml +2 -2
@@ -196,12 +196,75 @@ describe('Create item page - Image highlight: Minimum scoring, Penalty scoring,
196
196
  before(() => {
197
197
  imageHighlightPage.steps.navigateToCreateQuestion('image highlight');
198
198
  cy.barsPreLoaderWait();
199
- imageHighlightPage.steps.allotPoints(10);
200
- imageHighlightPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
199
+ imageHighlightPage.steps.uploadFile('highlightImage.jpg');
200
+ imageHighlightPage.steps.verifyImageUploadedInSpecifyPossibleOptionsSection();
201
+ imageHighlightPage.steps.verifyImageUploadedSpecifyCorrectAnswer();
202
+ imageHighlightPage.steps.allotPoints(4);
203
+ imageHighlightPage.steps.highlightRegionInImage(flowerHighlightRegion);
204
+ imageHighlightPage.steps.highlightRegionInImage(branchesHighlightRegion);
205
+ imageHighlightPage.steps.highlightRegionInImage(leafHighlightRegion);
206
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
207
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
208
+ imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
209
+ imageHighlightPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
201
210
  });
202
211
 
203
212
  imageHighlightPage.tests.verifyRoundingDropdown();
204
213
 
205
214
  imageHighlightPage.tests.verifyRoundNegativeScoreToZeroLabelAndCheckbox();
215
+
216
+ it("When the user selects rounding to 'Round down if <= 0.99' then the score '<=0.99' should be rounded down to nearest whole number", () => {
217
+ imageHighlightPage.steps.switchToPreviewTab();
218
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
219
+ imageHighlightPage.steps.verifyPreviewScore(1,4);
220
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
221
+ imageHighlightPage.steps.verifyPreviewScore(2,4);
222
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
223
+ imageHighlightPage.steps.verifyPreviewScore(4,4);
224
+ imageHighlightPage.steps.switchToGradingView();
225
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
226
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
227
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
228
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
229
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
230
+ });
231
+
232
+ it("When the user selects rounding to 'Round down if <= 0.50' then the score '<=0.50' should be rounded down to nearest whole number", () => {
233
+ imageHighlightPage.steps.switchToEditTab();
234
+ imageHighlightPage.steps.expandRoundingDropdown();
235
+ imageHighlightPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50');
236
+ imageHighlightPage.steps.switchToPreviewTab();
237
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
238
+ imageHighlightPage.steps.verifyPreviewScore(1,4);
239
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
240
+ imageHighlightPage.steps.verifyPreviewScore(2.6667,4);
241
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
242
+ imageHighlightPage.steps.verifyPreviewScore(4,4);
243
+ imageHighlightPage.steps.switchToGradingView();
244
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
245
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
246
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
247
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
248
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
249
+ });
250
+
251
+ it('When the user selects rounding to \'Round down if <= 0.50; Round up if > 0.50\' then the score \'<=0.50\' should be rounded down to nearest whole number and the score \'>0.50\' should be rounded up to nearest whole number', () => {
252
+ imageHighlightPage.steps.switchToEditTab();
253
+ imageHighlightPage.steps.expandRoundingDropdown();
254
+ imageHighlightPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50; Round up if > 0.50');
255
+ imageHighlightPage.steps.switchToPreviewTab();
256
+ imageHighlightPage.steps.highlightARegionInPreviewTab(0);
257
+ imageHighlightPage.steps.verifyPreviewScore(1,4);
258
+ imageHighlightPage.steps.highlightARegionInPreviewTab(1);
259
+ imageHighlightPage.steps.verifyPreviewScore(3,4);
260
+ imageHighlightPage.steps.highlightARegionInPreviewTab(2);
261
+ imageHighlightPage.steps.verifyPreviewScore(4,4);
262
+ imageHighlightPage.steps.switchToGradingView();
263
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
264
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
265
+ imageHighlightPage.steps.verifyCorrectHighlightRegion(2);
266
+ imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
267
+ imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
268
+ });
206
269
  });
207
270
  });
@@ -171,7 +171,15 @@ describe('Image highlight - Student view settings', () => {
171
171
  imageHighlightPage.steps.switchToPreviewTab();
172
172
  });
173
173
 
174
- it('When \'Show the available options to students\' checkbox is unchecked, then in preview tab the options should be displayed in standard state without any highlighted background', () => {
174
+ it('When \'Show the available options to students\' checkbox is unchecked, then in preview tab the options should be displayed in standard state without any highlighted background in question preview', () => {
175
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
176
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
177
+ imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
178
+ });
179
+
180
+ it('When \'Show the available options to students\' checkbox is unchecked, then in preview tab the options should be displayed in standard state without any highlighted background in item preview', () => {
181
+ imageHighlightPage.steps.saveAQuestionAndVerifySnackbar();
182
+ imageHighlightPage.steps.switchToPreviewTab();
175
183
  imageHighlightPage.steps.verifyHiddenHighlightRegion(0);
176
184
  imageHighlightPage.steps.verifyHiddenHighlightRegion(1);
177
185
  imageHighlightPage.steps.verifyHiddenHighlightRegion(2);
@@ -179,6 +187,7 @@ describe('Image highlight - Student view settings', () => {
179
187
 
180
188
  it('When \'Show the available options to students\' checkbox is checked, then in preview tab the available options should be displayed with a highlighted background', () => {
181
189
  imageHighlightPage.steps.switchToEditTab();
190
+ imageHighlightPage.steps.clickOnEditQuestionButton();
182
191
  imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
183
192
  imageHighlightPage.steps.switchToPreviewTab();
184
193
  imageHighlightPage.steps.verifyDefaultHighlightRegion(0);
@@ -187,6 +196,8 @@ describe('Image highlight - Student view settings', () => {
187
196
  });
188
197
 
189
198
  it('When user selects an option in preview tab, then that option should be selected', () => {
199
+ imageHighlightPage.steps.saveAQuestionAndVerifySnackbar();
200
+ imageHighlightPage.steps.switchToPreviewTab();
190
201
  imageHighlightPage.steps.highlightARegionInPreviewTab(0);
191
202
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
192
203
  imageHighlightPage.steps.verifySelectedHighlightRegionInPreviewTab(0);
@@ -199,6 +210,9 @@ describe('Image highlight - Student view settings', () => {
199
210
  });
200
211
 
201
212
  it('Accessibility of options with highlighted background', { tags: 'a11y' }, () => {
213
+ imageHighlightPage.steps.switchToEditTab();
214
+ imageHighlightPage.steps.clickOnEditQuestionButton();
215
+ imageHighlightPage.steps.switchToPreviewTab();
202
216
  cy.checkAccessibility(imageHighlightPage.previewTabQuestionWrapper());
203
217
  });
204
218
 
@@ -1,9 +1,8 @@
1
1
  import { dialogBoxBase, gradingViewPage, itemPreviewPage, multipleSelectionPage, studentViewPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
- const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by nuclear waste'];
4
+ const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
5
5
  const grepTags = Cypress.env('grepTags');
6
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
7
6
  let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
8
7
  let questionMethodsViews = ['Question preview', 'Grading view'];
9
8
  const views = utilities.getViews(correctAnswerViews);
@@ -204,172 +203,6 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
204
203
  });
205
204
  });
206
205
 
207
- views.forEach((view) => {
208
- describe(`Multiple selection: all or nothing scoring with alternative answer - ${view}`, { tags: 'smoke' }, () => {
209
- abortEarlySetup();
210
- before(() => {
211
- switch (view) {
212
- case 'Question preview':
213
- multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
214
- cy.barsPreLoaderWait();
215
- multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
216
- multipleSelectionPage.steps.addOption();
217
- multipleSelectionPage.steps.addInputToOptionsInputField(options);
218
- multipleSelectionPage.steps.allotPoints(20);
219
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
220
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
221
- multipleSelectionPage.steps.clickOnAddAlternativeAnswerButton();
222
- multipleSelectionPage.steps.allotPoints(10);
223
- multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(4);
224
- multipleSelectionPage.steps.switchToPreviewTab();
225
- break;
226
- case 'Item preview':
227
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
228
- itemPreviewPage.steps.switchToPreviewTab();
229
- break;
230
- case 'Grading view':
231
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
232
- break;
233
- }
234
- });
235
-
236
- beforeEach(() => {
237
- switch (view) {
238
- case 'Question preview':
239
- multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
240
- multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
241
- multipleSelectionPage.steps.resetQuestionPreview();
242
- break;
243
- case 'Item preview':
244
- itemPreviewPage.steps.switchToStudentView();
245
- itemPreviewPage.steps.resetQuestionPreview();
246
- break;
247
- case 'Grading view':
248
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
249
- break;
250
- }
251
- });
252
-
253
- if (view === 'Question preview') {
254
- after(() => {
255
- multipleSelectionPage.steps.clickOnSaveQuestionButton();
256
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
257
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
258
- });
259
- };
260
-
261
- it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
262
- if (view === 'Grading view') {
263
- studentViewPage.steps.submitResponse();
264
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
265
- studentViewPage.steps.clickOnGoToGradingViewButton();
266
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
267
- }
268
- if (view === 'Question preview' || view === 'Item preview') {
269
- multipleSelectionPage.steps.switchToGradingView();
270
- multipleSelectionPage.steps.verifyPreviewScore(0, 20);
271
- }
272
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
273
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
274
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
275
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
276
- multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
277
- //correct answer section
278
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
279
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
280
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
281
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
282
- if (alternativeAnswerCheck === 'true') {
283
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
284
- }
285
- });
286
-
287
- 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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
288
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
289
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
290
- if (view === 'Grading view') {
291
- studentViewPage.steps.submitResponse();
292
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
293
- studentViewPage.steps.clickOnGoToGradingViewButton();
294
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
295
- }
296
- if (view === 'Question preview' || view === 'Item preview') {
297
- multipleSelectionPage.steps.verifyPreviewScore(0, 20);
298
- multipleSelectionPage.steps.switchToGradingView();
299
- }
300
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
301
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
302
- multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
303
- multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
304
- //correct answer section
305
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
306
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
307
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
308
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
309
- if (alternativeAnswerCheck === 'true') {
310
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
311
- }
312
- });
313
-
314
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses and no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
315
- if (view === 'Grading view') {
316
- studentViewPage.steps.clearResponses();
317
- }
318
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
319
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
320
- if (view === 'Grading view') {
321
- studentViewPage.steps.submitResponse();
322
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
323
- studentViewPage.steps.clickOnGoToGradingViewButton();
324
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
325
- }
326
- if (view === 'Question preview' || view === 'Item preview') {
327
- multipleSelectionPage.steps.verifyPreviewScore(0, 20);
328
- multipleSelectionPage.steps.switchToGradingView();
329
- }
330
- multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
331
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
332
- multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
333
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
334
- //correct answer section
335
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
336
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
337
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
338
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
339
- if (alternativeAnswerCheck === 'true') {
340
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
341
- }
342
- });
343
-
344
- it(`${view}: Multiple selection - 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, and status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed`, () => {
345
- if (view === 'Grading view') {
346
- studentViewPage.steps.clearResponses();
347
- }
348
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
349
- multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
350
- if (view === 'Grading view') {
351
- studentViewPage.steps.submitResponse();
352
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
353
- studentViewPage.steps.clickOnGoToGradingViewButton();
354
- gradingViewPage.steps.verifyGradingViewScore(20, 20);
355
- }
356
- if (view === 'Question preview' || view === 'Item preview') {
357
- multipleSelectionPage.steps.verifyPreviewScore(20, 20);
358
- multipleSelectionPage.steps.switchToGradingView();
359
- }
360
- multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
361
- multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
362
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
363
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
364
- multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
365
- if (alternativeAnswerCheck === 'true') {
366
- multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
367
- }
368
- cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question correctly`);
369
- });
370
- });
371
- });
372
-
373
206
  views.forEach((view) => {
374
207
  describe(`Multiple selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
375
208
  abortEarlySetup();