@dhis2-ui/modal 9.4.4 → 9.4.6

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 Modal with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Modal with children is rendered', () => {
6
6
  cy.visitStory('Modal', 'With children');
7
7
  cy.get('[data-test="dhis2-uicore-modal"]').should('exist');
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,27 +1,27 @@
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 top-aligned Modal with onClose handler is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a top-aligned Modal with onClose handler is rendered', () => {
6
6
  cy.visitStory('Modal', 'With onClose');
7
7
  });
8
- (0, _steps.When)('the Screencover is clicked above the modal', () => {
8
+ (0, _cypressCucumberPreprocessor.When)('the Screencover is clicked above the modal', () => {
9
9
  cy.get('[data-test="dhis2-uicore-layer"] > .backdrop').click('top');
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
  });
15
15
  });
16
- (0, _steps.Given)('a bottom-aligned Modal with onClose handler is rendered', () => {
16
+ (0, _cypressCucumberPreprocessor.Given)('a bottom-aligned Modal with onClose handler is rendered', () => {
17
17
  cy.visitStory('Modal', 'Bottom-aligned, with onClose');
18
18
  });
19
- (0, _steps.When)('the Screencover is clicked below the modal', () => {
19
+ (0, _cypressCucumberPreprocessor.When)('the Screencover is clicked below the modal', () => {
20
20
  cy.get('[data-test="dhis2-uicore-layer"] > .backdrop').click('bottom');
21
21
  });
22
- (0, _steps.Given)('a Modal with onClose handler is rendered', () => {
22
+ (0, _cypressCucumberPreprocessor.Given)('a Modal with onClose handler is rendered', () => {
23
23
  cy.visitStory('Modal', 'With onClose');
24
24
  });
25
- (0, _steps.When)('the close button is clicked', () => {
25
+ (0, _cypressCucumberPreprocessor.When)('the close button is clicked', () => {
26
26
  cy.get('[data-test="dhis2-modal-close-button"]').click();
27
27
  });
@@ -1,31 +1,31 @@
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 modal with a counter component is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a modal with a counter component is rendered', () => {
6
6
  cy.visitStory('Modal', 'With stateful children');
7
7
  });
8
- (0, _steps.Given)('the counter is 0', () => {
8
+ (0, _cypressCucumberPreprocessor.Given)('the counter is 0', () => {
9
9
  cy.get('#counter-value').contains('0');
10
10
  });
11
- (0, _steps.When)('the user increases the counter once', () => {
11
+ (0, _cypressCucumberPreprocessor.When)('the user increases the counter once', () => {
12
12
  cy.get('#increment-counter').click();
13
13
  });
14
- (0, _steps.When)('the counter should be 1', () => {
14
+ (0, _cypressCucumberPreprocessor.When)('the counter should be 1', () => {
15
15
  cy.get('#counter-value').contains('1');
16
16
  });
17
- (0, _steps.When)('the user hides the modal', () => {
17
+ (0, _cypressCucumberPreprocessor.When)('the user hides the modal', () => {
18
18
  cy.get('#hide-modal').click();
19
19
  });
20
- (0, _steps.Then)('the modal should not be visible', () => {
20
+ (0, _cypressCucumberPreprocessor.Then)('the modal should not be visible', () => {
21
21
  cy.get('#hide-modal').should('not.be.visible');
22
22
  });
23
- (0, _steps.Then)('the user shows the modal', () => {
23
+ (0, _cypressCucumberPreprocessor.Then)('the user shows the modal', () => {
24
24
  cy.get('#show-modal').click();
25
25
  });
26
- (0, _steps.Then)('the modal should be visible', () => {
26
+ (0, _cypressCucumberPreprocessor.Then)('the modal should be visible', () => {
27
27
  cy.get('#hide-modal').should('be.visible');
28
28
  });
29
- (0, _steps.Then)('the counter value should be one', () => {
29
+ (0, _cypressCucumberPreprocessor.Then)('the counter value should be one', () => {
30
30
  cy.get('#counter-value').contains('1');
31
31
  });
@@ -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 ModalActions with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a ModalActions with children is rendered', () => {
6
6
  cy.visitStory('ModalActions', 'With children');
7
7
  cy.get('[data-test="dhis2-uicore-modalactions"]').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,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 ModalContent with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a ModalContent with children is rendered', () => {
6
6
  cy.visitStory('ModalContent', 'With children');
7
7
  cy.get('[data-test="dhis2-uicore-modalcontent"]').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,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 ModalTitle with children is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a ModalTitle with children is rendered', () => {
6
6
  cy.visitStory('ModalTitle', 'With children');
7
7
  cy.get('[data-test="dhis2-uicore-modaltitle"]').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,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 Modal with children is rendered', () => {
3
3
  cy.visitStory('Modal', 'With children');
4
4
  cy.get('[data-test="dhis2-uicore-modal"]').should('exist');
@@ -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 top-aligned Modal with onClose handler is rendered', () => {
3
3
  cy.visitStory('Modal', '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 modal with a counter component is rendered', () => {
3
3
  cy.visitStory('Modal', 'With stateful children');
4
4
  });
@@ -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 ModalActions with children is rendered', () => {
3
3
  cy.visitStory('ModalActions', 'With children');
4
4
  cy.get('[data-test="dhis2-uicore-modalactions"]').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 ModalContent with children is rendered', () => {
3
3
  cy.visitStory('ModalContent', 'With children');
4
4
  cy.get('[data-test="dhis2-uicore-modalcontent"]').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 ModalTitle with children is rendered', () => {
3
3
  cy.visitStory('ModalTitle', 'With children');
4
4
  cy.get('[data-test="dhis2-uicore-modaltitle"]').should('be.visible');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/modal",
3
- "version": "9.4.4",
3
+ "version": "9.4.6",
4
4
  "description": "UI Modal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/card": "9.4.4",
37
- "@dhis2-ui/center": "9.4.4",
38
- "@dhis2-ui/layer": "9.4.4",
39
- "@dhis2-ui/portal": "9.4.4",
40
- "@dhis2/ui-constants": "9.4.4",
41
- "@dhis2/ui-icons": "9.4.4",
36
+ "@dhis2-ui/card": "9.4.6",
37
+ "@dhis2-ui/center": "9.4.6",
38
+ "@dhis2-ui/layer": "9.4.6",
39
+ "@dhis2-ui/portal": "9.4.6",
40
+ "@dhis2/ui-constants": "9.4.6",
41
+ "@dhis2/ui-icons": "9.4.6",
42
42
  "classnames": "^2.3.1",
43
43
  "prop-types": "^15.7.2"
44
44
  },