itemengine-cypress-automation 1.0.381-regressionFixes10June-8dc1710.0 → 1.0.382-FixesPR3-b746986.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +2 -0
  2. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  3. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +1 -0
  4. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
  5. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +213 -0
  6. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +249 -0
  7. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +266 -0
  8. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +268 -0
  9. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +5 -5
  10. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
  11. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +1 -1
  12. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -2
  13. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -2
  14. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +263 -0
  15. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +217 -0
  16. package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
  17. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
  18. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +263 -0
  19. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -1
  20. package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
  21. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -0
  22. package/cypress/pages/components/equationEditorSectionCommonComponent.js +4 -4
  23. package/cypress/pages/listOrderingPage.js +6 -1
  24. package/cypress/pages/textEntryMathPage.js +3 -7
  25. package/package.json +1 -1
@@ -263,6 +263,269 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
263
263
  });
264
264
  });
265
265
 
266
+ views.forEach((view) => {
267
+ describe(`Text entry math with image: manually scored - ${view}`, { tags: 'smoke' }, () => {
268
+ abortEarlySetup();
269
+ before(() => {
270
+ switch (view) {
271
+ case 'Question preview':
272
+ textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
273
+ cy.barsPreLoaderWait();
274
+ textEntryMathWithImagePage.steps.addBackground();
275
+ textEntryMathWithImagePage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
276
+ textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
277
+ textEntryMathWithImagePage.steps.verifyImageIsUploaded();
278
+ textEntryMathWithImagePage.steps.insertResponseArea(10);
279
+ textEntryMathWithImagePage.steps.insertResponseArea(40);
280
+ textEntryMathWithImagePage.steps.insertResponseArea(50);
281
+ textEntryMathWithImagePage.steps.expandScoringTypeDropdown();
282
+ textEntryMathWithImagePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
283
+ textEntryMathWithImagePage.steps.allotPoints(20);
284
+ textEntryMathWithImagePage.steps.switchToPreviewTab();
285
+ break;
286
+ case 'Item preview':
287
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
288
+ itemPreviewPage.steps.switchToPreviewTab();
289
+ break;
290
+ case 'Grading view':
291
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
292
+ break;
293
+ }
294
+ });
295
+
296
+ beforeEach(() => {
297
+ switch (view) {
298
+ case 'Question preview':
299
+ textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
300
+ textEntryMathWithImagePage.steps.resetQuestionPreview();
301
+ break;
302
+ case 'Item preview':
303
+ cy.get('body').then($body => {
304
+ if ($body.find('.preview-mode-wrapper input[aria-label="Student View"]').length) {
305
+ itemPreviewPage.steps.switchToStudentView();
306
+ }
307
+ });
308
+ itemPreviewPage.steps.resetQuestionPreview();
309
+ break;
310
+ case 'Grading view':
311
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
312
+ break;
313
+ }
314
+ });
315
+
316
+ if (view === 'Question preview') {
317
+ after(() => {
318
+ textEntryMathWithImagePage.steps.clickOnSaveQuestionButton();
319
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
320
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
321
+ });
322
+ };
323
+
324
+ it('Question instructions should be visible', () => {
325
+ textEntryMathWithImagePage.steps.verifyQuestionInstructionsTextPreviewTab('Enter the correct answer in the response field');
326
+ textEntryMathWithImagePage.steps.verifyVisibityOfQuestionInstructionsText();
327
+ });
328
+
329
+ it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
330
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
331
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, 'Correct1');
332
+ equationEditorFlyout.steps.clickOnOkButton();
333
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
334
+ equationEditorFlyout.steps.enterQuadraticEquation();
335
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
336
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '6*3.14');
337
+ equationEditorFlyout.steps.clickOnOkButton();
338
+ if (view === 'Grading view') {
339
+ studentViewPage.steps.submitResponse();
340
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
341
+ studentViewPage.steps.clickOnGoToGradingViewButton();
342
+ gradingViewPage.steps.verifyGradingViewScore('', 20);
343
+ }
344
+ if (view === 'Question preview' || view === 'Item preview') {
345
+ textEntryMathWithImagePage.steps.checkManuallyScoredScoringLabel();
346
+ }
347
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
348
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
349
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(1);
350
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
351
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerSectionNotExists();
352
+ });
353
+ });
354
+ });
355
+
356
+ views.forEach((view) => {
357
+ describe(`Text entry math with image: non scored - ${view}`, { tags: 'smoke' }, () => {
358
+ abortEarlySetup();
359
+ before(() => {
360
+ switch (view) {
361
+ case 'Question preview':
362
+ textEntryMathWithImagePage.steps.navigateToCreateQuestion('Text Entry Math');
363
+ cy.barsPreLoaderWait();
364
+ textEntryMathWithImagePage.steps.addBackground();
365
+ textEntryMathWithImagePage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
366
+ textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
367
+ textEntryMathWithImagePage.steps.verifyImageIsUploaded();
368
+ textEntryMathWithImagePage.steps.insertResponseArea(10);
369
+ textEntryMathWithImagePage.steps.insertResponseArea(40);
370
+ textEntryMathWithImagePage.steps.insertResponseArea(50);
371
+ textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
372
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
373
+ equationEditorFlyout.steps.clearAll();
374
+ equationEditorFlyout.steps.enterTextInPreviewInputField('12');
375
+ equationEditorFlyout.steps.clickOnOkButton();
376
+ textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
377
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
378
+ equationEditorFlyout.steps.enterQuadraticEquation();
379
+ textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
380
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
381
+ equationEditorFlyout.steps.enterEquationUsingPiSymbol();
382
+ textEntryMathWithImagePage.steps.expandScoringTypeDropdown();
383
+ textEntryMathWithImagePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
384
+ textEntryMathWithImagePage.steps.switchToPreviewTab();
385
+ break;
386
+ case 'Item preview':
387
+ cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
388
+ itemPreviewPage.steps.switchToPreviewTab();
389
+ break;
390
+ case 'Grading view':
391
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
392
+ break;
393
+ }
394
+ });
395
+
396
+ beforeEach(() => {
397
+ switch (view) {
398
+ case 'Question preview':
399
+ textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
400
+ textEntryMathWithImagePage.steps.resetQuestionPreview();
401
+ break;
402
+ case 'Item preview':
403
+ cy.get('body').then($body => {
404
+ if ($body.find('.preview-mode-wrapper input[aria-label="Student View"]').length) {
405
+ itemPreviewPage.steps.switchToStudentView();
406
+ }
407
+ });
408
+ itemPreviewPage.steps.resetQuestionPreview();
409
+ break;
410
+ case 'Grading view':
411
+ cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
412
+ break;
413
+ }
414
+ });
415
+
416
+ if (view === 'Question preview') {
417
+ after(() => {
418
+ textEntryMathWithImagePage.steps.clickOnSaveQuestionButton();
419
+ utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
420
+ itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
421
+ });
422
+ }
423
+
424
+ it('When the user selects "Grading" view without attempting the question, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
425
+ if (view === 'Grading view') {
426
+ studentViewPage.steps.submitResponse();
427
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
428
+ studentViewPage.steps.clickOnGoToGradingViewButton();
429
+ }
430
+ if (view === 'Question preview' || view === 'Item preview') {
431
+ textEntryMathWithImagePage.steps.switchToGradingView();
432
+ }
433
+ textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
434
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
435
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
436
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
437
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
438
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(1);
439
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
440
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
441
+ });
442
+
443
+ it('When the user attempts the question incorrectly, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
444
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
445
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
446
+ equationEditorFlyout.steps.clickOnOkButton();
447
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
448
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
449
+ equationEditorFlyout.steps.clickOnOkButton();
450
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
451
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
452
+ equationEditorFlyout.steps.clickOnOkButton();
453
+ if (view === 'Grading view') {
454
+ studentViewPage.steps.submitResponse();
455
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
456
+ studentViewPage.steps.clickOnGoToGradingViewButton();
457
+ }
458
+ if (view === 'Question preview' || view === 'Item preview') {
459
+ textEntryMathWithImagePage.steps.switchToGradingView();
460
+ }
461
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
462
+ textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(0);
463
+ textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(1);
464
+ textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
465
+ textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
466
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
467
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
468
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
469
+ });
470
+
471
+ it('When the user attempts the question partially correct, correct/incorrect icons should not be displayed, correct answers section should be displayed, and no correct/incorrect label should be shown', () => {
472
+ if (view === 'Grading view') {
473
+ studentViewPage.steps.clearResponses();
474
+ }
475
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
476
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
477
+ equationEditorFlyout.steps.clickOnOkButton();
478
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
479
+ equationEditorFlyout.steps.enterQuadraticEquation();
480
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
481
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '13');
482
+ equationEditorFlyout.steps.clickOnOkButton();
483
+ if (view === 'Grading view') {
484
+ studentViewPage.steps.submitResponse();
485
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
486
+ studentViewPage.steps.clickOnGoToGradingViewButton();
487
+ }
488
+ if (view === 'Question preview' || view === 'Item preview') {
489
+ textEntryMathWithImagePage.steps.switchToGradingView();
490
+ }
491
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
492
+ textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
493
+ textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
494
+ textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
495
+ textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
496
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
497
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
498
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
499
+ });
500
+
501
+ it('When the user attempts the question correctly, correct/incorrect icons should not be displayed, correct answers section should not be displayed, and no correct/incorrect label should be shown', () => {
502
+ if (view === 'Grading view') {
503
+ studentViewPage.steps.clearResponses();
504
+ }
505
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
506
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
507
+ equationEditorFlyout.steps.clickOnOkButton();
508
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
509
+ equationEditorFlyout.steps.enterQuadraticEquation();
510
+ textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
511
+ equationEditorFlyout.steps.enterEquationUsingPiSymbol();
512
+ if (view === 'Grading view') {
513
+ studentViewPage.steps.submitResponse();
514
+ utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
515
+ studentViewPage.steps.clickOnGoToGradingViewButton();
516
+ }
517
+ if (view === 'Question preview' || view === 'Item preview') {
518
+ textEntryMathWithImagePage.steps.switchToGradingView();
519
+ }
520
+ textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel("correct");
521
+ textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
522
+ textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
523
+ textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(2);
524
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerSectionNotExists();
525
+ });
526
+ });
527
+ });
528
+
266
529
  if (!grepTags || !grepTags.includes('smoke')) {
267
530
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
268
531
  abortEarlySetup();
@@ -387,7 +387,6 @@ describe('Create item page - Text entry math: Question instructions, Options sec
387
387
  textEntryMathWithImagePage.steps.addBackground();
388
388
  textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
389
389
  textEntryMathWithImagePage.steps.verifyFileNameLabel('highlightImage.jpg');
390
- utilities.verifyElementVisibilityState(textEntryMathWithImagePage.uploadImageProgressBar(), 'visible');
391
390
  textEntryMathWithImagePage.steps.verifyImageIsUploaded();
392
391
  });
393
392
 
@@ -299,7 +299,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
299
299
  textEntryMathWithImagePage.steps.clearWidthInputField();
300
300
  textEntryMathWithImagePage.steps.insertResponseArea(20);
301
301
  textEntryMathWithImagePage.steps.switchToPreviewTab();
302
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '46px');
302
+ textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '32px');
303
303
  textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
304
304
  });
305
305
  });
@@ -24,6 +24,7 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
24
24
  textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
25
25
  });
26
26
  textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
27
+ utilities.verifyInnerText(textSelectionPage.specifyPossibleOptionsTextFieldWrapper(), "Horses cannot breat& through their mouth! Cows sleep standing up?\n\nDogs have e#cellent 'hearing'.\n\nDeers possess nearly, 300 degree field of vision.")
27
28
  });
28
29
 
29
30
  it('\'Text selection mode\' label and \'Custom\', \'Paragraph\', \'Sentence\' and \'Word\' text selection modes should be displayed', () => {
@@ -1,6 +1,6 @@
1
1
  import utilities from "../../support/helpers/utilities";
2
2
  import { equationEditorCategoriesAndSymbols } from "../../fixtures/equationEditorCategoriesAndSymbols ";
3
- import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage } from "../components";
3
+ import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage, autoScoredScoringPreviewTab } from "../components";
4
4
  const css = Cypress.env('css');
5
5
  const allCategories = Object.values(equationEditorCategoriesAndSymbols)
6
6
  const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
@@ -302,7 +302,7 @@ const tests = {
302
302
  it(`In the equation editor flyout the ${allCategories[0].displayName} should be selected by default and the Equation editor input field should be prefilled with the added equation`, () => {
303
303
  equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
304
304
  cy.log('Adding this to focus out of input field')
305
- equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
305
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
306
306
  utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1​');
307
307
  });
308
308
 
@@ -312,7 +312,7 @@ const tests = {
312
312
  equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5=1');
313
313
  }
314
314
  else {
315
- equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
315
+ equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
316
316
  }
317
317
  });
318
318
 
@@ -330,7 +330,7 @@ const tests = {
330
330
  equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5×0');
331
331
  }
332
332
  else {
333
- equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0');
333
+ equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0');
334
334
  }
335
335
  });
336
336
  },
@@ -255,7 +255,7 @@ const steps = {
255
255
  break;
256
256
  case 'none':
257
257
  dragIcon
258
- .should('not.be.visible');
258
+ .should('not.exist');
259
259
  break;
260
260
  default:
261
261
  throw new Error('Invalid drag handle option');
@@ -755,6 +755,7 @@ const steps = {
755
755
  ///Dropdown menu steps
756
756
  expandDropdownMenuOptionsDropdown: () => {
757
757
  listOrderingPage.dropdownMenuOptionsDropdown()
758
+ .trigger('mouseover')
758
759
  .click();
759
760
  },
760
761
 
@@ -773,6 +774,7 @@ const steps = {
773
774
  */
774
775
  expandPositionDropdownSpecifyCorrectAnswerSection: (dropdownIndex) => {
775
776
  utilities.getNthElement(listOrderingPage.positionDropdownSpecifyCorrectAnswerSection(), dropdownIndex)
777
+ .trigger('mouseover')
776
778
  .click();
777
779
  },
778
780
 
@@ -784,6 +786,7 @@ const steps = {
784
786
  selectOptionPositionSpecifyCorrectAnswerSection: (optionIndex, position) => {
785
787
  steps.expandPositionDropdownSpecifyCorrectAnswerSection(optionIndex);
786
788
  listOrderingPage.positionDropdownListOption(position)
789
+ .trigger('mouseover')
787
790
  .click();
788
791
  },
789
792
 
@@ -805,6 +808,7 @@ const steps = {
805
808
  */
806
809
  expandPositionDropdownPreviewTab: (dropdownIndex) => {
807
810
  utilities.getNthElement(listOrderingPage.positionDropdownPreviewTab(), dropdownIndex)
811
+ .trigger('mouseover')
808
812
  .click();
809
813
  },
810
814
 
@@ -826,6 +830,7 @@ const steps = {
826
830
  selectOptionPositionPreviewTab: (optionIndex, position) => {
827
831
  steps.expandPositionDropdownPreviewTab(optionIndex);
828
832
  listOrderingPage.positionDropdownListOption(position)
833
+ .trigger('mouseover')
829
834
  .click();
830
835
  },
831
836
 
@@ -1447,25 +1447,21 @@ const tests = {
1447
1447
  });
1448
1448
  }
1449
1449
 
1450
- it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
1450
+ it('When user focuses in and out of the response accordion \'Answer\' input field, error message should not be displayed', () => {
1451
1451
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
1452
1452
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1453
1453
  equationEditorFlyout.steps.focusInPreviewInputField();
1454
1454
  equationEditorFlyout.steps.clickOnOkButton();
1455
1455
  textEntryMathPage.steps.focusOutOfResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1456
- utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
1457
- utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
1456
+ utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
1458
1457
  });
1459
1458
 
1460
- it('When gives an input to \'Answer\' input field,then error message should disappear', () => {
1459
+ it('When gives an input to \'Answer\' input field,then error message should not be displayed', () => {
1461
1460
  textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(a−b)');
1462
1461
  commonComponents.steps.verifyErrorMessageIsNotDisplayed();
1463
1462
  });
1464
1463
 
1465
1464
  it('User should be able to expand multiple response accordions simultaneously', () => {
1466
- if (accordionName === 'Alternate') {
1467
- textEntryMathPage.steps.deleteAlternativeAnswerAccordion(0);
1468
- }
1469
1465
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
1470
1466
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
1471
1467
  textEntryMathPage.steps.verifyResponseAccordionIsExpanded(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.381-regressionFixes10June-8dc1710.0",
3
+ "version": "1.0.382-FixesPR3-b746986.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {