@dhis2-ui/field 9.5.0-alpha.1 → 9.5.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.
- package/build/cjs/field/features/accepts_children/index.js +3 -3
- package/build/cjs/field-group/features/can_be_required/index.js +3 -3
- package/build/cjs/field-set/features/accepts_children/index.js +3 -3
- package/build/es/field/features/accepts_children/index.js +1 -1
- package/build/es/field-group/features/can_be_required/index.js +1 -1
- package/build/es/field-set/features/accepts_children/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a Field with children is rendered', () => {
|
|
6
6
|
cy.visitStory('Field', 'With children');
|
|
7
7
|
cy.get('[data-test="dhis2-uicore-field"]').should('be.visible');
|
|
8
8
|
});
|
|
9
|
-
(0,
|
|
9
|
+
(0, _cypressCucumberPreprocessor.Then)('the children are visible', () => {
|
|
10
10
|
cy.contains('I am a child').should('be.visible');
|
|
11
11
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a FieldGroup with label and a required flag is rendered', () => {
|
|
6
6
|
cy.visitStory('FieldGroup', 'With label and required');
|
|
7
7
|
});
|
|
8
|
-
(0,
|
|
8
|
+
(0, _cypressCucumberPreprocessor.Then)('the required indicator is visible', () => {
|
|
9
9
|
cy.get('[data-test="dhis2-uicore-field-label-required"]').should('be.visible');
|
|
10
10
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
|
|
4
4
|
|
|
5
|
-
(0,
|
|
5
|
+
(0, _cypressCucumberPreprocessor.Given)('a FieldSet with children is rendered', () => {
|
|
6
6
|
cy.visitStory('FieldSet', 'With children');
|
|
7
7
|
cy.get('[data-test="dhis2-uicore-fieldset"]').should('be.visible');
|
|
8
8
|
});
|
|
9
|
-
(0,
|
|
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
|
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
|
2
2
|
Given('a Field with children is rendered', () => {
|
|
3
3
|
cy.visitStory('Field', 'With children');
|
|
4
4
|
cy.get('[data-test="dhis2-uicore-field"]').should('be.visible');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor
|
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
|
2
2
|
Given('a FieldGroup with label and a required flag is rendered', () => {
|
|
3
3
|
cy.visitStory('FieldGroup', 'With label and required');
|
|
4
4
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Given, Then } from 'cypress-cucumber-preprocessor
|
|
1
|
+
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
|
|
2
2
|
Given('a FieldSet with children is rendered', () => {
|
|
3
3
|
cy.visitStory('FieldSet', 'With children');
|
|
4
4
|
cy.get('[data-test="dhis2-uicore-fieldset"]').should('be.visible');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/field",
|
|
3
|
-
"version": "9.5.0
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "UI Field",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2-ui/box": "9.5.0
|
|
37
|
-
"@dhis2-ui/help": "9.5.0
|
|
38
|
-
"@dhis2-ui/label": "9.5.0
|
|
39
|
-
"@dhis2/ui-constants": "9.5.0
|
|
36
|
+
"@dhis2-ui/box": "9.5.0",
|
|
37
|
+
"@dhis2-ui/help": "9.5.0",
|
|
38
|
+
"@dhis2-ui/label": "9.5.0",
|
|
39
|
+
"@dhis2/ui-constants": "9.5.0",
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"prop-types": "^15.7.2"
|
|
42
42
|
},
|