itemengine-cypress-automation 1.0.344 → 1.0.345

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.
@@ -20,8 +20,8 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
20
20
  before(() => {
21
21
  chartsBarPage.steps.navigateToCreateQuestion('charts');
22
22
  cy.barsPreLoaderWait();
23
- chartsBarPage.steps.selectHorizontalDirectionRadioButton();
24
23
  chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
24
+ chartsBarPage.steps.selectHorizontalDirectionRadioButton();
25
25
  chartsBarPage.steps.selectAddBarOrPointToolbarOption();
26
26
  chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
27
27
  chartsBarPage.steps.setGraphTitle('Graph of profits');
@@ -69,8 +69,8 @@ describe('Edit item - fill in the gaps with drag and drop', () => {
69
69
  fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
70
70
  fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
71
71
  //Failing due to https://weldnorthed.atlassian.net/browse/IEI-5502
72
- // fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
73
- // fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
72
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Insects': 0 });
73
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Birds': 1 });
74
74
  fillInTheGapsDragAndDropPage.steps.saveAQuestionAndVerifySnackbar();
75
75
  });
76
76
  });
@@ -49,7 +49,7 @@ describe('Edit item - Number line', () => {
49
49
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Newly added label', 'vertical', range, 6);
50
50
  numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [6]);
51
51
  numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
52
- numberLineLabelPage.steps.verifyVerticalPointsNotExistOnNumberLineSpecifyCorrectAnswer(range, [0]);
52
+ numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
53
53
  numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
54
54
  });
55
55
 
@@ -278,7 +278,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
278
278
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
279
279
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
280
280
  textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
281
- textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢N⁢e⁢w⁢O⁢n⁢e', '2×6=12', '700%']);
281
+ textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢N⁢e⁢w⁢O⁢n⁢e', '2', '700%']);
282
282
  textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
283
283
  });
284
284
  });
@@ -116,7 +116,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
116
116
  textEntryMathPage.steps.switchToGradingView();
117
117
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
118
118
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
119
- textEntryMathPage.steps.verifyCorrectResponseIcon(2);
119
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
120
120
  textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['C⁢o⁢r⁢r⁢e⁢c⁢t⁢O⁢n⁢e', '6×2=12', '9000%']);
121
121
  });
122
122
 
@@ -29,6 +29,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
29
29
  case 'Question preview':
30
30
  textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
31
31
  utilities.scrollIntoView(textEntryMathPage.questionInstructionsInputField());
32
+ cy.wait(5000); //Added wait to fix the issue of question instruction input field not loading
32
33
  cy.barsPreLoaderWait();
33
34
  textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
34
35
  textEntryMathPage.steps.allotPoints(10);
@@ -250,7 +250,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
250
250
  textEntryMathWithImagePage.steps.clearHeightInputField();
251
251
  textEntryMathWithImagePage.steps.clearWidthInputField();
252
252
  textEntryMathWithImagePage.steps.insertResponseArea(20);
253
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '46px');
253
+ textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInEditTab(2, '32px');
254
254
  textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInEditTab(2, '120px');
255
255
  });
256
256
 
@@ -299,7 +299,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
299
299
  textEntryMathWithImagePage.steps.clearWidthInputField();
300
300
  textEntryMathWithImagePage.steps.insertResponseArea(20);
301
301
  textEntryMathWithImagePage.steps.switchToPreviewTab();
302
- textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '32px');
302
+ textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '46px');
303
303
  textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
304
304
  });
305
305
  });
@@ -512,6 +512,7 @@ const tests = {
512
512
  });
513
513
 
514
514
  it('When user clicks on the \'Previous button\', and reaches the beginning of the tablist \'Previous button\' should become disabled and \'Next button\' should become enabled', () => {
515
+ equationEditorFlyout.steps.clickOnEquationEditorButtonPrevious()
515
516
  equationEditorFlyout.steps.clickOnEquationEditorButtonPrevious()
516
517
  equationEditorFlyout.steps.clickOnEquationEditorButtonPrevious()
517
518
  utilities.verifyElementDisabled(equationEditorFlyout.buttonPrevious());
@@ -661,7 +661,7 @@ const steps = {
661
661
 
662
662
  verifyCaptureImageIsVisible: () => {
663
663
  drawingResponsePage.canvasContainer()
664
- .should('be.visible')
664
+ .should('exist')
665
665
  .within(() => {
666
666
  cy.get('img')
667
667
  .should('be.visible')
@@ -672,33 +672,33 @@ const steps = {
672
672
 
673
673
  verifySaveAndRetakeButtonsAreVisible: () => {
674
674
  drawingResponsePage.retakeButton()
675
- .should('be.visible');
675
+ .should('exist');
676
676
  drawingResponsePage.saveButton()
677
- .should('be.visible');
677
+ .should('exist');
678
678
  },
679
679
 
680
680
  clickOnRetakeButton: () => {
681
681
  drawingResponsePage.retakeButton()
682
- .should('be.visible')
682
+ .should('exist')
683
683
  .click();
684
684
  },
685
685
 
686
686
  clickOnSaveButton: () => {
687
687
  drawingResponsePage.saveButton()
688
- .should('be.visible')
688
+ .should('exist')
689
689
  .click();
690
690
  },
691
691
 
692
692
  verifyCameraIsVisible: () => {
693
693
  drawingResponsePage.cameraIsVisible()
694
- .should('be.visible');
694
+ .should('exist');
695
695
  },
696
696
 
697
697
  verifyCaptureAndCancelButtonIsVisible: () => {
698
698
  drawingResponsePage.captureImageButton()
699
- .should('be.visible');
699
+ .should('exist');
700
700
  drawingResponsePage.captureCancelImageIcon()
701
- .should('be.visible');
701
+ .should('exist');
702
702
  },
703
703
  /**
704
704
  * @param {string} fileName name of the file being uploaded
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.344",
3
+ "version": "1.0.345",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {