itemengine-cypress-automation 1.0.361-mcqRegressionFixes-c3229ca.0 → 1.0.364-RCA-IEI5709-b217fe8.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.
@@ -885,5 +885,75 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
885
885
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
886
886
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
887
887
|
});
|
888
|
+
|
889
|
+
//RCA https://weldnorthed.atlassian.net/browse/IEI-5709
|
890
|
+
it('When the user enters a fraction with variables along with relational operators in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
891
|
+
textEntryMathPage.steps.switchToEditTab();
|
892
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
893
|
+
equationEditorFlyout.steps.clearAll();
|
894
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>25');
|
895
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
896
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
897
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
898
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>25');
|
899
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
900
|
+
textEntryMathPage.steps.switchToGradingView();
|
901
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
902
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
903
|
+
});
|
904
|
+
|
905
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in a different format then it should be treated as correct', () => {
|
906
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
907
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
908
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('a>');
|
909
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
910
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['b', '25']);
|
911
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
912
|
+
textEntryMathPage.steps.switchToGradingView();
|
913
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
914
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
915
|
+
});
|
916
|
+
|
917
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in reverse order then it should be treated as correct', () => {
|
918
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
919
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
920
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
921
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['b', '25']);
|
922
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('<a');
|
923
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
924
|
+
textEntryMathPage.steps.switchToGradingView();
|
925
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
926
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
927
|
+
});
|
928
|
+
|
929
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation with multiplication then it should be treated as correct', () => {
|
930
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
931
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
932
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('a*b>25');
|
933
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
934
|
+
textEntryMathPage.steps.switchToGradingView();
|
935
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
936
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
937
|
+
});
|
938
|
+
|
939
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in a different order with multiplication then it should be treated as correct', () => {
|
940
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
941
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
942
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('b*a>25');
|
943
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
944
|
+
textEntryMathPage.steps.switchToGradingView();
|
945
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
946
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
947
|
+
});
|
948
|
+
|
949
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation with incorrect relational operator then it should be treated as incorrect', () => {
|
950
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
951
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
952
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>=25');
|
953
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
954
|
+
textEntryMathPage.steps.switchToGradingView();
|
955
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
956
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
957
|
+
});
|
888
958
|
});
|
889
959
|
});
|
@@ -625,5 +625,75 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
625
625
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
626
626
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
627
627
|
});
|
628
|
+
|
629
|
+
//RCA https://weldnorthed.atlassian.net/browse/IEI-5709
|
630
|
+
it('When the user enters a fraction with variables along with relational operators in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
631
|
+
textEntryMathPage.steps.switchToEditTab();
|
632
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
633
|
+
equationEditorFlyout.steps.clearAll();
|
634
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>25');
|
635
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
636
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
637
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
638
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>25');
|
639
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
640
|
+
textEntryMathPage.steps.switchToGradingView();
|
641
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
642
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
643
|
+
});
|
644
|
+
|
645
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in a different format then it should be treated as incorrect', () => {
|
646
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
647
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
648
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('a>');
|
649
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
650
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['b', '25']);
|
651
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
652
|
+
textEntryMathPage.steps.switchToGradingView();
|
653
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
654
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
655
|
+
});
|
656
|
+
|
657
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in reverse order then it should be treated as incorrect', () => {
|
658
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
659
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
660
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
661
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['b', '25']);
|
662
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('<a');
|
663
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
664
|
+
textEntryMathPage.steps.switchToGradingView();
|
665
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
666
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
667
|
+
});
|
668
|
+
|
669
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation with multiplication then it should be treated as correct', () => {
|
670
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
671
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
672
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('a*b>25');
|
673
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
674
|
+
textEntryMathPage.steps.switchToGradingView();
|
675
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
676
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
677
|
+
});
|
678
|
+
|
679
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation in a different order with multiplication then it should be treated as incorrect', () => {
|
680
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
681
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
682
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('b*a>25');
|
683
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
684
|
+
textEntryMathPage.steps.switchToGradingView();
|
685
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
686
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
687
|
+
});
|
688
|
+
|
689
|
+
it('When the user enters a fraction with variables and relational operators in \'Specify correct answer\' and the user enters the equation with incorrect relational operator then it should be treated as incorrect', () => {
|
690
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
691
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
692
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('ab>=25');
|
693
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
694
|
+
textEntryMathPage.steps.switchToGradingView();
|
695
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
696
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
697
|
+
});
|
628
698
|
});
|
629
699
|
});
|