itemengine-cypress-automation 1.0.449-IEI-6684-thinksphere-cypress-fixes-1c92d2f.0 → 1.0.452-IEI-6713-temValidationTests-aa65d47.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.
@@ -510,5 +510,86 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
510
510
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
511
511
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
512
512
  });
513
+
514
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-6314
515
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in preview tab then the answer should be treated as correct', () => {
516
+ textEntryMathPage.steps.switchToEditTab();
517
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
518
+ equationEditorFlyout.steps.clearAll();
519
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
520
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
521
+ equationEditorFlyout.steps.clickOnOkButton();
522
+ textEntryMathPage.steps.switchToPreviewTab();
523
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
524
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
525
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
526
+ equationEditorFlyout.steps.clickOnOkButton();
527
+ textEntryMathPage.steps.switchToGradingView();
528
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
529
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
530
+ });
531
+
532
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
533
+ textEntryMathPage.steps.resetQuestionPreview();
534
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
535
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x');
536
+ equationEditorFlyout.steps.clickOnOkButton();
537
+ textEntryMathPage.steps.switchToGradingView();
538
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
539
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
540
+ });
541
+
542
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as incorrect', () => {
543
+ textEntryMathPage.steps.resetQuestionPreview();
544
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
545
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
546
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
547
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75');
548
+ equationEditorFlyout.steps.clickOnOkButton();
549
+ textEntryMathPage.steps.switchToGradingView();
550
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
551
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
552
+ });
553
+
554
+ it('When the user enters a fractional expression with multiple terms (three) in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
555
+ textEntryMathPage.steps.switchToEditTab();
556
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
557
+ equationEditorFlyout.steps.clearAll();
558
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
559
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
560
+ equationEditorFlyout.steps.clickOnOkButton();
561
+ textEntryMathPage.steps.switchToPreviewTab();
562
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
563
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
564
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
565
+ equationEditorFlyout.steps.clickOnOkButton();
566
+ textEntryMathPage.steps.switchToGradingView();
567
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
568
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
569
+ });
570
+
571
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
572
+ textEntryMathPage.steps.resetQuestionPreview();
573
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
574
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
575
+ equationEditorFlyout.steps.clickOnOkButton();
576
+ textEntryMathPage.steps.switchToGradingView();
577
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
578
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
579
+ });
580
+
581
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as incorrect', () => {
582
+ textEntryMathPage.steps.resetQuestionPreview();
583
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
584
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
585
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
586
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
587
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
588
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
589
+ equationEditorFlyout.steps.clickOnOkButton();
590
+ textEntryMathPage.steps.switchToGradingView();
591
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
592
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
593
+ });
513
594
  });
514
595
  });
@@ -864,5 +864,88 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
864
864
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
865
865
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
866
866
  });
867
+
868
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-6314
869
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in preview tab then the answer should be treated as correct', () => {
870
+ textEntryMathPage.steps.switchToEditTab();
871
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
872
+ equationEditorFlyout.steps.clearAll();
873
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
874
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
875
+ equationEditorFlyout.steps.clickOnOkButton();
876
+ textEntryMathPage.steps.clickOnCustomSettingsAccordion();
877
+ textEntryMathPage.steps.uncheckCustomSettingsCheckbox("Accept expressions in any order");
878
+ textEntryMathPage.steps.switchToPreviewTab();
879
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
880
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
881
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
882
+ equationEditorFlyout.steps.clickOnOkButton();
883
+ textEntryMathPage.steps.switchToGradingView();
884
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
885
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
886
+ });
887
+
888
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
889
+ textEntryMathPage.steps.resetQuestionPreview();
890
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
891
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x');
892
+ equationEditorFlyout.steps.clickOnOkButton();
893
+ textEntryMathPage.steps.switchToGradingView();
894
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
895
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
896
+ });
897
+
898
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as incorrect', () => {
899
+ textEntryMathPage.steps.resetQuestionPreview();
900
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
901
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
902
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
903
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75');
904
+ equationEditorFlyout.steps.clickOnOkButton();
905
+ textEntryMathPage.steps.switchToGradingView();
906
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
907
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
908
+ });
909
+
910
+ it('When the user enters a fractional expression with multiple terms (three) in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
911
+ textEntryMathPage.steps.switchToEditTab();
912
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
913
+ equationEditorFlyout.steps.clearAll();
914
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
915
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
916
+ equationEditorFlyout.steps.clickOnOkButton();
917
+ textEntryMathPage.steps.switchToPreviewTab();
918
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
919
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
920
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
921
+ equationEditorFlyout.steps.clickOnOkButton();
922
+ textEntryMathPage.steps.switchToGradingView();
923
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
924
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
925
+ });
926
+
927
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
928
+ textEntryMathPage.steps.resetQuestionPreview();
929
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
930
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
931
+ equationEditorFlyout.steps.clickOnOkButton();
932
+ textEntryMathPage.steps.switchToGradingView();
933
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
934
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
935
+ });
936
+
937
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as incorrect', () => {
938
+ textEntryMathPage.steps.resetQuestionPreview();
939
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
940
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
941
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
942
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
943
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
944
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
945
+ equationEditorFlyout.steps.clickOnOkButton();
946
+ textEntryMathPage.steps.switchToGradingView();
947
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
948
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
949
+ });
867
950
  });
868
951
  });
@@ -1158,5 +1158,87 @@ describe('Create item page - Text entry math: Symbols are equivalent evaluation
1158
1158
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1159
1159
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1160
1160
  });
1161
+
1162
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-6314 Remove the skipped cases once the issue is resolved.
1163
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in preview tab then the answer should be treated as correct', () => {
1164
+ textEntryMathPage.steps.switchToEditTab();
1165
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1166
+ equationEditorFlyout.steps.clearAll();
1167
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1168
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
1169
+ equationEditorFlyout.steps.clickOnOkButton();
1170
+ //textEntryMathPage.steps.clickOnCustomSettingsAccordion();
1171
+ textEntryMathPage.steps.switchToPreviewTab();
1172
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1173
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1174
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
1175
+ equationEditorFlyout.steps.clickOnOkButton();
1176
+ textEntryMathPage.steps.switchToGradingView();
1177
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1178
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1179
+ });
1180
+
1181
+ it.skip('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
1182
+ textEntryMathPage.steps.resetQuestionPreview();
1183
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1184
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x');
1185
+ equationEditorFlyout.steps.clickOnOkButton();
1186
+ textEntryMathPage.steps.switchToGradingView();
1187
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
1188
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1189
+ });
1190
+
1191
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
1192
+ textEntryMathPage.steps.resetQuestionPreview();
1193
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1194
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1195
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
1196
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75');
1197
+ equationEditorFlyout.steps.clickOnOkButton();
1198
+ textEntryMathPage.steps.switchToGradingView();
1199
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1200
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1201
+ });
1202
+
1203
+ it('When the user enters a fractional expression with multiple terms (three) in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
1204
+ textEntryMathPage.steps.switchToEditTab();
1205
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
1206
+ equationEditorFlyout.steps.clearAll();
1207
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1208
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
1209
+ equationEditorFlyout.steps.clickOnOkButton();
1210
+ textEntryMathPage.steps.switchToPreviewTab();
1211
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1212
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1213
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
1214
+ equationEditorFlyout.steps.clickOnOkButton();
1215
+ textEntryMathPage.steps.switchToGradingView();
1216
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1217
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1218
+ });
1219
+
1220
+ it.skip('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
1221
+ textEntryMathPage.steps.resetQuestionPreview();
1222
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1223
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
1224
+ equationEditorFlyout.steps.clickOnOkButton();
1225
+ textEntryMathPage.steps.switchToGradingView();
1226
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
1227
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1228
+ });
1229
+
1230
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
1231
+ textEntryMathPage.steps.resetQuestionPreview();
1232
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1233
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1234
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
1235
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
1236
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
1237
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
1238
+ equationEditorFlyout.steps.clickOnOkButton();
1239
+ textEntryMathPage.steps.switchToGradingView();
1240
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1241
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1242
+ });
1161
1243
  });
1162
1244
  });
@@ -695,5 +695,113 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
695
695
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
696
696
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
697
697
  });
698
+
699
+ //RCA - https://weldnorthed.atlassian.net/browse/IEI-6314
700
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in preview tab then the answer should be treated as correct', () => {
701
+ textEntryMathPage.steps.switchToEditTab();
702
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
703
+ equationEditorFlyout.steps.clearAll();
704
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
705
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
706
+ equationEditorFlyout.steps.clickOnOkButton();
707
+ textEntryMathPage.steps.switchToPreviewTab();
708
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
709
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
710
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
711
+ equationEditorFlyout.steps.clickOnOkButton();
712
+ textEntryMathPage.steps.switchToGradingView();
713
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
714
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
715
+ });
716
+
717
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
718
+ textEntryMathPage.steps.resetQuestionPreview();
719
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
720
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x');
721
+ equationEditorFlyout.steps.clickOnOkButton();
722
+ textEntryMathPage.steps.switchToGradingView();
723
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
724
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
725
+ });
726
+
727
+ it('When the user enters a fractional expression with multiple terms in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
728
+ textEntryMathPage.steps.resetQuestionPreview();
729
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
730
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
731
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
732
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75');
733
+ equationEditorFlyout.steps.clickOnOkButton();
734
+ textEntryMathPage.steps.switchToGradingView();
735
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
736
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
737
+ });
738
+
739
+ it('When the user enters a fractional expression with multiple terms (three) in the numerator with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
740
+ textEntryMathPage.steps.switchToEditTab();
741
+ textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
742
+ equationEditorFlyout.steps.clearAll();
743
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
744
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
745
+ equationEditorFlyout.steps.clickOnOkButton();
746
+ textEntryMathPage.steps.switchToPreviewTab();
747
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
748
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
749
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
750
+ equationEditorFlyout.steps.clickOnOkButton();
751
+ textEntryMathPage.steps.switchToGradingView();
752
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
753
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
754
+ });
755
+
756
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression then the answer should be treated as incorrect', () => {
757
+ textEntryMathPage.steps.resetQuestionPreview();
758
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
759
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
760
+ equationEditorFlyout.steps.clickOnOkButton();
761
+ textEntryMathPage.steps.switchToGradingView();
762
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
763
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
764
+ });
765
+
766
+ it('When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters the same expression in other form then the answer should be treated as correct', () => {
767
+ textEntryMathPage.steps.resetQuestionPreview();
768
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
769
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
770
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
771
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
772
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
773
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
774
+ equationEditorFlyout.steps.clickOnOkButton();
775
+ textEntryMathPage.steps.switchToGradingView();
776
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
777
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
778
+ });
779
+
780
+ it("When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters the same expression with the custom setting 'Interpret alphabets as variables' then the answer should be treated as correct", () => {
781
+ textEntryMathPage.steps.switchToEditTab();
782
+ textEntryMathPage.steps.checkCustomSettingsCheckbox('Interpret alphabets as variables');
783
+ textEntryMathPage.steps.switchToPreviewTab();
784
+ textEntryMathPage.steps.resetQuestionPreview();
785
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
786
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
787
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
788
+ equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
789
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
790
+ equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
791
+ equationEditorFlyout.steps.clickOnOkButton();
792
+ textEntryMathPage.steps.switchToGradingView();
793
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
794
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
795
+ });
796
+
797
+ it.skip("When the user enters a fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters only numerator part of the expression with the custom setting 'Interpret alphabets as variables' then the answer should be treated as incorrect", () => {
798
+ textEntryMathPage.steps.resetQuestionPreview();
799
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
800
+ equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
801
+ equationEditorFlyout.steps.clickOnOkButton();
802
+ textEntryMathPage.steps.switchToGradingView();
803
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
804
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
805
+ });
698
806
  });
699
807
  });
@@ -920,7 +920,7 @@ const steps = {
920
920
 
921
921
  /**
922
922
  * This function checks the custom settings checkbox
923
- * @param {("Case sensitive"|"Accept interval notation"|"Check for equality across sides"|"Exclude LaTeX text from validation"|"Exclude LaTeX text from validation"|"Interpret e as Euler\'s number"|"Accept expressions in any order"|"Ignore unit coefficient"|"Ignore zeros after decimal")} ariaLabel
923
+ * @param {("Case sensitive"|"Accept interval notation"|"Check for equality across sides"|"Exclude LaTeX text from validation"|"Exclude LaTeX text from validation"|"Interpret e as Euler\'s number"|"Accept expressions in any order"|"Ignore unit coefficient"|"Ignore zeros after decimal"|"Interpret alphabets as variables")} ariaLabel
924
924
  */
925
925
  checkCustomSettingsCheckbox: (ariaLabel) => {
926
926
  textEntryMathPage.customSettingsCheckbox(ariaLabel)
@@ -930,7 +930,7 @@ const steps = {
930
930
 
931
931
  /**
932
932
  * This function unchecks the custom settings checkbox
933
- * @param {("Case sensitive"|"Accept interval notation"|"Check for equality across sides"|"Exclude LaTeX text from validation"|"Exclude LaTeX text from validation"|"Interpret e as Euler\'s number"|"Accept expressions in any order"|"Ignore unit coefficient"|"Ignore zeros after decimal")} ariaLabel
933
+ * @param {("Case sensitive"|"Accept interval notation"|"Check for equality across sides"|"Exclude LaTeX text from validation"|"Exclude LaTeX text from validation"|"Interpret e as Euler\'s number"|"Accept expressions in any order"|"Ignore unit coefficient"|"Ignore zeros after decimal"|"Interpret alphabets as variables")} ariaLabel
934
934
  */
935
935
  uncheckCustomSettingsCheckbox: (ariaLabel) => {
936
936
  textEntryMathPage.customSettingsCheckbox(ariaLabel)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.449-IEI-6684-thinksphere-cypress-fixes-1c92d2f.0",
3
+ "version": "1.0.452-IEI-6713-temValidationTests-aa65d47.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {