@jahia/cypress 3.12.0 → 3.13.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.
|
@@ -11,3 +11,4 @@ export declare const addNode: (variables: {
|
|
|
11
11
|
export declare const getNodeByPath: (path: string, properties?: string[], language?: string, childrenTypes?: string[], workspace?: 'EDIT' | 'LIVE') => Cypress.Chainable;
|
|
12
12
|
export declare const getNodeAcl: (path: string) => Cypress.Chainable;
|
|
13
13
|
export declare const moveNode: (pathOrId: string, destParentPathOrId: string, destName?: string) => Cypress.Chainable;
|
|
14
|
+
export declare const getNodeTypes: (filter?: {}) => Cypress.Chainable;
|
package/dist/utils/JCRHelper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.moveNode = exports.getNodeAcl = exports.getNodeByPath = exports.addNode = exports.deleteNodeProperty = exports.deleteNode = exports.setNodeProperty = void 0;
|
|
3
|
+
exports.getNodeTypes = exports.moveNode = exports.getNodeAcl = exports.getNodeByPath = exports.addNode = exports.deleteNodeProperty = exports.deleteNode = exports.setNodeProperty = void 0;
|
|
4
4
|
var setNodeProperty = function (pathOrId, property, value, language) {
|
|
5
5
|
var mutationFile = 'graphql/jcr/mutation/setProperty.graphql';
|
|
6
6
|
if (value instanceof Array) {
|
|
@@ -80,3 +80,13 @@ var moveNode = function (pathOrId, destParentPathOrId, destName) {
|
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
82
|
exports.moveNode = moveNode;
|
|
83
|
+
var getNodeTypes = function (filter) {
|
|
84
|
+
if (filter === void 0) { filter = {}; }
|
|
85
|
+
return cy.apollo({
|
|
86
|
+
variables: {
|
|
87
|
+
filter: filter
|
|
88
|
+
},
|
|
89
|
+
queryFile: 'graphql/jcr/query/getNodeTypes.graphql'
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
exports.getNodeTypes = getNodeTypes;
|
package/package.json
CHANGED
package/src/utils/JCRHelper.ts
CHANGED
|
@@ -75,3 +75,12 @@ export const moveNode = (pathOrId: string, destParentPathOrId: string, destName?
|
|
|
75
75
|
mutationFile: 'graphql/jcr/mutation/moveNode.graphql'
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
+
|
|
79
|
+
export const getNodeTypes = (filter = {}): Cypress.Chainable => {
|
|
80
|
+
return cy.apollo({
|
|
81
|
+
variables: {
|
|
82
|
+
filter: filter
|
|
83
|
+
},
|
|
84
|
+
queryFile: 'graphql/jcr/query/getNodeTypes.graphql'
|
|
85
|
+
});
|
|
86
|
+
};
|