itemengine-cypress-automation 1.0.289 → 1.0.290
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.
@@ -682,5 +682,78 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
682
682
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
683
683
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
684
684
|
});
|
685
|
+
|
686
|
+
//RCA - https://weldnorthed.atlassian.net/browse/IEI-5154
|
687
|
+
it('When the user enters extra "." in the preview tab then the answers should be invalidated', () => {
|
688
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
689
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
690
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
691
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
692
|
+
textEntryMathPage.steps.switchToGradingView();
|
693
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
694
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
695
|
+
});
|
696
|
+
|
697
|
+
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
698
|
+
textEntryMathPage.steps.switchToEditTab();
|
699
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
700
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
701
|
+
equationEditorFlyout.steps.clearAll();
|
702
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
703
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
704
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
705
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
706
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
707
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
708
|
+
textEntryMathPage.steps.switchToGradingView();
|
709
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
710
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
711
|
+
});
|
712
|
+
|
713
|
+
it('When the user enters 0 in the answer then answer should not be validated', () => {
|
714
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
715
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
716
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('0');
|
717
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
718
|
+
textEntryMathPage.steps.switchToGradingView();
|
719
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
720
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
721
|
+
});
|
722
|
+
|
723
|
+
it('When the user enters incorrect answer then answer should not be validated', () => {
|
724
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
725
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
726
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
727
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
728
|
+
textEntryMathPage.steps.switchToGradingView();
|
729
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
730
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
731
|
+
});
|
732
|
+
|
733
|
+
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
734
|
+
textEntryMathPage.steps.switchToEditTab();
|
735
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
736
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
737
|
+
equationEditorFlyout.steps.clearAll();
|
738
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
739
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
740
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
741
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
742
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
743
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
744
|
+
textEntryMathPage.steps.switchToGradingView();
|
745
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
746
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
747
|
+
});
|
748
|
+
|
749
|
+
it('When the user enters 0 in the answer then answer should not be validated', () => {
|
750
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
751
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
752
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('0');
|
753
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
754
|
+
textEntryMathPage.steps.switchToGradingView();
|
755
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
756
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
757
|
+
});
|
685
758
|
});
|
686
759
|
});
|
@@ -471,5 +471,78 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
471
471
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
472
472
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
473
473
|
});
|
474
|
+
|
475
|
+
//RCA - https://weldnorthed.atlassian.net/browse/IEI-5154
|
476
|
+
it('When the user enters extra "." in the preview tab then the answers should be invalidated', () => {
|
477
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
478
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
479
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
480
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
481
|
+
textEntryMathPage.steps.switchToGradingView();
|
482
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
483
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
484
|
+
});
|
485
|
+
|
486
|
+
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
487
|
+
textEntryMathPage.steps.switchToEditTab();
|
488
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
489
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
490
|
+
equationEditorFlyout.steps.clearAll();
|
491
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
492
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
493
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
494
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
495
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
496
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
497
|
+
textEntryMathPage.steps.switchToGradingView();
|
498
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
499
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
500
|
+
});
|
501
|
+
|
502
|
+
it('When the user enters 0 in the answer then answer should not be validated', () => {
|
503
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
504
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
505
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('0');
|
506
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
507
|
+
textEntryMathPage.steps.switchToGradingView();
|
508
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
509
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
510
|
+
});
|
511
|
+
|
512
|
+
it('When the user enters values that are factors of the answer set then answer should not be validated', () => {
|
513
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
514
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
515
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
516
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
517
|
+
textEntryMathPage.steps.switchToGradingView();
|
518
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
519
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
520
|
+
});
|
521
|
+
|
522
|
+
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
523
|
+
textEntryMathPage.steps.switchToEditTab();
|
524
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
525
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
526
|
+
equationEditorFlyout.steps.clearAll();
|
527
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
528
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
529
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
530
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
531
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
532
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
533
|
+
textEntryMathPage.steps.switchToGradingView();
|
534
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
535
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
536
|
+
});
|
537
|
+
|
538
|
+
it('When the user enters 0 in the answer then answer should not be validated', () => {
|
539
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
540
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
541
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('0');
|
542
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
543
|
+
textEntryMathPage.steps.switchToGradingView();
|
544
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
545
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
546
|
+
});
|
474
547
|
});
|
475
548
|
});
|