itemengine-cypress-automation 1.0.371-IEI-5697-mcq-flakiness-3590d29.0 → 1.0.372

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.
@@ -112,8 +112,7 @@ describe('Create item page - Grid fill : Partial equal with alternative answers'
112
112
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
113
113
  });
114
114
 
115
- //Remove skip once https://weldnorthed.atlassian.net/browse/IEI-4541 is resolved
116
- it.skip('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
115
+ it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
117
116
  gridFillPage.steps.resetQuestionPreview();
118
117
  gridFillPage.steps.selectCellPreviewTab(0, 0);
119
118
  gridFillPage.steps.selectCellPreviewTab(0, 4);
@@ -1,5 +1,6 @@
1
1
  import { multipleSelectionPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
3
4
 
4
5
  describe('Create Item page - Multiple selection', () => {
5
6
  before(() => {
@@ -64,6 +65,7 @@ describe('Create Item page - Multiple selection', () => {
64
65
  before(() => {
65
66
  multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
66
67
  cy.barsPreLoaderWait();
68
+ multipleSelectionPage.steps.addInputToOptionsInputField(options);
67
69
  });
68
70
 
69
71
  it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
@@ -64,10 +64,8 @@ describe('Create Item page - Single selection grid', () => {
64
64
  before(() => {
65
65
  singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
66
66
  cy.barsPreLoaderWait();
67
- singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
68
- singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
69
- singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
70
- singleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
67
+ singleSelectionGridPage.steps.modifyTableCellProperty({ row: 1, column: 0 }, 'Heading');
68
+ singleSelectionGridPage.steps.modifyTableCellProperty({ row: 2, column: 0 }, 'Subheading');
71
69
  });
72
70
 
73
71
  it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
@@ -2,6 +2,7 @@ import { singleSelectionGridPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
+ const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
5
6
 
6
7
  describe('Create item page - Single selection grid: Scoring section', () => {
7
8
  before(() => {
@@ -263,6 +264,7 @@ describe('Create item page - Single selection grid: Scoring section', () => {
263
264
  before(() => {
264
265
  singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
265
266
  cy.barsPreLoaderWait();
267
+ singleSelectionGridPage.steps.addInputToOptionsInputField(options);
266
268
  });
267
269
 
268
270
  it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
@@ -38,6 +38,10 @@ describe('Multiple selection grid - Additional settings', () => {
38
38
  before(() => {
39
39
  singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
40
40
  cy.barsPreLoaderWait();
41
+ singleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not')
42
+ singleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
43
+ singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
44
+ singleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
41
45
  singleSelectionGridPage.steps.expandStyleAndLayoutCustomizationAccordion();
42
46
  });
43
47
 
@@ -76,6 +76,7 @@ const steps = {
76
76
 
77
77
  expandPenaltyScoringDropdown: () => {
78
78
  autoScoredScoringSectionMultiResponseType.penaltyScoringDropdown()
79
+ .trigger('mouseover')
79
80
  .click();
80
81
  cy.wait(500);
81
82
  utilities.verifyElementVisibilityState(autoScoredScoringSectionMultiResponseType.penaltyScoringDropdownListOptions(), 'visible');
@@ -1083,11 +1083,13 @@ const steps = {
1083
1083
 
1084
1084
  expandDefaultOptionDropdown: () => {
1085
1085
  gridQuestionCommonComponent.defaultOptionDropdown()
1086
+ .trigger('mouseover')
1086
1087
  .click();
1087
1088
  },
1088
1089
 
1089
1090
  expandDefaultTextDropdown: () => {
1090
1091
  gridQuestionCommonComponent.defaultTextDropdown()
1092
+ .trigger('mouseover')
1091
1093
  .click();
1092
1094
  },
1093
1095
 
@@ -1152,6 +1154,7 @@ const steps = {
1152
1154
  //Additional settings
1153
1155
  expandRowNumerationDropdown: () => {
1154
1156
  gridQuestionCommonComponent.rowNumerationDropdown()
1157
+ .trigger('mouseover')
1155
1158
  .click();
1156
1159
  },
1157
1160
 
@@ -1473,6 +1476,7 @@ const steps = {
1473
1476
  expandColumnSpacingDropdown: () => {
1474
1477
  gridQuestionCommonComponent.columnSpacingDropdown()
1475
1478
  .eq(0)
1479
+ .trigger('mouseover')
1476
1480
  .click();
1477
1481
  },
1478
1482
 
@@ -1609,6 +1613,7 @@ const steps = {
1609
1613
 
1610
1614
  expandColumnDimensionsDropdown: () => {
1611
1615
  gridQuestionCommonComponent.columnDimensionsDropdown()
1616
+ .trigger('mouseover')
1612
1617
  .click();
1613
1618
  },
1614
1619
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.371-IEI-5697-mcq-flakiness-3590d29.0",
3
+ "version": "1.0.372",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,4 +52,4 @@
52
52
  "devDependencies": {
53
53
  "@applitools/eyes-cypress": "^3.47.0"
54
54
  }
55
- }
55
+ }