itemengine-cypress-automation 1.0.221-16thSmokeTestFixes-a427ca0.0 → 1.0.222-23rdJulyFixes-d8cd939.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +3 -3
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +5 -5
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +5 -5
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +22 -22
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +13 -13
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +13 -13
  9. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +10 -5
  10. package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +10 -6
  11. package/cypress/e2e/ILC/ChartsBar/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  12. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -1
  13. package/cypress/e2e/ILC/ChartsLine/editTabScoringSection.js +5 -5
  14. package/cypress/e2e/ILC/ChartsLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  15. package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +1 -1
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -2
  17. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +0 -2
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -2
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +0 -2
  20. package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
  21. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  22. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  23. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +3 -1
  24. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -0
  25. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -0
  26. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +3 -1
  27. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -1
  28. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +3 -1
  29. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +3 -3
  30. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +3 -3
  31. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  32. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  33. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +1 -1
  34. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +3 -3
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
  36. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +0 -2
  37. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +1 -2
  38. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -1
  39. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +0 -2
  40. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +3 -3
  41. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +2 -1
  42. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +17 -17
  43. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  44. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +4 -7
  45. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +25 -7
  46. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -1
  47. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  48. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
  49. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -1
  50. package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +1 -1
  51. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  52. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  53. package/cypress/pages/chartsBarPage.js +6 -6
  54. package/cypress/pages/chartsLinePage.js +3 -2
  55. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +4 -2
  56. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  57. package/cypress/pages/components/gridQuestionCommonComponent.js +9 -0
  58. package/cypress/pages/components/opacityComponent.js +1 -0
  59. package/cypress/pages/components/scoringSectionBaseEditTab.js +5 -3
  60. package/cypress/pages/components/setPointsPopupBase.js +7 -0
  61. package/cypress/pages/gridFillPage.js +13 -0
  62. package/cypress/pages/textEntryMathPage.js +2 -2
  63. package/package.json +1 -1
@@ -18,6 +18,8 @@ describe('Create item page - Grid fill : All or nothing with alternative answer
18
18
  gridFillPage.steps.allotPoints(27);
19
19
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
20
20
  gridFillPage.steps.addInputToCellShadeCountInputField(3);
21
+ gridFillPage.steps.expandCorrectAnswerAccordion();
22
+ gridFillPage.steps.allotPoints(27);
21
23
  //gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
22
24
  });
23
25
 
@@ -29,7 +31,7 @@ describe('Create item page - Grid fill : All or nothing with alternative answer
29
31
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
30
32
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
31
33
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
32
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
34
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
33
35
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
34
36
  });
35
37
 
@@ -27,7 +27,7 @@ describe('Create item page - Grid fill : Auto scored - All or nothing with alter
27
27
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
28
28
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
29
29
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
30
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
30
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
31
31
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
32
32
  });
33
33
 
@@ -19,6 +19,8 @@ describe('Create item page - Grid fill: Match exact with cell shade count scorin
19
19
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 1);
20
20
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 3);
21
21
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4);
22
+ gridFillPage.steps.expandCorrectAnswerAccordion();
23
+ gridFillPage.steps.allotPoints(15);
22
24
  //gridFillPage.steps.checkAllowStudentToCheckAnswerCheckbox();
23
25
  gridFillPage.steps.switchToPreviewTab();
24
26
  });
@@ -28,7 +30,7 @@ describe('Create item page - Grid fill: Match exact with cell shade count scorin
28
30
  gridFillPage.steps.switchToGradingView();
29
31
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
30
32
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
31
- gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
33
+ gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
32
34
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
33
35
  });
34
36
 
@@ -336,7 +336,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
336
336
  gridFillPage.steps.switchToPreviewTab();
337
337
  gridFillPage.steps.selectCellPreviewTab(0, 4);
338
338
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
339
- gridFillPage.steps.verifyPreviewScore(-0.33, 27);
339
+ gridFillPage.steps.verifyPreviewScore(-0.3333, 27);
340
340
  });
341
341
 
342
342
  it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
@@ -345,7 +345,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
345
345
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
346
346
  gridFillPage.steps.selectCellPreviewTab(0, 4);
347
347
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
348
- gridFillPage.steps.verifyPreviewScore(8.67, 27);
348
+ gridFillPage.steps.verifyPreviewScore(8.6667, 27);
349
349
  });
350
350
 
351
351
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect response should get deducted from the awarded points', () => {
@@ -356,7 +356,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
356
356
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
357
357
  gridFillPage.steps.selectCellPreviewTab(1, 1);
358
358
  gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
359
- gridFillPage.steps.verifyPreviewScore(8.34, 27);
359
+ gridFillPage.steps.verifyPreviewScore(8.3333, 27);
360
360
  });
361
361
 
362
362
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -337,7 +337,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
337
337
  gridFillPage.steps.selectCellPreviewTab(0, 1);
338
338
  gridFillPage.steps.selectCellPreviewTab(0, 2);
339
339
  gridFillPage.steps.selectCellPreviewTab(0, 3);
340
- gridFillPage.steps.verifyPreviewScore(-1.34, 12);
340
+ gridFillPage.steps.verifyPreviewScore(-1.3333, 12);
341
341
  });
342
342
 
343
343
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect response should get deducted from the awarded points', () => {
@@ -349,7 +349,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
349
349
  gridFillPage.steps.selectCellPreviewTab(0, 1);
350
350
  gridFillPage.steps.selectCellPreviewTab(0, 2);
351
351
  gridFillPage.steps.selectCellPreviewTab(0, 3);
352
- gridFillPage.steps.verifyPreviewScore(10.66, 12);
352
+ gridFillPage.steps.verifyPreviewScore(10.6667, 12);
353
353
  });
354
354
 
355
355
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -375,7 +375,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
375
375
  gridFillPage.steps.selectCellPreviewTab(0, 0);
376
376
  gridFillPage.steps.selectCellPreviewTab(0, 1);
377
377
  gridFillPage.steps.selectCellPreviewTab(0, 2);
378
- gridFillPage.steps.verifyPreviewScore(-1, 12);
378
+ gridFillPage.steps.verifyPreviewScore(11.34, 12);
379
379
  });
380
380
 
381
381
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect cell should get deducted from the awarded points', () => {
@@ -172,14 +172,14 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
172
172
  it('Overachiever case: When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses', () => {
173
173
  cy.log('Pre-step: Switching to Edit tab and allotting points to alternative accordion such that the difference between the points is substantial and the points per response are in decimal')
174
174
  gridFillPage.steps.switchToEditTab();
175
+ gridFillPage.steps.expandCorrectAnswerAccordion();
176
+ gridFillPage.steps.allotPoints(9);
175
177
  gridFillPage.steps.deleteAlternativeAnswerAccordion(0);
176
178
  gridFillPage.steps.addAlternativeAnswerAccordion(1);
177
179
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 3);
178
180
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 4);
179
181
  gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(1, 0);
180
182
  gridFillPage.steps.allotPoints(21);
181
- gridFillPage.steps.expandCorrectAnswerAccordion();
182
- gridFillPage.steps.allotPoints(9);
183
183
  gridFillPage.steps.switchToPreviewTab();
184
184
  gridFillPage.steps.selectCellPreviewTab(0, 0);
185
185
  gridFillPage.steps.selectCellPreviewTab(0, 1);
@@ -187,7 +187,7 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
187
187
  gridFillPage.steps.selectCellPreviewTab(0, 0);
188
188
  gridFillPage.steps.selectCellPreviewTab(0, 3);
189
189
  gridFillPage.steps.selectCellPreviewTab(0, 4);
190
- gridFillPage.steps.verifyPreviewScore(7.67, 23);
190
+ gridFillPage.steps.verifyPreviewScore(7.6667, 23);
191
191
  gridFillPage.steps.switchToGradingView();
192
192
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
193
193
  gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
@@ -108,7 +108,7 @@ describe('Create item page - Multiple selection: Preview contents', () => {
108
108
  });
109
109
  } else {
110
110
  it(`The correct options should have correct icons besides them`, () => {
111
- // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
111
+ // Need to remove comment once https://redmine.zeuslearning.com/issues/573603 is resolved
112
112
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
113
113
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
114
114
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
@@ -136,7 +136,7 @@ describe('Create item page - Multiple selection grid: Question instructions, Spe
136
136
  });
137
137
 
138
138
  it('When user has added columns such that they exceed the table viewport, then the left and right pagination button should be displayed in the \'Specify columns and rows\' table', () => {
139
- multipleSelectionGridPage.steps.addInputToColumnInputStepper(10);
139
+ multipleSelectionGridPage.steps.addInputToColumnInputStepper(14);
140
140
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.editCellPropertyTableLeftPaginationButton(), 'visible');
141
141
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.editCellPropertyTableRightPaginationButton(), 'visible');
142
142
  });
@@ -264,7 +264,7 @@ describe('Create item page - Multiple selection grid: Question instructions, Spe
264
264
  });
265
265
 
266
266
  it('When user has added columns such that they exceed the table viewport, then the left and right pagination button should be displayed in the \'Specify correct answer\' table', () => {
267
- multipleSelectionGridPage.steps.addInputToColumnInputStepper(10);
267
+ multipleSelectionGridPage.steps.addInputToColumnInputStepper(14);
268
268
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.leftPaginationButtonSpecifyCorrectAnswerSection(), 'visible');
269
269
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.rightPaginationButtonSpecifyCorrectAnswerSection(), 'visible');
270
270
  });
@@ -360,7 +360,7 @@ describe('Create item page - Multiple selection grid: Question instructions, Spe
360
360
 
361
361
  it('When the user has added columns such that they exceed the table viewport, then the left and right pagination button should be displayed in the preview tab table', () => {
362
362
  multipleSelectionGridPage.steps.switchToEditTab();
363
- multipleSelectionGridPage.steps.addInputToColumnInputStepper(10);
363
+ multipleSelectionGridPage.steps.addInputToColumnInputStepper(14);
364
364
  multipleSelectionGridPage.steps.switchToPreviewTab();
365
365
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.leftPaginationButtonPreviewTab(), 'visible');
366
366
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.rightPaginationButtonPreviewTab(), 'visible');
@@ -122,8 +122,8 @@ describe('Create item page - Multiple selection grid: Minimum scoring, Penalty s
122
122
  multipleSelectionGridPage.steps.clearTotalPenaltyPointsInputField();
123
123
  multipleSelectionGridPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify points for each incorrect option');
124
124
  utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect row');
125
- multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('');
126
- utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: -');
125
+ multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('1.25');
126
+ utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: 5');
127
127
  });
128
128
 
129
129
  it('When the user allots Penalty points for each incorrect row, then \'Total penalty points\' should get updated as per the count of rows', () => {
@@ -89,8 +89,6 @@ describe('Create item page - Multiple selection grid: Student view settings', ()
89
89
  it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the questions should change and the options should be displayed in the order in which the user has set them in the preview tab grid', () => {
90
90
  multipleSelectionGridPage.steps.switchToEditTab();
91
91
  multipleSelectionGridPage.steps.allotPoints(5);
92
- cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
93
- cy.wait(1000);
94
92
  multipleSelectionGridPage.steps.switchToPreviewTab();
95
93
  multipleSelectionGridPage.steps.verifyRandomizeQuestionsOrder(questionsArray);
96
94
  multipleSelectionGridPage.steps.verifyQuestionsAreReRandomized(randomizedOptionsString);
@@ -100,8 +100,7 @@ describe('Create item page - Short text response: All or nothing', () => {
100
100
  shortTextResponsePage.steps.switchToGradingView();
101
101
  shortTextResponsePage.steps.verifyPreviewScore(0, 20);
102
102
  }
103
- //Need to remove comment once https://redmine.zeuslearning.com/issues/576511 is resolved
104
- // shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
103
+ shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
105
104
  shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
106
105
  });
107
106
 
@@ -109,7 +109,7 @@ describe('Create item page - Single selection: Preview contents', () => {
109
109
  });
110
110
  } else {
111
111
  it(`The correct options should have correct icons besides them`, () => {
112
- // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
112
+ // Need to remove comment once https://redmine.zeuslearning.com/issues/573603 is resolved
113
113
  // singleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
114
114
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
115
115
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
@@ -89,8 +89,6 @@ describe('Create item page - single selection grid: Student view settings', () =
89
89
  it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the questions should change and the options should be displayed in the order in which the user has set them in the preview tab grid', () => {
90
90
  singleSelectionGridPage.steps.switchToEditTab();
91
91
  singleSelectionGridPage.steps.allotPoints(5);
92
- cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
93
- cy.wait(1000);
94
92
  singleSelectionGridPage.steps.switchToPreviewTab();
95
93
  singleSelectionGridPage.steps.verifyRandomizeQuestionsOrder(questionsArray);
96
94
  singleSelectionGridPage.steps.verifyQuestionsAreReRandomized(randomizedOptionsString);
@@ -85,9 +85,9 @@ describe('Create item page - Text entry math: Scoring section', () => {
85
85
 
86
86
  it('When the user adds one more response token, then points per response should get updated accordingly', () => {
87
87
  textEntryMathPage.steps.addResponseArea();
88
- textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 1.33);
89
- textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 1.33);
90
- textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(2, 1.33);
88
+ textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 1.3333);
89
+ textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 1.3333);
90
+ textEntryMathPage.steps.verifyPointsDisplayedOnResponseAccordion(2, 1.3333);
91
91
  });
92
92
 
93
93
  it('When the user deletes a response token, then points per response should get updated accordingly', () => {
@@ -439,7 +439,8 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
439
439
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
440
440
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
441
441
  equationEditorFlyout.steps.clearAll();
442
- textEntryMathPage.steps.enterTextInPreviewInputField('{4,6}')
442
+ textEntryMathPage.steps.enterTextInPreviewInputField('{4,6')
443
+ textEntryMathPage.steps.enterTextInPreviewInputField('}');
443
444
  equationEditorFlyout.steps.clickOnOkButton();
444
445
  textEntryMathPage.steps.switchToPreviewTab();
445
446
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -353,7 +353,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
353
353
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
354
354
  });
355
355
 
356
- it('When the user attempts the question using addition of matrices then it should be treated as incorrect', () => {
356
+ it('When the user attempts the question using addition of matrices then it should be treated as correct', () => {
357
357
  textEntryMathPage.steps.resetQuestionPreview();
358
358
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
359
359
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'matrices', symbolName: ['twoByTwoMatrixBoundedBrackets'] }]);
@@ -470,14 +470,14 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
470
470
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
471
471
  });
472
472
 
473
- it('When the user attempts the question using quadratic equation then it should be treated as incorrect', () => {
473
+ it('When the user attempts the question using quadratic equation then it should be treated as correct', () => {
474
474
  textEntryMathPage.steps.resetQuestionPreview();
475
475
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
476
476
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }, { categoryName: 'numPad', symbolName: ['subtract', 'three'] }, { categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'one'] }]);
477
477
  equationEditorFlyout.steps.clickOnOkButton();
478
478
  textEntryMathPage.steps.switchToGradingView();
479
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
480
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
479
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
480
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
481
481
  });
482
482
 
483
483
  it('When the user attempts the question using polynomial equation using parenthesis then it should be treated as correct', () => {
@@ -622,14 +622,14 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
622
622
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
623
623
  });
624
624
 
625
- it('When the user attempts the question using percentages then it should be treated as incorrect', () => {
625
+ it('When the user attempts the question using percentages then it should be treated as correct', () => {
626
626
  textEntryMathPage.steps.resetQuestionPreview();
627
627
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
628
628
  equationEditorFlyout.steps.enterTextInPreviewInputField('30%');
629
629
  equationEditorFlyout.steps.clickOnOkButton();
630
630
  textEntryMathPage.steps.switchToGradingView();
631
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
632
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
631
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
632
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
633
633
  });
634
634
 
635
635
  it('When the user attempts the question using arithmetic square operation in un-simplified format then it should be treated as incorrect', () => {
@@ -642,15 +642,15 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
642
642
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
643
643
  });
644
644
 
645
- it('When the user attempts the question using fractions in simplified format then it should be treated as incorrect', () => {
645
+ it('When the user attempts the question using fractions in simplified format then it should be treated as correct', () => {
646
646
  textEntryMathPage.steps.resetQuestionPreview();
647
647
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
648
648
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['two'] }]);
649
649
  equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
650
650
  equationEditorFlyout.steps.clickOnOkButton();
651
651
  textEntryMathPage.steps.switchToGradingView();
652
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
653
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
652
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
653
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
654
654
  });
655
655
 
656
656
  it('When the user attempts the question using mixed fractions then it should be treated as incorrect', () => {
@@ -709,7 +709,7 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
709
709
  textEntryMathPage.steps.resetQuestionPreview();
710
710
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
711
711
  equationEditorFlyout.steps.enterTextInPreviewInputField('-3i');
712
- equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier', 'two'] }]);
712
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }, { categoryName: 'numPad', symbolName: ['two'] }]);
713
713
  equationEditorFlyout.steps.clickOnOkButton();
714
714
  textEntryMathPage.steps.switchToGradingView();
715
715
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
@@ -726,14 +726,14 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
726
726
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
727
727
  });
728
728
 
729
- it('When the user attempts the question using special symbols like \'pi\' along with numeric values then it should be treated as incorrect', () => {
729
+ it('When the user attempts the question using special symbols like \'pi\' along with numeric values then it should be treated as correct', () => {
730
730
  textEntryMathPage.steps.resetQuestionPreview();
731
731
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
732
732
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['three'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
733
733
  equationEditorFlyout.steps.clickOnOkButton();
734
734
  textEntryMathPage.steps.switchToGradingView();
735
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
736
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
735
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
736
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
737
737
  });
738
738
 
739
739
  it('When the user attempts the question using simplified trigonometric functions then it should be treated as correct', () => {
@@ -770,15 +770,15 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
770
770
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
771
771
  });
772
772
 
773
- it('When the user attempts the question using integration then it should be treated as incorrect', () => {
773
+ it('When the user attempts the question using integration then it should be treated as correct', () => {
774
774
  textEntryMathPage.steps.resetQuestionPreview();
775
775
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
776
776
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
777
777
  equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0'])
778
778
  equationEditorFlyout.steps.clickOnOkButton();
779
779
  textEntryMathPage.steps.switchToGradingView();
780
- textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
781
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
780
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
781
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
782
782
  });
783
783
  });
784
784
  });
@@ -73,7 +73,7 @@ describe('Create item page - Text entry math: Minimum scoring, Penalty scoring,
73
73
  textEntryMathPage.steps.addResponseArea();
74
74
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
75
75
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(2, 'a×b');
76
- textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(1.67);
76
+ textEntryMathPage.steps.verifyPenaltyPointsForEachIncorrectTextContainer(1.6667);
77
77
  });
78
78
 
79
79
  it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
@@ -169,12 +169,11 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
169
169
  utilities.verifyInnerText(textEntryMathPage.responseAccordionAddAlternateButton(), 'Add alternate');
170
170
  });
171
171
 
172
- //Adding skip as this issue is postponed https://redmine.zeuslearning.com/issues/567075
173
- it.skip('When single answer input field is present in blank state and user clicks on \'Add alternate\' button, then error message \'Error: Answer is required.\' should be displayed and new answer field should not be added', () => {
172
+ it('When single answer input field is present in blank state and user clicks on \'Add alternate\' button, then error message \'Error: Answer is required.\' should be displayed and new answer field should not be added', () => {
174
173
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
175
174
  utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
176
175
  utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
177
- utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 2);
176
+ utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 1);
178
177
  });
179
178
 
180
179
  it('When user gives an input to \'Answer\' input field,then error message should disappear', () => {
@@ -184,7 +183,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
184
183
 
185
184
  it('When user clicks on \'Add alternate\' button, then one more answer input field should be displayed', () => {
186
185
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
187
- utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 3);
186
+ utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 2);
188
187
  });
189
188
 
190
189
  it('When more than one answer input fields are present, then answer field numeration and input field delete buttons should be displayed for both input fields', () => {
@@ -235,16 +234,14 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
235
234
  cy.log('Pre-step: Add one more answer input field');
236
235
  textEntryMathPage.steps.addAlternateAnswerInResponseAccordion(0);
237
236
  textEntryMathPage.steps.clickOnAnswerInputDeleteButton(0);
238
- utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 3);
237
+ utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 2);
239
238
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(0);
240
239
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(1);
241
- textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonIsVisible(2);
242
240
  });
243
241
 
244
242
  it('When number of answer input fields is reduced to 1, then input field numeration and its delete button should not be displayed', () => {
245
243
  cy.log('Pre-step: Reduce number of answer input fields to 1');
246
244
  textEntryMathPage.steps.clickOnAnswerInputDeleteButton(0);
247
- textEntryMathPage.steps.clickOnAnswerInputDeleteButton(0);
248
245
  utilities.verifyElementCount(textEntryMathPage.responseAccordionAnswerInputField(), 1);
249
246
  textEntryMathPage.steps.verifyAnswerInputFieldNumerationAndDeleteButtonNotExists();
250
247
  });
@@ -30,14 +30,31 @@ describe('Create Item page - Text entry math: Specify correct answer, Alternativ
30
30
  textEntryMathPage.steps.addResponseArea();
31
31
  });
32
32
 
33
- //Failing here due to https://redmine.zeuslearning.com/issues/567075
34
- textEntryMathPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('text entry math');
33
+ it('\'+ Add alternative answer\' button should be present', () => {
34
+ utilities.verifyInnerText(textEntryMathPage.alternativeAnswerButton(), 'Add alternative answer');
35
+ utilities.verifyElementVisibilityState(textEntryMathPage.alternativeAnswerButton(), 'visible');
36
+ textEntryMathPage.alternativeAnswerButton()
37
+ .verifyPseudoClassBeforeProperty('content', '""');
38
+ });
39
+
40
+ it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
41
+ utilities.verifyCSS(textEntryMathPage.alternativeAnswerButton().find('p'), {
42
+ 'color': css.color.activeButtons,
43
+ 'font-size': css.fontSize.default,
44
+ 'font-weight': css.fontWeight.regular
45
+ });
46
+ textEntryMathPage.alternativeAnswerButton()
47
+ .verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
48
+ });
49
+
50
+ //Failing here due to https://redmine.zeuslearning.com/issues/567075, adding a skip as it is postponed. Once resolved remove the above cases and the comment added below
51
+ // textEntryMathPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('text entry math');
35
52
 
36
53
  it('When user has added points and given input in response accordion answer input field in the \'Correct\' accordion, then the user should be able to add alternative answer for the question using \'Add alternative answer\' button', () => {
37
54
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
38
55
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)');
39
56
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
40
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, '(a-b)');
57
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'axb');
41
58
  textEntryMathPage.steps.allotPoints(10);
42
59
  textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
43
60
  });
@@ -46,25 +63,26 @@ describe('Create Item page - Text entry math: Specify correct answer, Alternativ
46
63
 
47
64
  it('When user has added an alternate answer accordion, then the newly added alternate answer accordion should be in expanded state and the correct answer accordion should be in collapsed state', () => {
48
65
  textEntryMathPage.steps.verifyCorrectAnswerAccordionIsCollapsed();
49
- textEntryMathPage.steps.verifyAlternateAnswerAccordionIsExpanded(1);
66
+ textEntryMathPage.steps.verifyAlternateAnswerAccordionIsExpanded(0);
50
67
  });
51
68
 
52
69
  it('User should be able to add another alternative answer for the question using \'Add alternative answer\' button and the name for this new accordion should be \'Alternative 2\'', () => {
53
70
  textEntryMathPage.steps.addAlternativeAnswerAccordion(2);
54
71
  });
55
72
 
56
- textEntryMathPage.tests.verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion();
73
+ //Failing here due to https://redmine.zeuslearning.com/issues/567075, adding a skip as it is postponed.
74
+ //textEntryMathPage.tests.verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion();
57
75
 
58
76
  it('User should be able to remove alternative correct answer by clicking on the \'Delete\' icon button alongside alternative answer accordion and the name of the alternative answer accordions should get updated accordingly', () => {
59
77
  cy.log('Set correct answer and points in alternative 2 accordion, then switch to alternative 1 accordion and click delete icon button');
60
78
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
61
79
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)');
62
80
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
63
- textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'a-b');
81
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(1, 'axb');
64
82
  textEntryMathPage.steps.allotPoints(5);
65
83
  textEntryMathPage.steps.deleteAlternativeAnswerAccordion(1);
66
84
  utilities.verifyElementVisibilityState(textEntryMathPage.alternativeAnswerAccordion().contains('Alternative 2'), 'notExist');
67
- textEntryMathPage.steps.verifyAlternativeAnswerAccordionLabel(1);
85
+ textEntryMathPage.steps.verifyAlternativeAnswerAccordionLabel(0);
68
86
  });
69
87
 
70
88
  it('When correct answers and points are set in alternate answer and user clicks on correct answer accordion, then correct answer accordion should be expanded and the alternate answer accordion should be collapsed', () => {
@@ -31,7 +31,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
31
31
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
32
32
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
33
33
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
34
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
34
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
35
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
36
36
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
37
37
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -31,7 +31,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
31
31
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
32
32
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
33
33
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
34
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
34
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
35
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
36
36
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
37
37
  cy.log('Post step: Unchecking the show correct answer checkbox')
@@ -31,7 +31,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
31
31
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
32
32
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
33
33
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
34
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
34
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
35
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
36
36
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
37
37
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -43,7 +43,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
43
43
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(customTextSelectionArray[1]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(customTextSelectionArray[0]);
45
45
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(customTextSelectionArray[1]);
46
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
46
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
47
47
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
48
48
  });
49
49
 
@@ -74,7 +74,7 @@ describe('Create Item page - Text selection: Manually and non scored', () => {
74
74
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
75
75
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
76
76
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
77
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
77
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
78
78
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
79
79
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
80
80
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -286,7 +286,7 @@ describe('Create item page - Text selection: Partial equal with alternative answ
286
286
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
287
287
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
288
288
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
289
- textSelectionPage.steps.verifyPreviewScore(7.67, 23);
289
+ textSelectionPage.steps.verifyPreviewScore(7.6667, 23);
290
290
  textSelectionPage.steps.switchToGradingView();
291
291
  textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[0]);
292
292
  textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[1]);
@@ -286,7 +286,7 @@ describe('Create item page - Text selection: Partial equal with alternative answ
286
286
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
287
287
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[4]);
288
288
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[5]);
289
- textSelectionPage.steps.verifyPreviewScore(7.67, 23);
289
+ textSelectionPage.steps.verifyPreviewScore(7.6667, 23);
290
290
  textSelectionPage.steps.switchToGradingView();
291
291
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[0]);
292
292
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);