itemengine-cypress-automation 1.0.514 → 1.0.515-IEI-6793-v4-b9daad8.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.
@@ -2,7 +2,6 @@
2
2
  import { chartsDotPlotPage, dialogBoxBase } from "../../../pages";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  import abortEarlySetup from "../../../support/helpers/abortEarly";
5
- const css = Cypress.env('css');
6
5
 
7
6
  describe('Dot plot - Dot type and Label options', () => {
8
7
  before(() => {
@@ -233,70 +232,4 @@ describe('Dot plot - Dot type and Label options', () => {
233
232
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
234
233
  });
235
234
  });
236
-
237
- describe('Display minor nodes checkbox - content and functionality', () => {
238
- abortEarlySetup();
239
- before(() => {
240
- chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
241
- cy.barsPreLoaderWait();
242
- chartsDotPlotPage.steps.selectDotPlot();
243
- chartsDotPlotPage.steps.enterTextInMinInputField(2);
244
- chartsDotPlotPage.steps.enterTextInMaxInputField(5);
245
-
246
- });
247
-
248
- it('Display minor nodes label and checkbox should be displayed and by default checkbox should be checked', () => {
249
- utilities.verifyInnerText(chartsDotPlotPage.displayMinorNodeLabel(), 'Display minor nodes');
250
- utilities.verifyElementVisibilityState(chartsDotPlotPage.displayMinorNodeLabel(), 'visible');
251
- chartsDotPlotPage.steps.verifyDisplayMinorNodesCheckboxChecked();
252
- });
253
-
254
- it('When the Display minor nodes checkbox is checked then minor nodes should be displayed in the chart', () => {
255
- chartsDotPlotPage.steps.verifyMinorNodesInSelectChartTypeSectionIsVisible();
256
- chartsDotPlotPage.steps.verifyMinorNodesInSpecifyCorrectAnswerSectionIsVisible();
257
- });
258
-
259
- it('When user unchecks the Display minor nodes checkbox then minor nodes should not be displayed in the chart', () => {
260
- chartsDotPlotPage.steps.clickOnDisplayMinorNodeCheckbox();
261
- chartsDotPlotPage.steps.verifyDisplayMinorNodesCheckboxUnchecked();
262
- chartsDotPlotPage.steps.verifyMinorNodesNotDisplayedInSelectChartTypeSection();
263
- chartsDotPlotPage.steps.verifyMinorNodesNotDisplayedInSpecifyCorrectAnswerSection();
264
- });
265
-
266
- it('CSS of Display minor nodes checkbox', { tags: 'css' }, () => {
267
- utilities.verifyCSS(chartsDotPlotPage.displayMinorNodeLabel(), {
268
- 'color': css.color.labels,
269
- 'font-size': css.fontSize.normal,
270
- 'font-weight': css.fontWeight.regular
271
- });
272
- });
273
-
274
- it('Accessibility of Display minor nodes checkbox', { tags: 'a11y' }, () => {
275
- cy.checkAccessibility(chartsDotPlotPage.displayMinorNodeLabel().parents('[class*="Chartsstyles__ChartsQuestionWrapper"]'));
276
- });
277
- });
278
-
279
- describe('Display minor nodes checkbox - preview tab functionality', () => {
280
- abortEarlySetup();
281
- before(() => {
282
- chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
283
- cy.barsPreLoaderWait();
284
- chartsDotPlotPage.steps.selectDotPlot();
285
- chartsDotPlotPage.steps.enterTextInMinInputField(2);
286
- chartsDotPlotPage.steps.enterTextInMaxInputField(5);
287
- chartsDotPlotPage.steps.switchToPreviewTab();
288
- });
289
-
290
- it('When the Display minor nodes checkbox is checked in edit tab then minor nodes should be displayed in the graph in preview tab', () => {
291
- chartsDotPlotPage.steps.verifyMinorNodesInPreviewTabSectionIsVisible();
292
- });
293
-
294
- it('When user unchecks the Display minor nodes checkbox in edit tab then minor nodes should not be displayed in the graph in preview tab', () => {
295
- chartsDotPlotPage.steps.switchToEditTab();
296
- chartsDotPlotPage.steps.clickOnDisplayMinorNodeCheckbox();
297
- chartsDotPlotPage.steps.verifyDisplayMinorNodesCheckboxUnchecked();
298
- chartsDotPlotPage.steps.switchToPreviewTab();
299
- chartsDotPlotPage.steps.verifyMinorNodesNotDisplayedInPreviewTabSection();
300
- });
301
- });
302
235
  })
@@ -172,8 +172,7 @@
172
172
  "deletePageColor": "rgb(124, 0, 0)",
173
173
  "dropdownDefaultBG": "rgb(227, 240, 237)",
174
174
  "strategyTextDisabled": "rgb(107, 107, 142)",
175
- "secondaryBtnBorderDisabled": "rgba(186, 201, 255, 0.5)",
176
- "minorNodeBorderColor": "rgb(132, 133, 205)"
175
+ "secondaryBtnBorderDisabled": "rgba(186, 201, 255, 0.5)"
177
176
  },
178
177
  "fontSize": {
179
178
  "extraSmall": "10px",
@@ -4,7 +4,6 @@ import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage
4
4
  import { dialogBoxBase } from "./dialogBoxBase";
5
5
  import { createItemPage } from "./createItemPage";
6
6
  const css = Cypress.env('css');
7
- const minorNodesPosition = [1,2,4,5,6,8,9,10]
8
7
 
9
8
  const selectors = {
10
9
  ...questionInstructionsComponent,
@@ -48,7 +47,6 @@ const selectors = {
48
47
  allowStudentsToEditLabel: () => cy.get('[class*="LabelOptionsWrapper"] .additional-settings-label'),
49
48
  xAxisLabelSelectChartType: () => cy.get('[class*="LabelOptionsWrapper"] .MuiFormControlLabel-label'),
50
49
  xAxisCheckBox: () => cy.get('[class*="LabelOptionsWrapper"] input'),
51
- minorNodesEditTab: () => cy.get('.ngie-dot-plot-chart .number-line'),
52
50
 
53
51
  //Specify correct answer
54
52
  dotColumnSpecifyCorrectAnswer: () => cy.get('.ngie-accordion-detail .ngie-chart-point'),
@@ -68,7 +66,6 @@ const selectors = {
68
66
  numberLineAxisSpecifyCorrectAnswer: () => cy.get('.ngie-accordion-detail .number-line-wrapper'),
69
67
  dotColumnLockIconSpecifyCorrectAnswer: () => cy.get('[class*="LockIconWrapper"]'),
70
68
  dotPlotChartSpecifyCorrectAnswer: () => cy.get('.ngie-accordion-detail [class*="DotPlotChartstyles__ChartWrapper"]'),
71
- minorNodesSpecifyCorrectAnswerSection: () => cy.get('.ngie-accordion-detail .number-line'),
72
69
 
73
70
  //scoring
74
71
  toleranceThresholdLabel: () => cy.get('[class*="AllocatedPointsstyles__PointsWrapper"] .points-label'),
@@ -92,7 +89,6 @@ const selectors = {
92
89
  dotPlotChartPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__ChartWrapper"]').eq(0),
93
90
  numberLineAxisPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .number-line-wrapper').eq(0),
94
91
  labelsNumberLineAxisPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__BottomWrapper"]').eq(0).find('.label-wrapper [class*="DotPlotChartstyles__Label"]'),
95
- minorNodesPreviewTabSection: () => cy.get('[class*="question-preview-wrapper"] .number-line'),
96
92
  //Correct answer section
97
93
  correctAnswersLabel: () => cy.get('[class*="CorrectAnswerHeader"]:visible'),
98
94
  dotPlotChartCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__ChartWrapper"]').eq(1),
@@ -1678,69 +1674,6 @@ const steps = {
1678
1674
  .should('have.value', points);
1679
1675
  });
1680
1676
  },
1681
-
1682
- clickOnDisplayMinorNodeCheckbox: () => {
1683
- layoutSectionComponent.displayMinorNodeCheckbox()
1684
- .click();
1685
- },
1686
-
1687
- verifyDisplayMinorNodesCheckboxChecked: () => {
1688
- layoutSectionComponent.displayMinorNodeCheckbox()
1689
- .should('be.checked');
1690
- },
1691
-
1692
- verifyDisplayMinorNodesCheckboxUnchecked: () => {
1693
- layoutSectionComponent.displayMinorNodeCheckbox()
1694
- .should('not.be.checked');
1695
- },
1696
-
1697
- verifyMinorNodesInSelectChartTypeSectionIsVisible: () => {
1698
- minorNodesPosition.forEach((index) => {
1699
- chartsDotPlotPage.minorNodesEditTab()
1700
- .eq(index)
1701
- .should('have.css', 'border-right', `1px solid ${css.color.minorNodeBorderColor}`);
1702
- });
1703
- },
1704
-
1705
- verifyMinorNodesInSpecifyCorrectAnswerSectionIsVisible: () => {
1706
- minorNodesPosition.forEach((index) => {
1707
- chartsDotPlotPage.minorNodesSpecifyCorrectAnswerSection()
1708
- .eq(index)
1709
- .should('have.css', 'border-right', `1px solid ${css.color.minorNodeBorderColor}`);
1710
- });
1711
- },
1712
-
1713
- verifyMinorNodesInPreviewTabSectionIsVisible: () => {
1714
- minorNodesPosition.forEach((index) => {
1715
- chartsDotPlotPage.minorNodesPreviewTabSection()
1716
- .eq(index)
1717
- .should('have.css', 'border-right', `1px solid ${css.color.minorNodeBorderColor}`);
1718
- });
1719
- },
1720
-
1721
- verifyMinorNodesNotDisplayedInSelectChartTypeSection: () => {
1722
- minorNodesPosition.forEach((index) => {
1723
- chartsDotPlotPage.minorNodesEditTab()
1724
- .eq(index)
1725
- .should('have.css', 'border-right-style', 'none');
1726
- });
1727
- },
1728
-
1729
- verifyMinorNodesNotDisplayedInSpecifyCorrectAnswerSection: () => {
1730
- minorNodesPosition.forEach((index) => {
1731
- chartsDotPlotPage.minorNodesSpecifyCorrectAnswerSection()
1732
- .eq(index)
1733
- .should('have.css', 'border-right-style', 'none');
1734
- });
1735
- },
1736
-
1737
- verifyMinorNodesNotDisplayedInPreviewTabSection: () => {
1738
- minorNodesPosition.forEach((index) => {
1739
- chartsDotPlotPage.minorNodesPreviewTabSection()
1740
- .eq(index)
1741
- .should('have.css', 'border-right-style', 'none');
1742
- });
1743
- }
1744
1677
  }
1745
1678
 
1746
1679
  const tests = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.514",
3
+ "version": "1.0.515-IEI-6793-v4-b9daad8.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {