itemengine-cypress-automation 1.0.449-IEI-6684-thinksphere-cypress-fixes-1c92d2f.0 → 1.0.451-IEI-6713-temValidationTests-956be11.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.
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +81 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +83 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +82 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +109 -0
- package/cypress/pages/textEntryMathPage.js +2 -2
- package/package.json +1 -1
@@ -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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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 an 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,114 @@ 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 an 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.clickOnCustomSettingsAccordion();
|
708
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
709
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
710
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
711
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x']);
|
712
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
713
|
+
textEntryMathPage.steps.switchToGradingView();
|
714
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
715
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
716
|
+
});
|
717
|
+
|
718
|
+
it('When the user enters an 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', () => {
|
719
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
720
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
721
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x');
|
722
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
723
|
+
textEntryMathPage.steps.switchToGradingView();
|
724
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
725
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
726
|
+
});
|
727
|
+
|
728
|
+
it('When the user enters an 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', () => {
|
729
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
730
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
731
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
732
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
|
733
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75');
|
734
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
735
|
+
textEntryMathPage.steps.switchToGradingView();
|
736
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
737
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
738
|
+
});
|
739
|
+
|
740
|
+
it('When the user enters an 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', () => {
|
741
|
+
textEntryMathPage.steps.switchToEditTab();
|
742
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
743
|
+
equationEditorFlyout.steps.clearAll();
|
744
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
745
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
|
746
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
747
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
748
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
749
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
750
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20+9.75x+45y']);
|
751
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
752
|
+
textEntryMathPage.steps.switchToGradingView();
|
753
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
754
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
755
|
+
});
|
756
|
+
|
757
|
+
it('When the user enters an 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', () => {
|
758
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
759
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
760
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
|
761
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
762
|
+
textEntryMathPage.steps.switchToGradingView();
|
763
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
764
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
765
|
+
});
|
766
|
+
|
767
|
+
it('When the user enters an 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', () => {
|
768
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
769
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
770
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
771
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
|
772
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
|
773
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
774
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
|
775
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
776
|
+
textEntryMathPage.steps.switchToGradingView();
|
777
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
778
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
779
|
+
});
|
780
|
+
|
781
|
+
it("When the user enters an 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", () => {
|
782
|
+
textEntryMathPage.steps.switchToEditTab();
|
783
|
+
textEntryMathPage.steps.checkCustomSettingsCheckbox('Interpret alphabets as variables');
|
784
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
785
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
786
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
787
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
788
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '20']);
|
789
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('+9.75+');
|
790
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
791
|
+
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['x', '45y']);
|
792
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
793
|
+
textEntryMathPage.steps.switchToGradingView();
|
794
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
795
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
796
|
+
});
|
797
|
+
|
798
|
+
it.skip("When the user enters an fractional expression with multiple terms in the numerator (three) with variables in \'Specify correct answer\' response field and then enters then enters only numerator part of the expression with the custom setting 'Interpret alphabets as variables' then the answer should be treated as incorrect", () => {
|
799
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
800
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
801
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('20+9.75x+45y');
|
802
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
803
|
+
textEntryMathPage.steps.switchToGradingView();
|
804
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
805
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
806
|
+
});
|
698
807
|
});
|
699
808
|
});
|
@@ -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)
|