itemengine-cypress-automation 1.0.285 → 1.0.289-27thJanRepoUpdate-e883226.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +4 -4
  2. package/cypress/e2e/ILC/DeleteItem/deleteItem.ts +140 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +4 -4
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +97 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +9 -0
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +1 -1
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +8 -0
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
  9. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +27 -2
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +0 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/manuallyAndNonScoredEditTab.js +16 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +10 -1
  15. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +8 -0
  16. package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +8 -0
  17. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +3 -3
  18. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +1 -0
  19. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +8 -0
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +8 -0
  21. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +10 -0
  22. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +10 -0
  23. package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +3 -3
  24. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/manuallyAndNonScoredEditTab.js +13 -0
  25. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +8 -0
  26. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +1 -1
  27. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +8 -0
  28. package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
  29. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +8 -0
  30. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
  31. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +5 -5
  32. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +8 -0
  33. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
  34. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +2 -1
  35. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +9 -0
  36. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +2 -2
  37. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +8 -0
  38. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +0 -1
  39. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +8 -0
  40. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
  41. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +262 -75
  42. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +92 -0
  43. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +47 -0
  44. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +47 -0
  45. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  46. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/manuallyAndNonScored.js +8 -0
  47. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +2 -3
  48. package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +8 -0
  49. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
  50. package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +58 -1
  51. package/cypress/pages/audioPlayerPage.js +1 -2
  52. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +12 -0
  53. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +37 -0
  54. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  55. package/cypress/pages/components/equationEditorFlyout.js +9 -0
  56. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -4
  57. package/cypress/pages/components/imageCanvasComponent.js +7 -7
  58. package/cypress/pages/components/layoutSectionComponent.js +8 -6
  59. package/cypress/pages/components/numberLineCommonComponent.js +8 -4
  60. package/cypress/pages/createItemPage.js +21 -1
  61. package/cypress/pages/dragAndDropIntoCategoriesPage.js +6 -6
  62. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +23 -21
  63. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +4 -0
  64. package/cypress/pages/graphingPage.js +14 -13
  65. package/cypress/pages/listOrderingPage.js +31 -4
  66. package/cypress/pages/multipleSelectionPage.js +10 -1
  67. package/cypress/pages/rulerPage.js +1 -0
  68. package/cypress/pages/singleSelectionPage.js +2 -0
  69. package/cypress/pages/studentViewPage.js +2 -0
  70. package/cypress/pages/textEntryMathPage.js +35 -16
  71. package/package.json +1 -1
@@ -1,69 +1,22 @@
1
1
  import { textEntryMathPage } from "../../../pages";
2
2
  import { equationEditorFlyout } from "../../../pages/components";
3
3
  import { customSettingsSeparatorComponent } from "../../../pages/components/customSettingsSeparatorsComponent";
4
+ import { customSettings } from "../../../fixtures/evaluationMethodsAndCustomSettings";
4
5
 
5
6
  const arrNoSetAnswer = ['Response is true', 'Expanded form', 'Factored form', 'Simplified version'];
6
- const evaluationMethods = [
7
- {
8
- method: 'Symbols are equivalent',
9
- decimalSeparator: ['Dot', 'Comma'],
10
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
11
- additionalOptions: ['Decimal places to be compared']
12
- },
13
- {
14
- method: 'Value is equivalent',
15
- decimalSeparator: ['Dot', 'Comma'],
16
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
17
- additionalOptions: ['Decimal places to be compared', 'Tolerance']
18
- },
19
- {
20
- method: 'Match value',
21
- decimalSeparator: ['Dot', 'Comma'],
22
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
23
- additionalOptions: []
24
- },
25
- {
26
- method: 'Equivalent structure',
27
- decimalSeparator: [],
28
- thousandsSeparator: [],
29
- additionalOptions: []
30
- },
31
- {
32
- method: 'Response is true',
33
- decimalSeparator: ['Dot', 'Comma'],
34
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
35
- additionalOptions: ['Decimal places to be compared']
36
- },
37
- {
38
- method: 'Expanded form',
39
- decimalSeparator: ['Dot', 'Comma'],
40
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
41
- additionalOptions: []
42
- },
43
- {
44
- method: 'Factored form',
45
- decimalSeparator: ['Dot', 'Comma'],
46
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
47
- additionalOptions: []
48
- },
49
- {
50
- method: 'Simplified version',
51
- decimalSeparator: ['Dot', 'Comma'],
52
- thousandsSeparator: ['None', 'Comma or space', 'Comma', 'Space'],
53
- additionalOptions: []
54
- },
55
- {
56
- method: 'Match exact',
57
- decimalSeparator: [],
58
- thousandsSeparator: [],
59
- additionalOptions: []
60
- }
61
- ];
62
-
63
- const filteredMethods = evaluationMethods.filter(method =>
7
+
8
+ const filteredMethods = customSettings.filter(method =>
64
9
  method.decimalSeparator.length > 0 && method.thousandsSeparator.length > 0
65
10
  );
66
11
 
12
+ const decimalPlaceToBeComparedMethods = customSettings.filter(method =>
13
+ method.additionalOptions.includes('Decimal places to be compared')
14
+ );
15
+
16
+ const filteredDecimalPlaceToBeComparedMethods = decimalPlaceToBeComparedMethods.filter(method =>
17
+ method.method !== 'Response is true'
18
+ );
19
+
67
20
  describe('Custom Settings Separators for Text Entry Math', () => {
68
21
  before(() => {
69
22
  cy.loginAs('admin');
@@ -78,7 +31,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
78
31
  textEntryMathPage.steps.clickOnCustomSettingsAccordion();
79
32
  });
80
33
 
81
- evaluationMethods.forEach(({ method, decimalSeparator, thousandsSeparator, additionalOptions }) => {
34
+ customSettings.forEach(({ method, decimalSeparator, thousandsSeparator, additionalOptions }) => {
82
35
  it(`When user selects ${method} then correct separator options should be displayed`, () => {
83
36
  textEntryMathPage.steps.selectEvaluationMethod(method);
84
37
  if (decimalSeparator.length > 0) {
@@ -602,7 +555,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
602
555
  equationEditorFlyout.steps.clickOnOkButton();
603
556
  textEntryMathPage.steps.switchToGradingView();
604
557
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
605
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
558
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
606
559
  textEntryMathPage.steps.switchToEditTab();
607
560
  textEntryMathPage.steps.switchToPreviewTab();
608
561
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -610,7 +563,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
610
563
  equationEditorFlyout.steps.clickOnOkButton();
611
564
  textEntryMathPage.steps.switchToGradingView();
612
565
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
613
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
566
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
614
567
  textEntryMathPage.steps.switchToEditTab();
615
568
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
616
569
  textEntryMathPage.steps.clickOnCustomSettingsAccordion();
@@ -627,7 +580,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
627
580
  equationEditorFlyout.steps.clickOnOkButton();
628
581
  textEntryMathPage.steps.switchToGradingView();
629
582
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
630
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
583
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
631
584
  textEntryMathPage.steps.switchToEditTab();
632
585
  textEntryMathPage.steps.switchToPreviewTab();
633
586
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -635,7 +588,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
635
588
  equationEditorFlyout.steps.clickOnOkButton();
636
589
  textEntryMathPage.steps.switchToGradingView();
637
590
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
638
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
591
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
639
592
  textEntryMathPage.steps.switchToEditTab();
640
593
  textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
641
594
  textEntryMathPage.steps.clickOnCustomSettingsAccordion();
@@ -657,7 +610,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
657
610
  equationEditorFlyout.steps.clickOnOkButton();
658
611
  textEntryMathPage.steps.switchToGradingView();
659
612
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
660
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
613
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
661
614
  textEntryMathPage.steps.switchToEditTab();
662
615
  textEntryMathPage.steps.switchToPreviewTab();
663
616
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -665,7 +618,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
665
618
  equationEditorFlyout.steps.clickOnOkButton();
666
619
  textEntryMathPage.steps.switchToGradingView();
667
620
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
668
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
621
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
669
622
  textEntryMathPage.steps.switchToEditTab();
670
623
  textEntryMathPage.steps.switchToPreviewTab();
671
624
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -673,7 +626,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
673
626
  equationEditorFlyout.steps.clickOnOkButton();
674
627
  textEntryMathPage.steps.switchToGradingView();
675
628
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
676
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
629
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
677
630
  });
678
631
 
679
632
  it('When user sets a value for tolerance and uses a decimal value as for correct answer, then the decimal inputs outside the tolerance value should be validated as incorrect', () => {
@@ -691,14 +644,14 @@ describe('Custom Settings Separators for Text Entry Math', () => {
691
644
  equationEditorFlyout.steps.clickOnOkButton();
692
645
  textEntryMathPage.steps.switchToGradingView();
693
646
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
694
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
647
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
695
648
  textEntryMathPage.steps.resetQuestionPreview();
696
649
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
697
650
  textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, `7.001`);
698
651
  equationEditorFlyout.steps.clickOnOkButton();
699
652
  textEntryMathPage.steps.switchToGradingView();
700
653
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
701
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
654
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
702
655
  textEntryMathPage.steps.switchToEditTab();
703
656
  textEntryMathPage.steps.switchToPreviewTab();
704
657
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -706,7 +659,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
706
659
  equationEditorFlyout.steps.clickOnOkButton();
707
660
  textEntryMathPage.steps.switchToGradingView();
708
661
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
709
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
662
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
710
663
  });
711
664
 
712
665
  it('When user sets a value for tolerance and uses a fractional value as for correct answer, then the fractional inputs within the tolerance value should be validated as correct', () => {
@@ -727,7 +680,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
727
680
  equationEditorFlyout.steps.clickOnOkButton();
728
681
  textEntryMathPage.steps.switchToGradingView();
729
682
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
730
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
683
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
731
684
  textEntryMathPage.steps.switchToEditTab();
732
685
  textEntryMathPage.steps.switchToPreviewTab();
733
686
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -735,7 +688,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
735
688
  equationEditorFlyout.steps.clickOnOkButton();
736
689
  textEntryMathPage.steps.switchToGradingView();
737
690
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
738
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
691
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
739
692
  textEntryMathPage.steps.switchToEditTab();
740
693
  textEntryMathPage.steps.switchToPreviewTab();
741
694
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -743,7 +696,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
743
696
  equationEditorFlyout.steps.clickOnOkButton();
744
697
  textEntryMathPage.steps.switchToGradingView();
745
698
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
746
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
699
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
747
700
  });
748
701
 
749
702
  it('When user sets a value for tolerance and uses a fractional value as for correct answer, then the fractional inputs outside the tolerance value should be validated as incorrect', () => {
@@ -754,7 +707,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
754
707
  equationEditorFlyout.steps.clickOnOkButton();
755
708
  textEntryMathPage.steps.switchToGradingView();
756
709
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
757
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
710
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
758
711
  textEntryMathPage.steps.switchToEditTab();
759
712
  textEntryMathPage.steps.switchToPreviewTab();
760
713
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -762,7 +715,7 @@ describe('Custom Settings Separators for Text Entry Math', () => {
762
715
  equationEditorFlyout.steps.clickOnOkButton();
763
716
  textEntryMathPage.steps.switchToGradingView();
764
717
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
765
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
718
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
766
719
  textEntryMathPage.steps.switchToEditTab();
767
720
  textEntryMathPage.steps.switchToPreviewTab();
768
721
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -770,7 +723,241 @@ describe('Custom Settings Separators for Text Entry Math', () => {
770
723
  equationEditorFlyout.steps.clickOnOkButton();
771
724
  textEntryMathPage.steps.switchToGradingView();
772
725
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
773
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
726
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
727
+ });
728
+ });
729
+
730
+ filteredDecimalPlaceToBeComparedMethods.forEach(method => {
731
+ describe(`\'Decimal place to be compare\' - ${method.method}`, () => {
732
+ before(() => {
733
+ textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
734
+ cy.barsPreLoaderWait();
735
+ textEntryMathPage.steps.addResponseArea();
736
+ textEntryMathPage.steps.allotPoints(10);
737
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
738
+ textEntryMathPage.steps.selectEvaluationMethod(`${method.method}`);
739
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '2.34567');
740
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
741
+ });
742
+
743
+ it('When the user focuses in and out of the decimal place to compare input field, then no error message should be displayed below the input field', () => {
744
+ customSettingsSeparatorComponent.steps.focusInDecimalPlaceToComapreInputField();
745
+ customSettingsSeparatorComponent.steps.focusOutDecimalPlaceToComapreInputField();
746
+ customSettingsSeparatorComponent.steps.verifyErrorMessageIsNotDisplayed();
747
+ });
748
+
749
+ it('When the user attempts to enter symbols, decimals, or characters, then no input should be displayed in the decimal place to compare field.', () => {
750
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('$2%@');
751
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('2');
752
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
753
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('1.0');
754
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('10');
755
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
756
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('-3');
757
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('3');
758
+ });
759
+
760
+ it('User should be able to enter value in the input field maximum upto to 10', () => {
761
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
762
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('100');
763
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('10');
764
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
765
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('30');
766
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('3');
767
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
768
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('11');
769
+ customSettingsSeparatorComponent.steps.verifyDecimalPlaceToBeCompareInputFieldValue('1');
770
+ });
771
+
772
+ it('When the user enters 0 as the digit to be compared and inputs a value below the rounded-up set answer, then answer should be validated.', () => {
773
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
774
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('0');
775
+ textEntryMathPage.steps.switchToPreviewTab();
776
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
777
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.123');
778
+ equationEditorFlyout.steps.clickOnOkButton();
779
+ textEntryMathPage.steps.switchToGradingView();
780
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
781
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
782
+ textEntryMathPage.steps.switchToEditTab();
783
+ textEntryMathPage.steps.switchToPreviewTab();
784
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
785
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2');
786
+ equationEditorFlyout.steps.clickOnOkButton();
787
+ textEntryMathPage.steps.switchToGradingView();
788
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
789
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
790
+
791
+ });
792
+
793
+ it('When the user enters 0 as the digit to be compared and inputs a value above the rounded-up set answer, then answer should not be validated.', () => {
794
+ textEntryMathPage.steps.switchToEditTab();
795
+ textEntryMathPage.steps.switchToPreviewTab();
796
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
797
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.5');
798
+ equationEditorFlyout.steps.clickOnOkButton();
799
+ textEntryMathPage.steps.switchToGradingView();
800
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
801
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
802
+ });
803
+
804
+ it('When the user enters a value with less decimal places than the specified number, then the answer should not be validated.', () => {
805
+ textEntryMathPage.steps.switchToEditTab();
806
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
807
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
808
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
809
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('3');
810
+ textEntryMathPage.steps.switchToPreviewTab();
811
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
812
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.34');
813
+ equationEditorFlyout.steps.clickOnOkButton();
814
+ textEntryMathPage.steps.switchToGradingView();
815
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
816
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
817
+ });
818
+
819
+ it('When the user enters an incorrect/correct decimal number after the decimal places to compare, then the answer should be validated.', () => {
820
+ textEntryMathPage.steps.switchToEditTab();
821
+ textEntryMathPage.steps.switchToPreviewTab();
822
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
823
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.345789');
824
+ equationEditorFlyout.steps.clickOnOkButton();
825
+ textEntryMathPage.steps.switchToGradingView();
826
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
827
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
828
+ textEntryMathPage.steps.switchToEditTab();
829
+ textEntryMathPage.steps.switchToPreviewTab();
830
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
831
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.34567');
832
+ equationEditorFlyout.steps.clickOnOkButton();
833
+ textEntryMathPage.steps.switchToGradingView();
834
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
835
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
836
+ });
837
+
838
+ it('When the user enters an incorrect decimal number before the decimal places to compare, then answer should not be validated.', () => {
839
+ textEntryMathPage.steps.switchToEditTab();
840
+ textEntryMathPage.steps.switchToPreviewTab();
841
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
842
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.123');
843
+ equationEditorFlyout.steps.clickOnOkButton();
844
+ textEntryMathPage.steps.switchToGradingView();
845
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
846
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
847
+ });
848
+
849
+ it('When the decimal places to compare is not set, then answer decimals should exactly matches with the decimal in the set answer to be validated as correct.', () => {
850
+ textEntryMathPage.steps.switchToEditTab();
851
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
852
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
853
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
854
+ textEntryMathPage.steps.switchToPreviewTab();
855
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
856
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.34567');
857
+ equationEditorFlyout.steps.clickOnOkButton();
858
+ textEntryMathPage.steps.switchToGradingView();
859
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
860
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
861
+ textEntryMathPage.steps.switchToEditTab();
862
+ textEntryMathPage.steps.switchToPreviewTab();
863
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
864
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.34568');
865
+ equationEditorFlyout.steps.clickOnOkButton();
866
+ textEntryMathPage.steps.switchToGradingView();
867
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
868
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
869
+ });
870
+
871
+ it('When the user enter the answer rouded up to next decimal of the value to be compare, then it should be validated', () => {
872
+ textEntryMathPage.steps.switchToEditTab();
873
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
874
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
875
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('3');
876
+ textEntryMathPage.steps.switchToPreviewTab();
877
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
878
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.345');
879
+ equationEditorFlyout.steps.clickOnOkButton();
880
+ textEntryMathPage.steps.switchToGradingView();
881
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
882
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
883
+ textEntryMathPage.steps.switchToEditTab();
884
+ textEntryMathPage.steps.switchToPreviewTab();
885
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
886
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.346');
887
+ equationEditorFlyout.steps.clickOnOkButton();
888
+ textEntryMathPage.steps.switchToGradingView();
889
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
890
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
891
+ textEntryMathPage.steps.switchToEditTab();
892
+ textEntryMathPage.steps.switchToPreviewTab();
893
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
894
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.347');
895
+ equationEditorFlyout.steps.clickOnOkButton();
896
+ textEntryMathPage.steps.switchToGradingView();
897
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
898
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
899
+ });
900
+
901
+ it('When the user enters 0 as the digit to be compared and inputs a value below the rounded-up set answer, then answer should be not be validated.', () => {
902
+ textEntryMathPage.steps.switchToEditTab();
903
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
904
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
905
+ equationEditorFlyout.steps.clearAll();
906
+ textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '2.5623');
907
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
908
+ customSettingsSeparatorComponent.steps.clearDecimalPlaceToCompareInputField();
909
+ customSettingsSeparatorComponent.steps.enterTextInDecimalPlaceToBeComparedInputField('0');
910
+ textEntryMathPage.steps.switchToPreviewTab();
911
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
912
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2');
913
+ equationEditorFlyout.steps.clickOnOkButton();
914
+ textEntryMathPage.steps.switchToGradingView();
915
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
916
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
917
+ textEntryMathPage.steps.switchToEditTab();
918
+ textEntryMathPage.steps.switchToPreviewTab();
919
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
920
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '3');
921
+ equationEditorFlyout.steps.clickOnOkButton();
922
+ textEntryMathPage.steps.switchToGradingView();
923
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
924
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
925
+ textEntryMathPage.steps.switchToEditTab();
926
+ textEntryMathPage.steps.switchToPreviewTab();
927
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
928
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '2.4');
929
+ equationEditorFlyout.steps.clickOnOkButton();
930
+ textEntryMathPage.steps.switchToGradingView();
931
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
932
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
933
+ });
934
+
935
+ it('When the user enters 0 as the digit to be compared and inputs a value above the rounded-up set answer, then answer should be validated.', () => {
936
+ textEntryMathPage.steps.switchToEditTab();
937
+ textEntryMathPage.steps.switchToPreviewTab();
938
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
939
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '3');
940
+ equationEditorFlyout.steps.clickOnOkButton();
941
+ textEntryMathPage.steps.switchToGradingView();
942
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
943
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
944
+ textEntryMathPage.steps.switchToEditTab();
945
+ textEntryMathPage.steps.switchToPreviewTab();
946
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
947
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '3.3');
948
+ equationEditorFlyout.steps.clickOnOkButton();
949
+ textEntryMathPage.steps.switchToGradingView();
950
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
951
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
952
+ textEntryMathPage.steps.switchToEditTab();
953
+ textEntryMathPage.steps.switchToPreviewTab();
954
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
955
+ textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, '3.5');
956
+ equationEditorFlyout.steps.clickOnOkButton();
957
+ textEntryMathPage.steps.switchToGradingView();
958
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
959
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
960
+ });
774
961
  });
775
962
  });
776
963
  });
@@ -1,4 +1,6 @@
1
+ import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
1
2
  import { textEntryMathPage } from "../../../pages";
3
+ import { equationEditorFlyout } from "../../../pages/components";
2
4
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
5
  import utilities from "../../../support/helpers/utilities";
4
6
  const css = Cypress.env('css');
@@ -44,6 +46,96 @@ describe('Create item page - Text entry math: Scoring section', () => {
44
46
  textEntryMathPage.tests.verifyPointsLabelAndInputField();
45
47
  });
46
48
 
49
+ describe('Auto scored: Formula Template without Response container with keyboard input and check if multiple cursors are not displayed - Scoring Section : IEI-4544', () => {
50
+ abortEarlySetup();
51
+ before(() => {
52
+ textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
53
+ cy.barsPreLoaderWait();
54
+ textEntryMathPage.steps.addResponseArea();
55
+ textEntryMathPage.steps.addResponseArea();
56
+ textEntryMathPage.steps.addResponseArea();
57
+ textEntryMathPage.steps.allotPoints(5);
58
+ });
59
+
60
+ it('Users should be able to add responses which contains math template without response container', () => {
61
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
62
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
63
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
64
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
65
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('1{downarrow}');
66
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('2');
67
+ equationEditorFlyout.steps.clickOnOkButton();
68
+ textEntryMathPage.steps.expandLayoutAccordion();
69
+ textEntryMathPage.steps.selectMathTemplateInSpecifyCorrectAnswerSection(0);
70
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
71
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
72
+ equationEditorFlyout.steps.clickOnOkButton();
73
+ textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
74
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
75
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
76
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
77
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
78
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('4{downarrow}');
79
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('8');
80
+ equationEditorFlyout.steps.clickOnOkButton();
81
+ textEntryMathPage.steps.expandLayoutAccordion();
82
+ textEntryMathPage.steps.selectMathTemplateInSpecifyCorrectAnswerSection(1);
83
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
84
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
85
+ equationEditorFlyout.steps.clickOnOkButton();
86
+ textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
87
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
88
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
89
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
90
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
91
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('9{downarrow}');
92
+ equationEditorFlyout.steps.enterTextAtInputFieldCursor('21');
93
+ equationEditorFlyout.steps.clickOnOkButton();
94
+ textEntryMathPage.steps.expandLayoutAccordion();
95
+ textEntryMathPage.steps.selectMathTemplateInSpecifyCorrectAnswerSection(2);
96
+ equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
97
+ equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
98
+ equationEditorFlyout.steps.clickOnOkButton();
99
+ textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(2);
100
+ });
101
+
102
+ it('When the user focuses within multiple response containers the cursor should be displayed only once', () => {
103
+ textEntryMathPage.steps.switchToPreviewTab();
104
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(0);
105
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(1);
106
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(2);
107
+ utilities.verifyElementCount(equationEditorFlyout.formulaTemplateWithoutResponseBoxCursor(), 1);
108
+ });
109
+
110
+ it('When user types using the keyboard the responses should be visible in the input fields', () => {
111
+ cy.log('Using keypress command to make sure input is accepted in the scoring package')
112
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(0);
113
+ equationEditorFlyout.steps.simulateKeyboardPress('1');
114
+ equationEditorFlyout.steps.simulateKeyboardPress('ArrowDown');
115
+ equationEditorFlyout.steps.simulateKeyboardPress('2');
116
+ equationEditorFlyout.steps.clickOnOkButton();
117
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(1);
118
+ equationEditorFlyout.steps.simulateKeyboardPress('4');
119
+ equationEditorFlyout.steps.simulateKeyboardPress('ArrowDown');
120
+ equationEditorFlyout.steps.simulateKeyboardPress('8');
121
+ equationEditorFlyout.steps.clickOnOkButton();
122
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTabWithoutResponseContainer(2);
123
+ equationEditorFlyout.steps.simulateKeyboardPress('9');
124
+ equationEditorFlyout.steps.simulateKeyboardPress('ArrowDown');
125
+ equationEditorFlyout.steps.simulateKeyboardPress('2');
126
+ equationEditorFlyout.steps.simulateKeyboardPress('1');
127
+ equationEditorFlyout.steps.clickOnOkButton();
128
+ });
129
+
130
+ it('When user enters all the answers correctly then the answers should be validated and full score should be achieved', () => {
131
+ textEntryMathPage.steps.verifyPreviewScore(5, 5)
132
+ });
133
+
134
+ it('When user clicks save question button then the question should be saved successfully', () => {
135
+ textEntryMathPage.steps.saveAQuestionAndVerifySnackbar()
136
+ });
137
+ })
138
+
47
139
  describe('Auto scored: Partial - equal weights scoring - Scoring section', () => {
48
140
  abortEarlySetup();
49
141
  before(() => {
@@ -635,5 +635,52 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
635
635
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
636
636
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
637
637
  });
638
+
639
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-4999
640
+ it('When the user enters decimal values in the \'Specify correct answer\' section then the exact same answer should be validated', () => {
641
+ textEntryMathPage.steps.switchToEditTab();
642
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
643
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
644
+ equationEditorFlyout.steps.clearAll();
645
+ equationEditorFlyout.steps.enterTextInPreviewInputField('36.5');
646
+ equationEditorFlyout.steps.clickOnOkButton();
647
+ textEntryMathPage.steps.switchToPreviewTab();
648
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
649
+ equationEditorFlyout.steps.enterTextInPreviewInputField('36.5');
650
+ equationEditorFlyout.steps.clickOnOkButton();
651
+ textEntryMathPage.steps.switchToGradingView();
652
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
653
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
654
+ });
655
+
656
+ it('When the user enters values that are factors of the answer set then answer should not be validated', () => {
657
+ textEntryMathPage.steps.resetQuestionPreview();
658
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
659
+ equationEditorFlyout.steps.enterTextInPreviewInputField('18.25');
660
+ equationEditorFlyout.steps.clickOnOkButton();
661
+ textEntryMathPage.steps.switchToGradingView();
662
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
663
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
664
+ });
665
+
666
+ it('When the user enters values that are factors of the answer set then answer should not be validated', () => {
667
+ textEntryMathPage.steps.resetQuestionPreview();
668
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
669
+ equationEditorFlyout.steps.enterTextInPreviewInputField('9.125');
670
+ equationEditorFlyout.steps.clickOnOkButton();
671
+ textEntryMathPage.steps.switchToGradingView();
672
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
673
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
674
+ });
675
+
676
+ it('When the user enters values that are multiples of the answer set then answer should not be validated', () => {
677
+ textEntryMathPage.steps.resetQuestionPreview();
678
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
679
+ equationEditorFlyout.steps.enterTextInPreviewInputField('109.5');
680
+ equationEditorFlyout.steps.clickOnOkButton();
681
+ textEntryMathPage.steps.switchToGradingView();
682
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
683
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
684
+ });
638
685
  });
639
686
  });