itemengine-cypress-automation 1.0.204 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +2 -2
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +302 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +282 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +385 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +386 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +386 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +337 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -1
  9. package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +258 -0
  10. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  11. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +439 -0
  12. package/cypress/e2e/ILC/ChartsBar/headerSection.js +105 -0
  13. package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +450 -0
  14. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +91 -0
  15. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +73 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +3 -2
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +6 -6
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +169 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +119 -0
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +277 -0
  28. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +0 -2
  29. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -5
  30. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +1 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +4 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -0
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +14 -1
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/styleAndLayoutCutomization.js +378 -0
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +479 -0
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +3 -1
  39. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +7 -7
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +1 -0
  41. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -0
  42. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  43. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
  44. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +7 -7
  45. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
  46. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -4
  47. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +10 -9
  48. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -0
  49. package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +36 -16
  51. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +326 -176
  52. package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
  53. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +37 -15
  54. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +38 -17
  55. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +441 -186
  56. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +33 -14
  57. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +330 -164
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +1 -1
  59. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  60. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +4 -4
  61. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +20 -7
  62. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +83 -66
  63. package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
  64. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +25 -17
  65. package/cypress/e2e/ILC/SingleSelection/trueOrFalseCreateItem.js +2 -2
  66. package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettings.js +89 -0
  67. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
  68. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -2
  69. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -2
  70. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  71. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -2
  72. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
  73. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +1 -1
  74. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +15 -15
  75. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +21 -21
  76. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +17 -17
  77. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +21 -21
  78. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
  79. package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +8 -4
  80. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +0 -1
  81. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  82. package/cypress/pages/audioResponsePage.js +1 -1
  83. package/cypress/pages/chartsBarPage.js +785 -5
  84. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  85. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  86. package/cypress/pages/components/barAndLineChartComponent.js +180 -9
  87. package/cypress/pages/components/chartsCommonComponent.js +1 -0
  88. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +77 -0
  89. package/cypress/pages/components/essayResponseCommonComponents.js +2 -3
  90. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
  91. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +24 -7
  92. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +8 -4
  93. package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
  94. package/cypress/pages/components/imageCanvasComponent.js +112 -2
  95. package/cypress/pages/components/index.js +1 -0
  96. package/cypress/pages/components/layoutSectionComponent.js +4 -3
  97. package/cypress/pages/dragAndDropIntoCategoriesPage.js +960 -3
  98. package/cypress/pages/drawingResponsePage.js +2 -2
  99. package/cypress/pages/fillInTheGapsDragAndDropPage.js +4 -3
  100. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +18 -3
  101. package/cypress/pages/fillInTheGapsOverImageTextPage.js +65 -3
  102. package/cypress/pages/listOrderingPage.js +3 -3
  103. package/cypress/pages/multipleSelectionPage.js +77 -25
  104. package/cypress/pages/rulerPage.js +5 -0
  105. package/cypress/pages/singleSelectionPage.js +40 -1
  106. package/cypress/pages/videoResponsePage.js +1 -1
  107. package/package.json +1 -1
@@ -60,17 +60,17 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
60
60
 
61
61
  it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
62
62
  listOrderingPage.steps.allotTotalPenaltyPoints(5);
63
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
63
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.25);
64
64
  });
65
65
 
66
66
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
67
67
  listOrderingPage.steps.deleteOption(0);
68
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(2.5);
68
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
69
69
  });
70
70
 
71
71
  it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
72
72
  listOrderingPage.steps.addOption();
73
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
73
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.25);
74
74
  });
75
75
 
76
76
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -130,17 +130,17 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
130
130
 
131
131
  it('When the user allots Penalty points for each incorrect option, then \'Total penalty points\' should get updated as per the count of incorrect options available', () => {
132
132
  listOrderingPage.steps.allotPenaltyPointsForEachIncorrectOption(1);
133
- listOrderingPage.steps.verifyTotalPenaltyPoints(3);
133
+ listOrderingPage.steps.verifyTotalPenaltyPoints(4);
134
134
  });
135
135
 
136
136
  it('When the user adds a new option, then \'Total penalty points\' should get updated accordingly', () => {
137
137
  listOrderingPage.steps.addOption();
138
- listOrderingPage.steps.verifyTotalPenaltyPoints(4);
138
+ listOrderingPage.steps.verifyTotalPenaltyPoints(5);
139
139
  });
140
140
 
141
141
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
142
142
  listOrderingPage.steps.deleteOption(0);
143
- listOrderingPage.steps.verifyTotalPenaltyPoints(3);
143
+ listOrderingPage.steps.verifyTotalPenaltyPoints(4);
144
144
  });
145
145
 
146
146
  it('CSS of the penalty points section - Penalty points for each incorrect option', { tags: 'css' }, () => {
@@ -167,7 +167,7 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
167
167
 
168
168
  it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each incorrect option\'', () => {
169
169
  listOrderingPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify total penalty points');
170
- listOrderingPage.steps.verifyTotalPenaltyPointsValue(3);
170
+ listOrderingPage.steps.verifyTotalPenaltyPointsValue(4);
171
171
  utilities.verifyInnerText(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1');
172
172
  });
173
173
 
@@ -111,7 +111,7 @@ describe('Create Item page - List ordering: Randomize options functionality for
111
111
 
112
112
  it('When the user unchecks the \'Enable outer border for question\' checkbox, then the outer border over the question preview should not be displayed', () => {
113
113
  listOrderingPage.steps.switchToEditTab();
114
- listOrderingPage.steps.uncheckEnableOuterBorderForQuestionCheckbox();
114
+ listOrderingPage.steps.uncheckEnableOuterBorderCheckbox();
115
115
  listOrderingPage.steps.switchToPreviewTab()
116
116
  listOrderingPage.steps.verifyOuterBorderOfQuestionPreviewNotExists();
117
117
  });
@@ -250,16 +250,15 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
250
250
  listOrderingPage.steps.addOption();
251
251
  listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
252
252
  listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
253
+ listOrderingPage.steps.clickOnSetPointsButton();
254
+ setPointsPopupBase.steps.allotPointsToSetPointsPopupPointsInputField([24, 1, 4, 1, 3]);
255
+ setPointsPopupBase.steps.saveSetPointsPopup();
253
256
  listOrderingPage.steps.addAlternativeAnswerAccordion(1);
254
257
  listOrderingPage.steps.clickAndReorderHorizontalOptionInSpecifyCorrectAnswerSection('fruit', 3);
255
258
  listOrderingPage.steps.verifyHorizontalOptionsOrderInSpecifyCorrectAnswerSection(['sprout', 'plant', 'flower', 'fruit', 'seed']);
256
259
  listOrderingPage.steps.clickOnSetPointsButton();
257
260
  setPointsPopupBase.steps.allotPointsToSetPointsPopupPointsInputField([14, 2, 1, 2, 3]);
258
261
  setPointsPopupBase.steps.saveSetPointsPopup();
259
- listOrderingPage.steps.expandCorrectAnswerAccordion();
260
- listOrderingPage.steps.clickOnSetPointsButton();
261
- setPointsPopupBase.steps.allotPointsToSetPointsPopupPointsInputField([24, 1, 4, 1, 3]);
262
- setPointsPopupBase.steps.saveSetPointsPopup();
263
262
  listOrderingPage.steps.switchToPreviewTab();
264
263
 
265
264
  listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('seed', 2);
@@ -56,19 +56,20 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
56
56
  utilities.verifyInnerText(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: -');
57
57
  });
58
58
 
59
+ //fixes
59
60
  it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
60
61
  listOrderingPage.steps.allotTotalPenaltyPoints(5);
61
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
62
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.25);
62
63
  });
63
64
 
64
65
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
65
66
  listOrderingPage.steps.deleteOption(0);
66
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(2.5);
67
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
67
68
  });
68
69
 
69
70
  it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
70
71
  listOrderingPage.steps.addOption();
71
- listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.67);
72
+ listOrderingPage.steps.verifyPenaltyPointsForEachIncorrectOption(1.25);
72
73
  });
73
74
 
74
75
  it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
@@ -128,17 +129,17 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
128
129
 
129
130
  it('When the user allots Penalty points for each incorrect option, then \'Total penalty points\' should get updated as per the count of incorrect options available', () => {
130
131
  listOrderingPage.steps.allotPenaltyPointsForEachIncorrectOption(1);
131
- listOrderingPage.steps.verifyTotalPenaltyPoints(3);
132
+ listOrderingPage.steps.verifyTotalPenaltyPoints(4);
132
133
  });
133
134
 
134
135
  it('When the user adds a new option, then \'Total penalty points\' should get updated accordingly', () => {
135
136
  listOrderingPage.steps.addOption();
136
- listOrderingPage.steps.verifyTotalPenaltyPoints(4);
137
+ listOrderingPage.steps.verifyTotalPenaltyPoints(5);
137
138
  });
138
139
 
139
140
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
140
141
  listOrderingPage.steps.deleteOption(0);
141
- listOrderingPage.steps.verifyTotalPenaltyPoints(3);
142
+ listOrderingPage.steps.verifyTotalPenaltyPoints(4);
142
143
  });
143
144
 
144
145
  it('CSS of the penalty points section - Penalty points for each incorrect option', { tags: 'css' }, () => {
@@ -165,7 +166,7 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
165
166
 
166
167
  it('When the user switches to the \'Specify total penalty points\' option, the total penalty points input field should be filled as per the total penalty points in \'Specify points for each incorrect option\'', () => {
167
168
  listOrderingPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify total penalty points');
168
- listOrderingPage.steps.verifyTotalPenaltyPointsValue(3);
169
+ listOrderingPage.steps.verifyTotalPenaltyPointsValue(4);
169
170
  utilities.verifyInnerText(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1');
170
171
  });
171
172
 
@@ -173,8 +174,8 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
173
174
  listOrderingPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
174
175
  listOrderingPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
175
176
  listOrderingPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
176
- utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 3.33');
177
- utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 9.99');
177
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 2.5');
178
+ utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
178
179
  });
179
180
  });
180
181
 
@@ -39,6 +39,7 @@ describe('Create Item page: Tool settings', () => {
39
39
  rulerPage.steps.expandRotationDropdown();
40
40
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
41
41
  rulerPage.steps.enterInputToOpacityInputField(60);
42
+ rulerPage.steps.checkAddShowHideButtonCheckbox();
42
43
  rulerPage.steps.clickOnOkButton();
43
44
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
44
45
  toolSettingsComponent.steps.verifyToolSelectedState(0);
@@ -2,6 +2,7 @@ import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
 
5
+ const numberOfOptionColumn = ['2', '3', '4', '5', '6'];
5
6
  const enumerationOptions = {
6
7
  'Numerical': ['1', '2'],
7
8
  'Uppercase alphabet': ['A', 'B'],
@@ -77,7 +77,6 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
77
77
  break;
78
78
  case 'Item preview':
79
79
  itemPreviewPage.steps.switchToStudentView();
80
- multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
81
80
  itemPreviewPage.steps.resetQuestionPreview();
82
81
  break;
83
82
  case 'Grading view':
@@ -94,7 +93,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
94
93
  });
95
94
  };
96
95
 
97
- it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed besides correct answer options, correct answer label and border should not be displayed', () => {
96
+ 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', () => {
98
97
  if (view === 'Grading view') {
99
98
  studentViewPage.steps.submitResponse();
100
99
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -105,12 +104,19 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
105
104
  multipleSelectionPage.steps.switchToGradingView();
106
105
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
107
106
  }
108
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
109
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
107
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
108
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
109
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
110
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
110
111
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
112
+ //correct answer section
113
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
114
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
115
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
116
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
111
117
  });
112
118
 
113
- 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, correct icons should be displayed besides correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
119
+ 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', () => {
114
120
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
115
121
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
116
122
  if (view === 'Grading view') {
@@ -123,13 +129,18 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
123
129
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
124
130
  multipleSelectionPage.steps.switchToGradingView();
125
131
  }
126
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
127
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
128
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
129
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
132
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
133
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
134
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
135
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
136
+ //correct answer section
137
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
138
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
139
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
140
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
130
141
  });
131
142
 
132
- 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 and unattempted correct options, incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
143
+ 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', () => {
133
144
  if (view === 'Grading view') {
134
145
  studentViewPage.steps.clearResponses();
135
146
  }
@@ -145,12 +156,18 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
145
156
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
146
157
  multipleSelectionPage.steps.switchToGradingView();
147
158
  }
148
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
149
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
150
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
159
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
160
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
161
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
162
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
163
+ //correct answer section
164
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
165
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
166
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
167
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
151
168
  });
152
169
 
153
- it('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 answer border and a \'Correct answer\' label should be displayed below the question preview', () => {
170
+ it('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', () => {
154
171
  if (view === 'Grading view') {
155
172
  studentViewPage.steps.clearResponses();
156
173
  }
@@ -166,8 +183,11 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
166
183
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
167
184
  multipleSelectionPage.steps.switchToGradingView();
168
185
  }
169
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
170
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
186
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
187
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
188
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
189
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
190
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist()
171
191
  });
172
192
  });
173
193
  });