@jahia/cypress 3.8.0 → 3.9.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.
@@ -9,4 +9,5 @@ export declare const addNode: (variables: {
9
9
  children?: any[];
10
10
  }) => Cypress.Chainable;
11
11
  export declare const getNodeByPath: (path: string, properties?: string[], language?: string, childrenTypes?: string[]) => Cypress.Chainable;
12
+ export declare const getNodeAcl: (path: string) => Cypress.Chainable;
12
13
  export declare const moveNode: (pathOrId: string, destParentPathOrId: string, destName?: string) => Cypress.Chainable;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.moveNode = exports.getNodeByPath = exports.addNode = exports.deleteNodeProperty = exports.deleteNode = exports.setNodeProperty = void 0;
3
+ 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) {
@@ -58,6 +58,15 @@ var getNodeByPath = function (path, properties, language, childrenTypes) {
58
58
  });
59
59
  };
60
60
  exports.getNodeByPath = getNodeByPath;
61
+ var getNodeAcl = function (path) {
62
+ return cy.apollo({
63
+ variables: {
64
+ path: path
65
+ },
66
+ queryFile: 'graphql/jcr/query/getNodeAcl.graphql'
67
+ });
68
+ };
69
+ exports.getNodeAcl = getNodeAcl;
61
70
  var moveNode = function (pathOrId, destParentPathOrId, destName) {
62
71
  return cy.apollo({
63
72
  variables: {
@@ -0,0 +1,17 @@
1
+ query getAcl($path: String!) {
2
+ jcr {
3
+ nodeByPath(path: $path) {
4
+ acl {
5
+ aclEntries {
6
+ aclEntryType
7
+ role {
8
+ name
9
+ }
10
+ principal {
11
+ name
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts"
@@ -55,6 +55,15 @@ export const getNodeByPath = (path: string, properties?: string[], language?: st
55
55
  });
56
56
  };
57
57
 
58
+ export const getNodeAcl = (path: string): Cypress.Chainable => {
59
+ return cy.apollo({
60
+ variables: {
61
+ path: path
62
+ },
63
+ queryFile: 'graphql/jcr/query/getNodeAcl.graphql'
64
+ });
65
+ };
66
+
58
67
  export const moveNode = (pathOrId: string, destParentPathOrId: string, destName?: string): Cypress.Chainable => {
59
68
  return cy.apollo({
60
69
  variables: {