itemengine-cypress-automation 1.0.253-TEMSmokeTestUpdates-82559a5.0 → 1.0.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +231 -0
  2. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +213 -0
  3. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +148 -0
  4. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +249 -0
  5. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +164 -0
  6. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +444 -0
  7. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +102 -0
  8. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +134 -0
  9. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +46 -0
  10. package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +98 -0
  11. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +147 -0
  12. package/cypress/e2e/ILC/CkEditorInsertTable/tableHeaders.js +127 -0
  13. package/cypress/e2e/ILC/CkEditorInsertTable/tableRowAndColumn.js +71 -0
  14. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +154 -0
  15. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -17
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +24 -12
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +47 -20
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -16
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +5 -5
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +52 -21
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +23 -11
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +55 -21
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +53 -21
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +48 -19
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +23 -11
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +47 -17
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +50 -19
  29. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
  30. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +3 -0
  31. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -3
  32. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -1
  33. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +4 -4
  34. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +261 -0
  35. package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
  36. package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
  37. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +2 -2
  39. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -3
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
  43. package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +3 -0
  44. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +15 -0
  45. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +10 -0
  46. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
  47. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -2
  48. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +56 -8
  49. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
  50. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  51. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  52. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
  53. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  54. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  55. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -3
  56. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
  57. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +16 -16
  58. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -5
  59. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +8 -22
  60. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +19 -19
  61. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  62. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -5
  63. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -4
  64. package/cypress/e2e/ILC/ToolAudioPlayerNew/studentViewSettings.js +8 -2
  65. package/cypress/fixtures/theme/ilc.json +9 -5
  66. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +615 -0
  67. package/cypress/pages/components/ckEditorEquationEditorComponent.js +41 -0
  68. package/cypress/pages/components/ckEditorInsertTableComponent.js +741 -0
  69. package/cypress/pages/components/essayResponseCommonComponents.js +145 -7
  70. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  71. package/cypress/pages/components/index.js +2 -1
  72. package/cypress/pages/components/layoutSectionComponent.js +25 -4
  73. package/cypress/pages/components/numberLineCommonComponent.js +39 -0
  74. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  75. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -0
  76. package/cypress/pages/dragAndDropIntoCategoriesPage.js +28 -0
  77. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
  78. package/cypress/pages/graphingPage.js +8 -8
  79. package/cypress/pages/gridFillPage.js +11 -11
  80. package/cypress/pages/multipleSelectionPage.js +12 -0
  81. package/cypress/pages/singleSelectionPage.js +1 -1
  82. package/cypress/pages/textEntryMathPage.js +18 -0
  83. package/cypress/pages/textEntryMathWithImagePage.js +15 -2
  84. package/cypress/pages/textSelectionPage.js +7 -1
  85. package/package.json +1 -1
@@ -219,6 +219,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
219
219
 
220
220
  it('When \'Lock shaded cells\' checkbox is checked and user shades a cell in \'Customize layout\' section, then user should not be able to unshade the cell in preview tab', () => {
221
221
  gridFillPage.steps.switchToEditTab();
222
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
222
223
  gridFillPage.steps.checkLockShadedCellsCheckbox();
223
224
  gridFillPage.steps.switchToPreviewTab();
224
225
  gridFillPage.steps.unselectCellPreviewTab(0, 0);
@@ -231,6 +232,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
231
232
 
232
233
  it('When the user unchecks \'Outline cell on hover\' checkbox, then hover state should not be displayed when author hovers on cells in preview tab', () => {
233
234
  gridFillPage.steps.switchToEditTab();
235
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
234
236
  gridFillPage.steps.uncheckOutlineCellOnHoverCheckbox();
235
237
  gridFillPage.steps.switchToPreviewTab();
236
238
  gridFillPage.steps.verifyCellIsNotInteractiveForHoverInPreviewTab(2, 2);
@@ -238,6 +240,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
238
240
 
239
241
  it('When user has given an input in \'Canvas title\' input field, then the provided input should be displayed in the preview tab as canvas title', () => {
240
242
  gridFillPage.steps.switchToEditTab();
243
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
241
244
  gridFillPage.steps.addInputToCanvasTitleInputField('Canvas title');
242
245
  gridFillPage.steps.switchToPreviewTab();
243
246
  utilities.verifyInnerText(gridFillPage.canvasTitlePreviewTab(), 'Canvas title');
@@ -448,6 +451,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
448
451
 
449
452
  it('When user disables \'Outer grid border\' switch, then thick outer border should be displayed on the preview tab grid', () => {
450
453
  gridFillPage.steps.switchToEditTab();
454
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
451
455
  gridFillPage.steps.switchOffOuterGridBorderSwitch();
452
456
  gridFillPage.steps.switchToPreviewTab();
453
457
  gridFillPage.steps.verifyGridBorderWhenOuterBorderSwitchIsOffInPreviewTab();
@@ -459,6 +463,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
459
463
 
460
464
  it('When user selects \'Only border\' toggle button in \'Grid borders\', then the borders for individual cells should not be displayed on the preview tab grid', () => {
461
465
  gridFillPage.steps.switchToEditTab();
466
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
462
467
  gridFillPage.steps.selectGridBordersToggleButton('Only border');
463
468
  gridFillPage.steps.switchToPreviewTab();
464
469
  gridFillPage.steps.verifyCellBorderIsDisplayedForOnlyBorderToggleButtonInPreviewTab();
@@ -466,6 +471,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
466
471
 
467
472
  it('When user selects \'None\' toggle button in \'Grid borders\' and \'Outer grid border\' switch is on, then the borders for individual cells should not be displayed in the displayed on the preview tab grid', () => {
468
473
  gridFillPage.steps.switchToEditTab();
474
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
469
475
  gridFillPage.steps.selectGridBordersToggleButton('None');
470
476
  gridFillPage.steps.switchToPreviewTab();
471
477
  gridFillPage.steps.switchToStudentView();
@@ -474,6 +480,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
474
480
 
475
481
  it('When user has selected \'Solid\' toggle button in \'Grid border style\', then the border of all the cells as well as grid should be displayed in the displayed on the preview tab grid', () => {
476
482
  gridFillPage.steps.switchToEditTab();
483
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
477
484
  cy.log('Pre-step: Select \'Full grid\' toggle button');
478
485
  gridFillPage.steps.selectGridBordersToggleButton('Full grid');
479
486
  gridFillPage.steps.selectGridBorderStyleToggleButton('Solid');
@@ -483,6 +490,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
483
490
 
484
491
  it('When user has selected \'Dashed\' toggle button in \'Grid border style\', then the border of all the cells as well as grid should be displayed in the displayed on the preview tab grid', () => {
485
492
  gridFillPage.steps.switchToEditTab();
493
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
486
494
  gridFillPage.steps.selectGridBorderStyleToggleButton('Dashed');
487
495
  gridFillPage.steps.switchToPreviewTab();
488
496
  gridFillPage.steps.verifyDashedBorderForDashedToggleButtonInPreviewTab();
@@ -490,6 +498,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
490
498
 
491
499
  it('When user has selected \'Dotted\' toggle button in \'Grid border style\', then the border of all the cells as well as grid should be displayed in the displayed on the preview tab grid', () => {
492
500
  gridFillPage.steps.switchToEditTab();
501
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
493
502
  gridFillPage.steps.selectGridBorderStyleToggleButton('Dotted');
494
503
  gridFillPage.steps.switchToPreviewTab();
495
504
  gridFillPage.steps.verifyDottedBorderForDottedToggleButtonInPreviewTab();
@@ -497,6 +506,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Shade the c
497
506
 
498
507
  it('When user switches on the \'Outer grid border\' switch, then thicker outer border should be displayed in the displayed on the preview tab grid', () => {
499
508
  gridFillPage.steps.switchToEditTab();
509
+ gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
500
510
  gridFillPage.steps.switchOnOuterGridBorderSwitch();
501
511
  gridFillPage.steps.switchToPreviewTab();
502
512
  utilities.verifyCSS(gridFillPage.gridWrapperPreviewTab(), {
@@ -112,7 +112,8 @@ describe('Create item page - Grid fill : Partial equal with alternative answers'
112
112
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
113
113
  });
114
114
 
115
- it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
115
+ //Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4541 is resolved
116
+ it.skip('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
116
117
  gridFillPage.steps.resetQuestionPreview();
117
118
  gridFillPage.steps.selectCellPreviewTab(0, 0);
118
119
  gridFillPage.steps.selectCellPreviewTab(0, 4);
@@ -55,13 +55,14 @@ describe('Create Item page - Grid fill: Specify Correct answer, Alternative corr
55
55
  it('When user has not given an input in \'Cell shade count\' then user should not be able to add another alternate accordion', () => {
56
56
  cy.log('Pre-step: Uncheck \'Match exact position of cells\' checkbox');
57
57
  gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
58
- gridFillPage.steps.addAlternativeAnswerAccordion(1);
59
- gridFillPage.steps.closeWarningPopup();
58
+ utilities.verifyElementDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
60
59
  gridFillPage.steps.verifyAlternativeAnswerAccordionNotExists(2);
61
60
  });
62
61
 
63
62
  //Make changes once https://redmine.zeuslearning.com/issues/579214 is resolved
64
63
  it('\'Error: Please set a correct answer.\' error message should be displayed', () => {
64
+ gridFillPage.steps.addInputToCellShadeCountInputField(5);
65
+ gridFillPage.steps.clearCellShadeCountInputField();
65
66
  utilities.verifyInnerText(gridFillPage.errorMessage(), 'Error: Please set a correct answer.');
66
67
  });
67
68
 
@@ -203,24 +203,26 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
203
203
  });
204
204
  });
205
205
 
206
- describe('Undo/Redo and Reset functionality specify correct answer section', () => {
206
+ describe('Undo/Redo Delete and Reset functionality specify correct answer section', () => {
207
207
  abortEarlySetup();
208
208
  before(() => {
209
209
  numberLinePage.steps.navigateToCreateQuestion('Number line');
210
210
  cy.barsPreLoaderWait();
211
211
  });
212
212
 
213
- it('By default, the \'Undo\', \'Redo\' and \'Reset\' buttons should be displayed in disabled state', () => {
213
+ it('By default, the \'Undo\', \'Redo\', \'Delete\' and \'Reset\' buttons should be displayed in disabled state', () => {
214
214
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Undo'));
215
215
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
216
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Delete'));
216
217
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Reset'));
217
218
  });
218
219
 
219
- it('When the user plots points on the number line then the \'Undo\' and \'Reset\' buttons should be displayed in enabled state whereas, \'Redo\' button should be displayed in disabled state', () => {
220
+ it('When the user plots points on the number line then the \'Undo\', \'Delete\' and \'Reset\' buttons should be displayed in enabled state whereas, \'Redo\' button should be displayed in disabled state', () => {
220
221
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
221
222
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 3);
222
223
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2, 3]);
223
224
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Undo'));
225
+ utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Delete'));
224
226
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Reset'));
225
227
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
226
228
  });
@@ -240,11 +242,12 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
240
242
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
241
243
  });
242
244
 
243
- it('When the user reaches the initial state by performing \'Undo\' actions then the \'Redo\' button should be in enabled state and \'Undo\' button should be in disabled state', () => {
245
+ it('When the user reaches the initial state by performing \'Undo\' actions then the \'Redo\' button should be in enabled state and \'Undo\' button and \'Delete\' button should be in disabled state', () => {
244
246
  numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Undo');
245
247
  numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Undo');
246
248
  numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [2, 3]);
247
249
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Undo'));
250
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Delete'));
248
251
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
249
252
  });
250
253
 
@@ -256,7 +259,27 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
256
259
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
257
260
  });
258
261
 
262
+ it('User should be able to select \'Delete\' control', () => {
263
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
264
+ });
265
+
266
+ it('When the user selects \'Delete\' button and when clicking on the plotted point that point should get deleted', () => {
267
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
268
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [2]);
269
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [3]);
270
+ });
271
+
272
+ it('When the user deletes all the point then \'Delete\' and \'Redo\' button should be displayed n disabled state and \'Undo\' button should be displayed in enabled state', () => {
273
+ numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 3);
274
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [3]);
275
+ utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Undo'));
276
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
277
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Delete'));
278
+ });
279
+
259
280
  it('User should be able to select \'Reset\' control', () => {
281
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Undo');
282
+ numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Undo');
260
283
  numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
261
284
  });
262
285
 
@@ -273,9 +296,10 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
273
296
  numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [2, 3]);
274
297
  });
275
298
 
276
- it('When the user \'Reset\'s the number line then the \'Undo\', \'Redo\' and \'Reset\' buttons should be in disabled state', () => {
299
+ it('When the user \'Reset\'s the number line then the \'Undo\', \'Redo\', \'Delete\' and \'Reset\' buttons should be in disabled state', () => {
277
300
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Undo'));
278
301
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Redo'));
302
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Delete'));
279
303
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionSpecifyCorrectAnswer('Reset'));
280
304
  });
281
305
  });
@@ -288,9 +312,10 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
288
312
  numberLinePage.steps.switchToPreviewTab();
289
313
  });
290
314
 
291
- it('By default, the \'Undo\', \'Redo\' and \'Reset\' buttons should be displayed in disabled state', () => {
315
+ it('By default, the \'Undo\', \'Redo\', \'Delete\' and \'Reset\' buttons should be displayed in disabled state', () => {
292
316
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
293
317
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
318
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Delete'));
294
319
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Reset'));
295
320
  });
296
321
 
@@ -300,6 +325,7 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
300
325
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [1, 2]);
301
326
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
302
327
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
328
+ utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionPreviewTab('Delete'));
303
329
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionPreviewTab('Reset'));
304
330
  });
305
331
 
@@ -318,11 +344,12 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
318
344
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
319
345
  });
320
346
 
321
- it('When the user reaches the initial state by performing \'Undo\' actions then the \'Redo\' button should be in enabled state and \'Undo\' button should be in disabled state', () => {
347
+ it('When the user reaches the initial state by performing \'Undo\' actions then the \'Redo\' button should be in enabled state and \'Undo\' button and \'Delete\' button should be in disabled state', () => {
322
348
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Undo');
323
349
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Undo');
324
350
  numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [1, 2]);
325
351
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
352
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Delete'));
326
353
  utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
327
354
  });
328
355
 
@@ -334,7 +361,27 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
334
361
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
335
362
  });
336
363
 
364
+ it('User should be able to select \'Delete\' control', () => {
365
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
366
+ });
367
+
368
+ it('When the user selects \'Delete\' button and when clicking on the plotted point that point should get deleted', () => {
369
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 1);
370
+ numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [1]);
371
+ numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [2]);
372
+ });
373
+
374
+ it('When the user deletes all the point then \'Delete\' and \'Redo\' button should be displayed n disabled state and \'Undo\' button should be displayed in enabled state', () => {
375
+ numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
376
+ numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [2]);
377
+ utilities.verifyElementNotDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
378
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
379
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Delete'));
380
+ });
381
+
337
382
  it('User should be able to select \'Reset\' control', () => {
383
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Undo');
384
+ numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Undo');
338
385
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
339
386
  });
340
387
 
@@ -353,9 +400,10 @@ describe('Number line: Tools and controls - Edit tab and preview tab tool option
353
400
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
354
401
  });
355
402
 
356
- it('When the user \'Reset\'s the number line then the \'Undo\' and \'Redo\' buttons should be in disabled state', () => {
403
+ it('When the user \'Reset\'s the number line then the \'Undo\', \'Redo\' and \'Delete\' buttons should be in disabled state', () => {
357
404
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
358
405
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
406
+ utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Delete'));
359
407
  });
360
408
  });
361
409
  });
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(12);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 4, 1: 9, 2: 5 });
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -47,7 +47,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
47
47
  equationEditorFlyout.steps.clickOnOkButton();
48
48
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 8, 1: 4, 2: 6 });
49
49
  textEntryMathPage.steps.expandAdditionalSettings();
50
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
51
51
  textEntryMathPage.steps.switchToPreviewTab();
52
52
  });
53
53
 
@@ -32,7 +32,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
32
32
  equationEditorFlyout.steps.clickOnOkButton();
33
33
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 5, 1: 9, 2: 6 });
34
34
  textEntryMathPage.steps.expandAdditionalSettings();
35
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
35
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
36
36
  textEntryMathPage.steps.switchToPreviewTab();
37
37
  });
38
38
 
@@ -141,7 +141,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
141
141
  equationEditorFlyout.steps.clickOnOkButton();
142
142
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 1, 1: 6, 2: 5 });
143
143
  textEntryMathPage.steps.expandAdditionalSettings();
144
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
144
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
145
145
  });
146
146
 
147
147
  it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
@@ -233,7 +233,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
233
233
  equationEditorFlyout.steps.clickOnOkButton();
234
234
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 2.67, 1: 1.99, 2: 1.34, 3: 4.5 });
235
235
  textEntryMathPage.steps.expandAdditionalSettings();
236
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
236
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
237
237
  });
238
238
 
239
239
  it('When the user sets \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.5 and less than 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -347,7 +347,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
347
347
  equationEditorFlyout.steps.clickOnOkButton();
348
348
  textEntryMathPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 5 });
349
349
  textEntryMathPage.steps.expandAdditionalSettings();
350
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
350
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
351
351
  });
352
352
 
353
353
  //Penalty points for the entire question
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(18);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
46
46
  equationEditorFlyout.steps.clickOnOkButton();
47
47
  textEntryMathPage.steps.allotPoints(18);
48
48
  textEntryMathPage.steps.expandAdditionalSettings();
49
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
49
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
50
  textEntryMathPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -47,7 +47,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
47
47
  equationEditorFlyout.steps.clickOnOkButton();
48
48
  textEntryMathPage.steps.allotPoints(12);
49
49
  textEntryMathPage.steps.expandAdditionalSettings();
50
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
50
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
51
51
  textEntryMathPage.steps.switchToPreviewTab();
52
52
  });
53
53
 
@@ -232,8 +232,8 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
232
232
  textEntryMathPage.steps.verifyPreviewScore(7.6667, 23);
233
233
  textEntryMathPage.steps.switchToGradingView();
234
234
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
235
- textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
236
- textEntryMathPage.steps.verifyCorrectResponseIcon(2);
235
+ textEntryMathPage.steps.verifyCorrectResponseIcon(1);
236
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
237
237
  textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
238
238
  textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t', '2⁢x2⁢y2+4⁢x⁢y+4', '9000%']);
239
239
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -31,7 +31,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
31
31
  equationEditorFlyout.steps.enterEquationUsingPiSymbol();
32
32
  textEntryMathPage.steps.allotPoints(18);
33
33
  textEntryMathPage.steps.expandAdditionalSettings();
34
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
34
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
35
35
  textEntryMathPage.steps.switchToPreviewTab();
36
36
  });
37
37
 
@@ -142,7 +142,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
142
142
  equationEditorFlyout.steps.clickOnOkButton();
143
143
  textEntryMathPage.steps.allotPoints(15);
144
144
  textEntryMathPage.steps.expandAdditionalSettings();
145
- textEntryMathPage.steps.selectModalVisibilityTypeButton();
145
+ textEntryMathPage.steps.selectModalVisibilityTypeButton();
146
146
  });
147
147
 
148
148
  it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
@@ -45,7 +45,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
45
45
 
46
46
  it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
47
47
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
48
- equationEditorFlyout.steps.enterTextInPreviewInputField(0, 'Correct1');
48
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Correct1');
49
49
  equationEditorFlyout.steps.clickOnOkButton();
50
50
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
51
51
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -131,7 +131,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
131
131
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
132
132
  }
133
133
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
134
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
134
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
135
135
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
136
136
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
137
137
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
@@ -142,13 +142,13 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
142
142
 
143
143
  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, and \'Your answer is incorrect\' label should be displayed', () => {
144
144
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
145
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
145
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
146
146
  equationEditorFlyout.steps.clickOnOkButton();
147
147
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
148
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
148
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(1, 'Incorrect answer 2');
149
149
  equationEditorFlyout.steps.clickOnOkButton();
150
150
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
151
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
151
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(2, 'Incorrect answer 3');
152
152
  equationEditorFlyout.steps.clickOnOkButton();
153
153
  if (view === 'Grading view') {
154
154
  studentViewPage.steps.submitResponse();
@@ -164,7 +164,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
164
164
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
165
165
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
166
166
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
167
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
167
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
168
168
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
169
169
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
170
170
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -175,12 +175,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
175
175
  studentViewPage.steps.clearResponses();
176
176
  }
177
177
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
178
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
178
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Correct1');
179
179
  equationEditorFlyout.steps.clickOnOkButton();
180
180
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
181
181
  equationEditorFlyout.steps.enterQuadraticEquation();
182
182
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
183
- equationEditorFlyout.steps.enterTextInPreviewInputField('6*3.14');
183
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(2, '6*3.14');
184
184
  equationEditorFlyout.steps.clickOnOkButton();
185
185
  if (view === 'Grading view') {
186
186
  studentViewPage.steps.submitResponse();
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
196
196
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
197
197
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
198
198
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
199
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
199
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
200
200
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
201
201
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
202
202
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -207,7 +207,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
207
207
  studentViewPage.steps.clearResponses();
208
208
  }
209
209
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
210
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
210
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Correct1');
211
211
  equationEditorFlyout.steps.clickOnOkButton();
212
212
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
213
213
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -225,7 +225,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
225
225
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
226
226
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
227
227
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
228
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
228
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
229
229
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
230
230
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
231
231
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -236,7 +236,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
236
236
  studentViewPage.steps.clearResponses();
237
237
  }
238
238
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
239
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
239
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Correct1');
240
240
  equationEditorFlyout.steps.clickOnOkButton();
241
241
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
242
242
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -302,10 +302,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
302
302
  it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
303
303
  textEntryMathPage.steps.resetQuestionPreview();
304
304
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
305
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
305
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
306
306
  equationEditorFlyout.steps.clickOnOkButton();
307
307
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
308
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
308
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(1, 'Incorrect answer 2');
309
309
  equationEditorFlyout.steps.clickOnOkButton();
310
310
  textEntryMathPage.steps.verifyPreviewScore(2, 20);
311
311
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -325,10 +325,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
325
325
  it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
326
326
  textEntryMathPage.steps.resetQuestionPreview();
327
327
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
328
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
328
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
329
329
  equationEditorFlyout.steps.clickOnOkButton();
330
330
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
331
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
331
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(1, 'Incorrect answer 2');
332
332
  equationEditorFlyout.steps.clickOnOkButton();
333
333
  textEntryMathPage.steps.verifyPreviewScore(2, 20);
334
334
  });
@@ -59,7 +59,6 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
59
59
  equationEditorFlyout.steps.clickOnOkButton();
60
60
  textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(2);
61
61
  textEntryMathPage.steps.expandAdditionalSettings();
62
- //The following is not present on staging
63
62
  textEntryMathPage.steps.selectModalVisibilityTypeButton();
64
63
  textEntryMathPage.steps.switchToPreviewTab();
65
64
  break;
@@ -109,7 +108,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
109
108
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
110
109
  }
111
110
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
112
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
111
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
113
112
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
114
113
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
115
114
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
@@ -148,7 +147,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
148
147
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
149
148
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
150
149
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
151
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
150
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
152
151
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
153
152
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
154
153
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -187,7 +186,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
187
186
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
188
187
  textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
189
188
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
190
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
189
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
191
190
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
192
191
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
193
192
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -223,7 +222,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
223
222
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
224
223
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
225
224
  textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
226
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
225
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢1', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
227
226
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
228
227
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
229
228
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');