itemengine-cypress-automation 1.0.334-IEI-5156-089cdd1.0 → 1.0.336-IEI-5508-automated-tests-1b030dd.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.
@@ -755,5 +755,61 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
755
755
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
756
756
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
757
757
  });
758
+
759
+ //https://weldnorthed.atlassian.net/browse/IEI-5508
760
+ it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
761
+ textEntryMathPage.steps.switchToEditTab();
762
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
763
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
764
+ equationEditorFlyout.steps.clearAll();
765
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
766
+ equationEditorFlyout.steps.enterTextInPreviewInputField('=6');
767
+ equationEditorFlyout.steps.clickOnOkButton();
768
+ textEntryMathPage.steps.switchToPreviewTab();
769
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
770
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
771
+ equationEditorFlyout.steps.enterTextInPreviewInputField('=6');
772
+ equationEditorFlyout.steps.clickOnOkButton();
773
+ textEntryMathPage.steps.switchToGradingView();
774
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
775
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
776
+ });
777
+
778
+ it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters a different equation then it should be treated as correct', () => {
779
+ textEntryMathPage.steps.resetQuestionPreview();
780
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
781
+ equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['multiply', 'two'] }]);
782
+ equationEditorFlyout.steps.enterTextInPreviewInputField('=6');
783
+ equationEditorFlyout.steps.clickOnOkButton();
784
+ textEntryMathPage.steps.switchToGradingView();
785
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
786
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
787
+ });
788
+
789
+ it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
790
+ textEntryMathPage.steps.switchToEditTab();
791
+ textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
792
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
793
+ equationEditorFlyout.steps.clearAll();
794
+ equationEditorFlyout.steps.enterTextInPreviewInputField('2*?=6');
795
+ equationEditorFlyout.steps.clickOnOkButton();
796
+ textEntryMathPage.steps.switchToPreviewTab();
797
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
798
+ equationEditorFlyout.steps.enterTextInPreviewInputField('2*?=6');
799
+ equationEditorFlyout.steps.clickOnOkButton();
800
+ textEntryMathPage.steps.switchToGradingView();
801
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
802
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
803
+ });
804
+
805
+ it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters a different equation then it should be treated as correct', () => {
806
+ textEntryMathPage.steps.resetQuestionPreview();
807
+ textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
808
+ equationEditorFlyout.steps.enterTextInPreviewInputField('?*2=6');
809
+ equationEditorFlyout.steps.clickOnOkButton();
810
+ textEntryMathPage.steps.switchToGradingView();
811
+ textEntryMathPage.steps.verifyCorrectResponseIcon(0);
812
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
813
+ });
758
814
  });
759
815
  });
@@ -124,6 +124,8 @@ const selectors = {
124
124
  aspectRatioButton: () => cy.get('.lock-reset-icon-wrapper button').eq(0),
125
125
  resetDimensionsButton: () => cy.get('.lock-reset-icon-wrapper button').eq(1),
126
126
  uploadLabel: () => cy.get('[class*="SimpleImageUploaderstyles__LabelWrapper"]').eq(0),
127
+ uploadedImage: () => cy.get('[aria-label="Image"]'),
128
+ uploadImageLoader: () => cy.get('[class*="InlineLoaderstyles__LoaderDiv"]'),
127
129
  fileNameLabel: () => cy.get('[class*="SimpleImageUploaderstyles__LabelWrapper"]').eq(1),
128
130
  fileUploadSection: () => cy.get('.file-input-wrapper'),
129
131
  chooseFileButton: () => cy.get('.choose-file-button'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.334-IEI-5156-089cdd1.0",
3
+ "version": "1.0.336-IEI-5508-automated-tests-1b030dd.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {