@dhis2-ui/chip 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,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 Chip with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Chip with children is rendered', () => {
6
6
  cy.visitStory('Chip', 'With children');
7
7
  cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible');
8
8
  });
9
- (0, _steps.Then)('the children are visible', () => {
9
+ (0, _cypressCucumberPreprocessor.Then)('the children are visible', () => {
10
10
  cy.contains('I am a child').should('be.visible');
11
11
  });
@@ -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 default Chip is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a default Chip is rendered', () => {
6
6
  cy.visitStory('Chip', 'Default');
7
7
  cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible');
8
8
  });
9
- (0, _steps.Given)('a Chip supplied with an icon is rendered', () => {
9
+ (0, _cypressCucumberPreprocessor.Given)('a Chip supplied with an icon is rendered', () => {
10
10
  cy.visitStory('Chip', 'With icon');
11
11
  cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible');
12
12
  });
13
- (0, _steps.Then)('the icon will not be rendered', () => {
13
+ (0, _cypressCucumberPreprocessor.Then)('the icon will not be rendered', () => {
14
14
  cy.get('[data-test="dhis2-uicore-chip-icon"]').should('not.exist');
15
15
  });
16
- (0, _steps.Then)('the icon will be visible', () => {
16
+ (0, _cypressCucumberPreprocessor.Then)('the icon will be visible', () => {
17
17
  cy.get('[data-test="dhis2-uicore-chip-icon"]').contains('Icon').should('be.visible');
18
18
  });
@@ -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 Chip with onClick handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Chip with onClick handler is rendered', () => {
6
6
  cy.visitStory('Chip', 'With onClick');
7
7
  });
8
- (0, _steps.When)('the Chip is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Chip is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-chip"]').click();
10
10
  });
11
- (0, _steps.Then)('the onClick handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onClick handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onClick).to.be.calledWith({});
14
14
  });
@@ -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 Chip with onRemove handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Chip with onRemove handler is rendered', () => {
6
6
  cy.visitStory('Chip', 'With onRemove');
7
7
  });
8
- (0, _steps.When)('the remove icon is clicked', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the remove icon is clicked', () => {
9
9
  cy.get('[data-test="dhis2-uicore-chip-remove"]').click();
10
10
  });
11
- (0, _steps.Then)('the onRemove handler is called', () => {
11
+ (0, _cypressCucumberPreprocessor.Then)('the onRemove handler is called', () => {
12
12
  cy.window().should(win => {
13
13
  expect(win.onRemove).to.be.calledWith({});
14
14
  });
@@ -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 Chip with children is rendered', () => {
3
3
  cy.visitStory('Chip', 'With children');
4
4
  cy.get('[data-test="dhis2-uicore-chip"]').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 default Chip is rendered', () => {
3
3
  cy.visitStory('Chip', 'Default');
4
4
  cy.get('[data-test="dhis2-uicore-chip"]').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('a Chip with onClick handler is rendered', () => {
3
3
  cy.visitStory('Chip', 'With onClick');
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 Chip with onRemove handler is rendered', () => {
3
3
  cy.visitStory('Chip', 'With onRemove');
4
4
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/chip",
3
- "version": "9.5.0-alpha.1",
3
+ "version": "9.6.0",
4
4
  "description": "UI Chip",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2/ui-constants": "9.5.0-alpha.1",
36
+ "@dhis2/ui-constants": "9.6.0",
37
37
  "classnames": "^2.3.1",
38
38
  "prop-types": "^15.7.2"
39
39
  },