itemengine-cypress-automation 1.0.355 → 1.0.356-IEI-5712-TEM-Validation-0cadad8.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.
@@ -466,6 +466,55 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
466
466
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
467
467
  });
468
468
 
469
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
470
+ //Failing due to above
471
+ it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using a fraction with a negative numerator in preview tab response fields they should be treated as correct', () => {
472
+ textEntryMathPage.steps.resetQuestionPreview();
473
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
474
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
475
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
476
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
477
+ equationEditorFlyout.steps.clickOnOkButton();
478
+ textEntryMathPage.steps.switchToGradingView();
479
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
480
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
481
+ });
482
+
483
+ it('When the user enters a fraction value in the \'Specify correct answer\' response field and then enters the fraction with a negative numerator yielding the same value but not the exact form, it should be treated as correct', () => {
484
+ textEntryMathPage.steps.resetQuestionPreview();
485
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
486
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
487
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract'] }, { categoryName: 'algebra', symbolName: ['groupInBrackets'] }, { categoryName: 'numPad', symbolName: ['subtract', 'one', 'six'] }]);
488
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['12']);
489
+ equationEditorFlyout.steps.clickOnOkButton();
490
+ textEntryMathPage.steps.switchToGradingView();
491
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
492
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
493
+ });
494
+
495
+ it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using a fraction with a negative denominator in preview tab response fields they should be treated as correct', () => {
496
+ textEntryMathPage.steps.resetQuestionPreview();
497
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
498
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'four'] }]);
499
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
500
+ equationEditorFlyout.steps.clickOnOkButton();
501
+ textEntryMathPage.steps.switchToGradingView();
502
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
503
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
504
+ });
505
+
506
+ it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using a negative mixed fraction in preview tab response fields they should be treated as correct', () => {
507
+ textEntryMathPage.steps.resetQuestionPreview();
508
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
509
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-1');
510
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
511
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
512
+ equationEditorFlyout.steps.clickOnOkButton();
513
+ textEntryMathPage.steps.switchToGradingView();
514
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
515
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
516
+ });
517
+
469
518
  //Syntax: Mixed fraction
470
519
  it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using mixed fractions in preview tab response fields they should be treated as correct', () => {
471
520
  textEntryMathPage.steps.switchToEditTab();
@@ -570,6 +619,43 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
570
619
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
571
620
  });
572
621
 
622
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
623
+ //Failing due to above
624
+ it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using negative mixed fractions in preview tab response fields they should be treated as correct', () => {
625
+ textEntryMathPage.steps.resetQuestionPreview();
626
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
627
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
628
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
629
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
630
+ equationEditorFlyout.steps.clickOnOkButton();
631
+ textEntryMathPage.steps.switchToGradingView();
632
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
633
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
634
+ });
635
+
636
+ it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using another negative mixed fraction in preview tab response fields they should be treated as correct', () => {
637
+ textEntryMathPage.steps.resetQuestionPreview();
638
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
639
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-6');
640
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
641
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4', '3']);
642
+ equationEditorFlyout.steps.clickOnOkButton();
643
+ textEntryMathPage.steps.switchToGradingView();
644
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
645
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
646
+ });
647
+
648
+ it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using fractions with subtraction in preview tab response fields they should be treated as correct', () => {
649
+ textEntryMathPage.steps.resetQuestionPreview();
650
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
651
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'two', 'two'] }]);
652
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
653
+ equationEditorFlyout.steps.clickOnOkButton();
654
+ textEntryMathPage.steps.switchToGradingView();
655
+ // textEntryMathPage.steps.verifyCorrectResponseIcon(0);
656
+ // textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
657
+ });
658
+
573
659
  //Syntax: Simple fraction
574
660
  it('When user has selected \'Simple fraction\' from the syntax dropdown and user enters input using decimal fractions in preview tab response fields they should be treated as correct', () => {
575
661
  textEntryMathPage.steps.switchToEditTab();
@@ -413,5 +413,102 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
413
413
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
414
414
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
415
415
  });
416
+
417
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
418
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
419
+ textEntryMathPage.steps.switchToEditTab();
420
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
421
+ equationEditorFlyout.steps.clearAll();
422
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
423
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
424
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
425
+ equationEditorFlyout.steps.clickOnOkButton();
426
+ textEntryMathPage.steps.switchToPreviewTab();
427
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
428
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
429
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
430
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
431
+ equationEditorFlyout.steps.clickOnOkButton();
432
+ textEntryMathPage.steps.switchToGradingView();
433
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
434
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
435
+ });
436
+
437
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as incorrect', () => {
438
+ textEntryMathPage.steps.resetQuestionPreview();
439
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
440
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
441
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract'] }, { categoryName: 'algebra', symbolName: ['groupInBrackets'] }, { categoryName: 'numPad', symbolName: ['subtract', 'one', 'six'] }]);
442
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['12']);
443
+ equationEditorFlyout.steps.clickOnOkButton();
444
+ textEntryMathPage.steps.switchToGradingView();
445
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
446
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
447
+ });
448
+
449
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
450
+ textEntryMathPage.steps.resetQuestionPreview();
451
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
452
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'four'] }]);
453
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
454
+ equationEditorFlyout.steps.clickOnOkButton();
455
+ textEntryMathPage.steps.switchToGradingView();
456
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
457
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
458
+ });
459
+
460
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
461
+ textEntryMathPage.steps.resetQuestionPreview();
462
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
463
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-1');
464
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
465
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
466
+ equationEditorFlyout.steps.clickOnOkButton();
467
+ textEntryMathPage.steps.switchToGradingView();
468
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
469
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
470
+ });
471
+
472
+ it('When the user enters a negative mixed fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
473
+ textEntryMathPage.steps.switchToEditTab();
474
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
475
+ equationEditorFlyout.steps.clearAll();
476
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
477
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
478
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
479
+ equationEditorFlyout.steps.clickOnOkButton();
480
+ textEntryMathPage.steps.switchToPreviewTab();
481
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
482
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
483
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
484
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
485
+ equationEditorFlyout.steps.clickOnOkButton();
486
+ textEntryMathPage.steps.switchToGradingView();
487
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
488
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
489
+ });
490
+
491
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as incorrect', () => {
492
+ textEntryMathPage.steps.resetQuestionPreview();
493
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
494
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-6');
495
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
496
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4', '3']);
497
+ equationEditorFlyout.steps.clickOnOkButton();
498
+ textEntryMathPage.steps.switchToGradingView();
499
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
500
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
501
+ });
502
+
503
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
504
+ textEntryMathPage.steps.resetQuestionPreview();
505
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
506
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'two', 'two'] }]);
507
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
508
+ equationEditorFlyout.steps.clickOnOkButton();
509
+ textEntryMathPage.steps.switchToGradingView();
510
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
511
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
512
+ });
416
513
  });
417
514
  });
@@ -458,5 +458,102 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
458
458
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
459
459
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
460
460
  });
461
+
462
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
463
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
464
+ textEntryMathPage.steps.switchToEditTab();
465
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
466
+ equationEditorFlyout.steps.clearAll();
467
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
468
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
469
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
470
+ equationEditorFlyout.steps.clickOnOkButton();
471
+ textEntryMathPage.steps.switchToPreviewTab();
472
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
473
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
474
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
475
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
476
+ equationEditorFlyout.steps.clickOnOkButton();
477
+ textEntryMathPage.steps.switchToGradingView();
478
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
479
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
480
+ });
481
+
482
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as incorrect', () => {
483
+ textEntryMathPage.steps.resetQuestionPreview();
484
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
485
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
486
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract'] }, { categoryName: 'algebra', symbolName: ['groupInBrackets'] }, { categoryName: 'numPad', symbolName: ['subtract', 'one', 'six'] }]);
487
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['12']);
488
+ equationEditorFlyout.steps.clickOnOkButton();
489
+ textEntryMathPage.steps.switchToGradingView();
490
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
491
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
492
+ });
493
+
494
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
495
+ textEntryMathPage.steps.resetQuestionPreview();
496
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
497
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'four'] }]);
498
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
499
+ equationEditorFlyout.steps.clickOnOkButton();
500
+ textEntryMathPage.steps.switchToGradingView();
501
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
502
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
503
+ });
504
+
505
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
506
+ textEntryMathPage.steps.resetQuestionPreview();
507
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
508
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-1');
509
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
510
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
511
+ equationEditorFlyout.steps.clickOnOkButton();
512
+ textEntryMathPage.steps.switchToGradingView();
513
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
514
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
515
+ });
516
+
517
+ it('When the user enters a negative mixed fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
518
+ textEntryMathPage.steps.switchToEditTab();
519
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
520
+ equationEditorFlyout.steps.clearAll();
521
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
522
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
523
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
524
+ equationEditorFlyout.steps.clickOnOkButton();
525
+ textEntryMathPage.steps.switchToPreviewTab();
526
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
527
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
528
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
529
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
530
+ equationEditorFlyout.steps.clickOnOkButton();
531
+ textEntryMathPage.steps.switchToGradingView();
532
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
533
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
534
+ });
535
+
536
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as incorrect', () => {
537
+ textEntryMathPage.steps.resetQuestionPreview();
538
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
539
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-6');
540
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
541
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4', '3']);
542
+ equationEditorFlyout.steps.clickOnOkButton();
543
+ textEntryMathPage.steps.switchToGradingView();
544
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
545
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
546
+ });
547
+
548
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as incorrect', () => {
549
+ textEntryMathPage.steps.resetQuestionPreview();
550
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
551
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'two', 'two'] }]);
552
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
553
+ equationEditorFlyout.steps.clickOnOkButton();
554
+ textEntryMathPage.steps.switchToGradingView();
555
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
556
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
557
+ });
461
558
  });
462
559
  });
@@ -788,5 +788,102 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
788
788
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
789
789
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
790
790
  });
791
+
792
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
793
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
794
+ textEntryMathPage.steps.switchToEditTab();
795
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
796
+ equationEditorFlyout.steps.clearAll();
797
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
798
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
799
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
800
+ equationEditorFlyout.steps.clickOnOkButton();
801
+ textEntryMathPage.steps.switchToPreviewTab();
802
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
803
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
804
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
805
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
806
+ equationEditorFlyout.steps.clickOnOkButton();
807
+ textEntryMathPage.steps.switchToGradingView();
808
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
809
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
810
+ });
811
+
812
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as correct', () => {
813
+ textEntryMathPage.steps.resetQuestionPreview();
814
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
815
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
816
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract'] }, { categoryName: 'algebra', symbolName: ['groupInBrackets'] }, { categoryName: 'numPad', symbolName: ['subtract', 'one', 'six'] }]);
817
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['12']);
818
+ equationEditorFlyout.steps.clickOnOkButton();
819
+ textEntryMathPage.steps.switchToGradingView();
820
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
821
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
822
+ });
823
+
824
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
825
+ textEntryMathPage.steps.resetQuestionPreview();
826
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
827
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'four'] }]);
828
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
829
+ equationEditorFlyout.steps.clickOnOkButton();
830
+ textEntryMathPage.steps.switchToGradingView();
831
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
832
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
833
+ });
834
+
835
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
836
+ textEntryMathPage.steps.resetQuestionPreview();
837
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
838
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-1');
839
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
840
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
841
+ equationEditorFlyout.steps.clickOnOkButton();
842
+ textEntryMathPage.steps.switchToGradingView();
843
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
844
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
845
+ });
846
+
847
+ it('When the user enters a negative mixed fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
848
+ textEntryMathPage.steps.switchToEditTab();
849
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
850
+ equationEditorFlyout.steps.clearAll();
851
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
852
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
853
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
854
+ equationEditorFlyout.steps.clickOnOkButton();
855
+ textEntryMathPage.steps.switchToPreviewTab();
856
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
857
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
858
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
859
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
860
+ equationEditorFlyout.steps.clickOnOkButton();
861
+ textEntryMathPage.steps.switchToGradingView();
862
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
863
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
864
+ });
865
+
866
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as correct', () => {
867
+ textEntryMathPage.steps.resetQuestionPreview();
868
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
869
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-6');
870
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
871
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4', '3']);
872
+ equationEditorFlyout.steps.clickOnOkButton();
873
+ textEntryMathPage.steps.switchToGradingView();
874
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
875
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
876
+ });
877
+
878
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
879
+ textEntryMathPage.steps.resetQuestionPreview();
880
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
881
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'two', 'two'] }]);
882
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
883
+ equationEditorFlyout.steps.clickOnOkButton();
884
+ textEntryMathPage.steps.switchToGradingView();
885
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
886
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
887
+ });
791
888
  });
792
889
  });
@@ -9,7 +9,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
9
9
  });
10
10
 
11
11
  //Failing due to https://redmine.zeuslearning.com/issues/562013
12
- describe('Evaluation methods: Value is equivalent', { tags: 'smoke' }, () => {
12
+ describe.only('Evaluation methods: Value is equivalent', { tags: 'smoke' }, () => {
13
13
  abortEarlySetup();
14
14
  before(() => {
15
15
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
@@ -529,5 +529,102 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
529
529
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
530
530
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
531
531
  });
532
+
533
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-5716
534
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
535
+ textEntryMathPage.steps.switchToEditTab();
536
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
537
+ equationEditorFlyout.steps.clearAll();
538
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
539
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
540
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
541
+ equationEditorFlyout.steps.clickOnOkButton();
542
+ textEntryMathPage.steps.switchToPreviewTab();
543
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
544
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
545
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
546
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
547
+ equationEditorFlyout.steps.clickOnOkButton();
548
+ textEntryMathPage.steps.switchToGradingView();
549
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
550
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
551
+ });
552
+
553
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as correct', () => {
554
+ textEntryMathPage.steps.resetQuestionPreview();
555
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
556
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-');
557
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract'] }, { categoryName: 'algebra', symbolName: ['groupInBrackets'] }, { categoryName: 'numPad', symbolName: ['subtract', 'one', 'six'] }]);
558
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['12']);
559
+ equationEditorFlyout.steps.clickOnOkButton();
560
+ textEntryMathPage.steps.switchToGradingView();
561
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
562
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
563
+ });
564
+
565
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
566
+ textEntryMathPage.steps.resetQuestionPreview();
567
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
568
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'four'] }]);
569
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
570
+ equationEditorFlyout.steps.clickOnOkButton();
571
+ textEntryMathPage.steps.switchToGradingView();
572
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
573
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
574
+ });
575
+
576
+ it('When the user enters a negative fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
577
+ textEntryMathPage.steps.resetQuestionPreview();
578
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
579
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-1');
580
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
581
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
582
+ equationEditorFlyout.steps.clickOnOkButton();
583
+ textEntryMathPage.steps.switchToGradingView();
584
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
585
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
586
+ });
587
+
588
+ it('When the user enters a negative mixed fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
589
+ textEntryMathPage.steps.switchToEditTab();
590
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
591
+ equationEditorFlyout.steps.clearAll();
592
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
593
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
594
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
595
+ equationEditorFlyout.steps.clickOnOkButton();
596
+ textEntryMathPage.steps.switchToPreviewTab();
597
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
598
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-7');
599
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
600
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
601
+ equationEditorFlyout.steps.clickOnOkButton();
602
+ textEntryMathPage.steps.switchToGradingView();
603
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
604
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
605
+ });
606
+
607
+ it('When the user enters a fraction value \'Specify correct answer\' response field and then the user enters the fraction with negative numerator which yields the same value but is not the exact form then it should be treated as correct', () => {
608
+ textEntryMathPage.steps.resetQuestionPreview();
609
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
610
+ equationEditorFlyout.steps.enterTextInPreviewInputField('-6');
611
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
612
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4', '3']);
613
+ equationEditorFlyout.steps.clickOnOkButton();
614
+ textEntryMathPage.steps.switchToGradingView();
615
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
616
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
617
+ });
618
+
619
+ it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the mixed fraction which yields the same value but is not the exact form then it should be treated as correct', () => {
620
+ textEntryMathPage.steps.resetQuestionPreview();
621
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
622
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['subtract', 'two', 'two'] }]);
623
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
624
+ equationEditorFlyout.steps.clickOnOkButton();
625
+ textEntryMathPage.steps.switchToGradingView();
626
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
627
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
628
+ });
532
629
  });
533
630
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.355",
3
+ "version": "1.0.356-IEI-5712-TEM-Validation-0cadad8.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }