@dhis2-ui/tag 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 default Tag is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a default Tag is rendered', () => {
6
6
  cy.visitStory('Tag', 'Without icon');
7
7
  cy.get('[data-test="dhis2-uicore-tag"]').should('be.visible');
8
8
  });
9
- (0, _steps.Given)('a Tag with an icon is rendered', () => {
9
+ (0, _cypressCucumberPreprocessor.Given)('a Tag with an icon is rendered', () => {
10
10
  cy.visitStory('Tag', 'With icon');
11
11
  cy.get('[data-test="dhis2-uicore-tag"]').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-tag-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-tag-icon"]').contains('Icon').should('be.visible');
18
18
  });
@@ -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 tag with the default max width and enough content to fill it completely is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a tag with the default max width and enough content to fill it completely is rendered', () => {
6
6
  cy.wrap('240px').as('maxWidth');
7
7
  cy.visitStory('Tag', 'With default max width');
8
8
  cy.get('[data-test="dhis2-uicore-tag"]').should('be.visible');
9
9
  });
10
- (0, _steps.Given)('a tag with a max width and enough content to fill it completely is rendered', () => {
10
+ (0, _cypressCucumberPreprocessor.Given)('a tag with a max width and enough content to fill it completely is rendered', () => {
11
11
  cy.wrap('30px').as('maxWidth');
12
12
  cy.visitStory('Tag', 'With custom max width');
13
13
  cy.get('[data-test="dhis2-uicore-tag"]').should('be.visible');
14
14
  });
15
- (0, _steps.Then)('the width of the tag should be exactly the max width', () => {
15
+ (0, _cypressCucumberPreprocessor.Then)('the width of the tag should be exactly the max width', () => {
16
16
  cy.all(() => cy.get('@maxWidth'), () => cy.get('[data-test="dhis2-uicore-tag"]')).then(_ref => {
17
17
  let [maxWidth, tag] = _ref;
18
18
  expect(tag).to.have.css('width', maxWidth);
@@ -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 Tag with text is rendered', () => {
5
+ (0, _cypressCucumberPreprocessor.Given)('a Tag with text is rendered', () => {
6
6
  cy.visitStory('Tag', 'With text');
7
7
  cy.get('[data-test="dhis2-uicore-tag"]').should('be.visible');
8
8
  });
9
- (0, _steps.Then)('the text will be visible', () => {
9
+ (0, _cypressCucumberPreprocessor.Then)('the text will be visible', () => {
10
10
  cy.get('[data-test="dhis2-uicore-tag-text"]').contains('Text content').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 default Tag is rendered', () => {
3
3
  cy.visitStory('Tag', 'Without icon');
4
4
  cy.get('[data-test="dhis2-uicore-tag"]').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 tag with the default max width and enough content to fill it completely is rendered', () => {
3
3
  cy.wrap('240px').as('maxWidth');
4
4
  cy.visitStory('Tag', 'With default max width');
@@ -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 Tag with text is rendered', () => {
3
3
  cy.visitStory('Tag', 'With text');
4
4
  cy.get('[data-test="dhis2-uicore-tag"]').should('be.visible');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/tag",
3
- "version": "9.5.0-alpha.1",
3
+ "version": "9.6.0",
4
4
  "description": "UI Tag",
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
  },