@dhis2-ui/node 9.5.0-alpha.1 → 9.6.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.
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a closed Node with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a closed Node with children is rendered', () => {
6
6
  cy.visitStory('Node', 'Closed with children');
7
7
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
8
8
  });
9
- (0, _steps.Given)('an open Node with children is rendered', () => {
9
+ (0, _cypressCucumberPreprocessor.Given)('an open Node with children is rendered', () => {
10
10
  cy.visitStory('Node', 'Open with children');
11
11
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
12
12
  });
13
- (0, _steps.Then)('the children are visible', () => {
13
+ (0, _cypressCucumberPreprocessor.Then)('the children are visible', () => {
14
14
  cy.get('[data-test="dhis2-uicore-node-leaves"]').contains('I am a child').should('be.visible');
15
15
  });
16
- (0, _steps.Then)('the children are not visible', () => {
16
+ (0, _cypressCucumberPreprocessor.Then)('the children are not visible', () => {
17
17
  cy.get('[data-test="dhis2-uicore-node-leaves"]').contains('I am a child').should('not.be.visible');
18
18
  });
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Node with component prop is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Node with component prop is rendered', () => {
6
6
  cy.visitStory('Node', 'With component');
7
7
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
8
8
  });
9
- (0, _steps.Then)('the component is visible', () => {
9
+ (0, _cypressCucumberPreprocessor.Then)('the component is visible', () => {
10
10
  cy.get('[data-test="dhis2-uicore-node-label"]').contains('I am a component').should('be.visible');
11
11
  });
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a Node with icon prop is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Node with icon prop is rendered', () => {
6
6
  cy.visitStory('Node', 'With icon');
7
7
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
8
8
  });
9
- (0, _steps.Then)('the icon is visible', () => {
9
+ (0, _cypressCucumberPreprocessor.Then)('the icon is visible', () => {
10
10
  cy.get('[data-test="dhis2-uicore-node-icon"]').contains('Icon').should('be.visible');
11
11
  });
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('an open Node with an onClose handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('an open Node with an onClose handler is rendered', () => {
6
6
  cy.visitStory('Node', 'Open with onClose');
7
7
  });
8
- (0, _steps.When)('the arrow is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the arrow is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-node-toggle"]').click();
10
10
  });
11
- (0, _steps.Then)('the onClose handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onClose handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onClose).to.be.calledWith({
14
14
  open: false
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _steps = require("cypress-cucumber-preprocessor/steps");
3
+ var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
4
4
 
5
- (0, _steps.Given)('a closed Node with an onOpen handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a closed Node with an onOpen handler is rendered', () => {
6
6
  cy.visitStory('Node', 'Closed with onOpen');
7
7
  });
8
- (0, _steps.When)('the arrow is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the arrow is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-node-toggle"]').click();
10
10
  });
11
- (0, _steps.Then)('the onOpen handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onOpen handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onOpen).to.be.calledWith({
14
14
  open: true
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a closed Node with children is rendered', () => {
3
3
  cy.visitStory('Node', 'Closed with children');
4
4
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Node with component prop is rendered', () => {
3
3
  cy.visitStory('Node', 'With component');
4
4
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
@@ -1,4 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a Node with icon prop is rendered', () => {
3
3
  cy.visitStory('Node', 'With icon');
4
4
  cy.get('[data-test="dhis2-uicore-node"]').should('be.visible');
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('an open Node with an onClose handler is rendered', () => {
3
3
  cy.visitStory('Node', 'Open with onClose');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('a closed Node with an onOpen handler is rendered', () => {
3
3
  cy.visitStory('Node', 'Closed with onOpen');
4
4
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/node",
3
- "version": "9.5.0-alpha.1",
3
+ "version": "9.6.0",
4
4
  "description": "UI Node",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/loader": "9.5.0-alpha.1",
37
- "@dhis2/ui-constants": "9.5.0-alpha.1",
36
+ "@dhis2-ui/loader": "9.6.0",
37
+ "@dhis2/ui-constants": "9.6.0",
38
38
  "classnames": "^2.3.1",
39
39
  "prop-types": "^15.7.2"
40
40
  },