@uuv/cypress 2.40.0 → 2.42.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/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ # [2.42.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.41.0...runner-cypress-v2.42.0) (2024-12-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **runner-playwright:** update dependency nanoid to v3.3.8 ([1129db9](https://github.com/e2e-test-quest/uuv/commit/1129db97724767746ff6e83e99fcf2a842953ed5))
7
+ * update package-lock.json,[#891](https://github.com/e2e-test-quest/uuv/issues/891) ([3bcb03f](https://github.com/e2e-test-quest/uuv/commit/3bcb03f8522bb96df366aade023c0c104a70bcf0))
8
+
9
+
10
+ ### Features
11
+
12
+ * **runner-playwright:** update dependency typescript to v5.7.2 ([f278b59](https://github.com/e2e-test-quest/uuv/commit/f278b59a08ffef7319e83e9f60bacc1681e9589c))
13
+
14
+ # [2.41.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.40.0...runner-cypress-v2.41.0) (2024-11-24)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **assistant:** update dependency antd to v5.22.2 ([ca58136](https://github.com/e2e-test-quest/uuv/commit/ca581367951ff18f4abdd048e92fd9f34582c7ff))
20
+
21
+
22
+ ### Features
23
+
24
+ * **assistant:** update dependency @codemirror/view to v6.35.0 ([fd83add](https://github.com/e2e-test-quest/uuv/commit/fd83add8a853f97a5e402c41c6e8963ec6a194c4))
25
+ * **runner-cypress:** update dependency cypress to v13.16.0 ([b28d613](https://github.com/e2e-test-quest/uuv/commit/b28d613e87e36014b1a2d4f9099e870e8014c38a))
26
+ * **runner-playwright:** update playwright monorepo to v1.49.0 ([976b46c](https://github.com/e2e-test-quest/uuv/commit/976b46cebfeb88faa1a2767f04ee43d89303ad91))
27
+
1
28
  # [2.40.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.39.0...runner-cypress-v2.40.0) (2024-11-17)
2
29
 
3
30
 
@@ -12,7 +12,16 @@
12
12
  * understanding English or French.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.pressKey = exports.uuvFoundedElement = exports.uuvFindByTestId = exports.uuvFindByText = exports.uuvFindByLabelText = exports.uuvFindByRole = exports.uuvFindAllByRole = exports.uuvPatchContext = exports.uuvCheckContextWithinFocusedElement = exports.uuvGetContext = exports.getA11yResultFilePath = exports.shouldGenerateA11yReport = void 0;
15
+ exports.uuvGetContext = exports.getA11yResultFilePath = exports.shouldGenerateA11yReport = void 0;
16
+ exports.uuvCheckContextWithinFocusedElement = uuvCheckContextWithinFocusedElement;
17
+ exports.uuvPatchContext = uuvPatchContext;
18
+ exports.uuvFindAllByRole = uuvFindAllByRole;
19
+ exports.uuvFindByRole = uuvFindByRole;
20
+ exports.uuvFindByLabelText = uuvFindByLabelText;
21
+ exports.uuvFindByText = uuvFindByText;
22
+ exports.uuvFindByTestId = uuvFindByTestId;
23
+ exports.uuvFoundedElement = uuvFoundedElement;
24
+ exports.pressKey = pressKey;
16
25
  const runner_commons_1 = require("@uuv/runner-commons");
17
26
  const contextAlias = "context";
18
27
  const foundedChildElementAlias = "foundedChildElement";
@@ -38,7 +47,6 @@ function uuvCheckContextWithinFocusedElement(dontThrowError = false) {
38
47
  return context;
39
48
  });
40
49
  }
41
- exports.uuvCheckContextWithinFocusedElement = uuvCheckContextWithinFocusedElement;
42
50
  /* eslint-disable @typescript-eslint/no-explicit-any */
43
51
  function uuvPatchContext(partOfContext) {
44
52
  return cy.get(`@${contextAlias}`).then(context => {
@@ -48,7 +56,6 @@ function uuvPatchContext(partOfContext) {
48
56
  }).as(contextAlias);
49
57
  });
50
58
  }
51
- exports.uuvPatchContext = uuvPatchContext;
52
59
  /* eslint-disable @typescript-eslint/no-explicit-any */
53
60
  function addContextOptions(context, roleOptions) {
54
61
  const retour = {
@@ -75,15 +82,12 @@ function abstractFindBy(callBackFunction, inputToSearch, inputOptions) {
75
82
  function uuvFindAllByRole(role, roleOptions) {
76
83
  return abstractFindBy(cy.findAllByRole, role, roleOptions);
77
84
  }
78
- exports.uuvFindAllByRole = uuvFindAllByRole;
79
85
  function uuvFindByRole(role, roleOptions) {
80
86
  return abstractFindBy(cy.findByRole, role, roleOptions);
81
87
  }
82
- exports.uuvFindByRole = uuvFindByRole;
83
88
  function uuvFindByLabelText(labelTextToSearch, roleOptions) {
84
89
  return abstractFindBy(cy.findByLabelText, labelTextToSearch, roleOptions);
85
90
  }
86
- exports.uuvFindByLabelText = uuvFindByLabelText;
87
91
  function uuvFindByText(textToSearch, roleOptions) {
88
92
  return abstractFindBy(cy.findByText, (content, element) => {
89
93
  const hasText = (elem) => elem.textContent === textToSearch;
@@ -92,18 +96,15 @@ function uuvFindByText(textToSearch, roleOptions) {
92
96
  return elementHasText && childrenDontHaveText;
93
97
  }, roleOptions);
94
98
  }
95
- exports.uuvFindByText = uuvFindByText;
96
99
  function uuvFindByTestId(testId) {
97
100
  return abstractFindBy(cy.findByTestId, testId, {});
98
101
  }
99
- exports.uuvFindByTestId = uuvFindByTestId;
100
102
  function uuvFoundedElement(subject) {
101
103
  return cy.get(`@${foundedChildElementAlias}`)
102
104
  .then((response) => {
103
105
  return response !== "empty" && response !== null ? response.foundedChildElement : subject;
104
106
  });
105
107
  }
106
- exports.uuvFoundedElement = uuvFoundedElement;
107
108
  function pressKey(key) {
108
109
  switch (key) {
109
110
  case runner_commons_1.KEY_PRESS.TAB:
@@ -129,4 +130,3 @@ function pressKey(key) {
129
130
  break;
130
131
  }
131
132
  }
132
- exports.pressKey = pressKey;
@@ -12,7 +12,16 @@
12
12
  * understanding English or French.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.click = exports.findWithRoleAndNameAndAttribute = exports.findWithRoleAndNameAndContentEnable = exports.findWithRoleAndNameAndContentDisable = exports.findWithRoleAndNameAndContent = exports.notFoundWithRoleAndName = exports.withinRoleAndName = exports.findWithRoleAndNameFocused = exports.findWithRoleAndName = exports.assertTextContent = void 0;
15
+ exports.assertTextContent = assertTextContent;
16
+ exports.findWithRoleAndName = findWithRoleAndName;
17
+ exports.findWithRoleAndNameFocused = findWithRoleAndNameFocused;
18
+ exports.withinRoleAndName = withinRoleAndName;
19
+ exports.notFoundWithRoleAndName = notFoundWithRoleAndName;
20
+ exports.findWithRoleAndNameAndContent = findWithRoleAndNameAndContent;
21
+ exports.findWithRoleAndNameAndContentDisable = findWithRoleAndNameAndContentDisable;
22
+ exports.findWithRoleAndNameAndContentEnable = findWithRoleAndNameAndContentEnable;
23
+ exports.findWithRoleAndNameAndAttribute = findWithRoleAndNameAndAttribute;
24
+ exports.click = click;
16
25
  const _context_1 = require("./_context");
17
26
  const a11y_1 = require("@uuv/a11y");
18
27
  const __common_1 = require("./_.common");
@@ -34,11 +43,9 @@ function assertTextContent(response, expectedTextContent) {
34
43
  assert.equal(response[0].value, expectedTextContent);
35
44
  }
36
45
  }
37
- exports.assertTextContent = assertTextContent;
38
46
  function findWithRoleAndName(role, name) {
39
47
  findByRoleAndName(role, name);
40
48
  }
41
- exports.findWithRoleAndName = findWithRoleAndName;
42
49
  function findWithRoleAndNameFocused(role, name) {
43
50
  findByRoleAndName(role, name)
44
51
  .then(foundElement => {
@@ -47,7 +54,6 @@ function findWithRoleAndNameFocused(role, name) {
47
54
  });
48
55
  });
49
56
  }
50
- exports.findWithRoleAndNameFocused = findWithRoleAndNameFocused;
51
57
  function withinRoleAndName(role, name) {
52
58
  const foundedElement = cy.uuvFindByRole(role, { name, hidden: true })
53
59
  .uuvFoundedElement()
@@ -56,12 +62,10 @@ function withinRoleAndName(role, name) {
56
62
  withinFocusedElement: foundedElement
57
63
  });
58
64
  }
59
- exports.withinRoleAndName = withinRoleAndName;
60
65
  function notFoundWithRoleAndName(role, name) {
61
66
  cy.uuvFindByRole(role, { name })
62
67
  .should("not.exist");
63
68
  }
64
- exports.notFoundWithRoleAndName = notFoundWithRoleAndName;
65
69
  function findWithRoleAndNameAndContent(expectedRole, name, expectedTextContent) {
66
70
  cy.uuvFindByRole(expectedRole, { name })
67
71
  .uuvFoundedElement()
@@ -71,7 +75,6 @@ function findWithRoleAndNameAndContent(expectedRole, name, expectedTextContent)
71
75
  assertTextContent(response, expectedTextContent);
72
76
  });
73
77
  }
74
- exports.findWithRoleAndNameAndContent = findWithRoleAndNameAndContent;
75
78
  function findWithRoleAndNameAndContentDisable(expectedRole, name, expectedTextContent) {
76
79
  cy.uuvFindByRole(expectedRole, { name })
77
80
  .uuvFoundedElement()
@@ -83,7 +86,6 @@ function findWithRoleAndNameAndContentDisable(expectedRole, name, expectedTextCo
83
86
  .invoke("attr", "disabled")
84
87
  .should("eq", "disabled");
85
88
  }
86
- exports.findWithRoleAndNameAndContentDisable = findWithRoleAndNameAndContentDisable;
87
89
  function findWithRoleAndNameAndContentEnable(expectedRole, name, expectedTextContent) {
88
90
  cy.uuvFindByRole(expectedRole, { name })
89
91
  .uuvFoundedElement()
@@ -95,7 +97,6 @@ function findWithRoleAndNameAndContentEnable(expectedRole, name, expectedTextCon
95
97
  .invoke("attr", "disabled")
96
98
  .should("eq", undefined);
97
99
  }
98
- exports.findWithRoleAndNameAndContentEnable = findWithRoleAndNameAndContentEnable;
99
100
  function findWithRoleAndNameAndAttribute(expectedRole, name, attributeName, attributeValue) {
100
101
  cy.uuvFindByRole(expectedRole, { name })
101
102
  .uuvFoundedElement()
@@ -104,7 +105,6 @@ function findWithRoleAndNameAndAttribute(expectedRole, name, attributeName, attr
104
105
  assert.equal(elements[0][attributeName], attributeValue);
105
106
  });
106
107
  }
107
- exports.findWithRoleAndNameAndAttribute = findWithRoleAndNameAndAttribute;
108
108
  function findByRoleAndName(role, name) {
109
109
  return cy.uuvFindByRole(role, { name })
110
110
  .uuvFoundedElement()
@@ -122,4 +122,3 @@ function click(role, name) {
122
122
  }
123
123
  });
124
124
  }
125
- exports.click = click;
@@ -1,2 +1 @@
1
- /// <reference types="cypress" />
2
1
  export declare function setupNodeEvents(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Promise<Cypress.PluginConfigOptions>;
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
28
38
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.setupNodeEvents = void 0;
39
+ exports.setupNodeEvents = setupNodeEvents;
30
40
  const webpack = __importStar(require("@cypress/webpack-preprocessor"));
31
41
  const cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-preprocessor");
32
42
  const fs_1 = __importDefault(require("fs"));
@@ -146,4 +156,3 @@ async function setupNodeEvents(on, config) {
146
156
  // Make sure to return the config object as it might have been modified by the plugin.
147
157
  return config;
148
158
  }
149
- exports.setupNodeEvents = setupNodeEvents;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.main = void 0;
4
+ exports.main = main;
5
5
  const runner_commons_1 = require("@uuv/runner-commons");
6
6
  const runner_cypress_1 = require("./runner-cypress");
7
7
  /**
@@ -20,4 +20,3 @@ async function main(projectDir = "./uuv") {
20
20
  const engine = new runner_commons_1.UUVCliEngine(new runner_cypress_1.UUVCliCypressRunner(projectDir));
21
21
  engine.execute();
22
22
  }
23
- exports.main = main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/cypress",
3
- "version": "2.40.0",
3
+ "version": "2.42.0",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A solution to facilitate the writing and execution of E2E tests understandable by any human being using cucumber(BDD) and cypress",
@@ -47,11 +47,11 @@
47
47
  "@badeball/cypress-cucumber-preprocessor": "20.1.2",
48
48
  "@cypress/webpack-preprocessor": "6.0.2",
49
49
  "@testing-library/cypress": "10.0.2",
50
- "@uuv/a11y": "1.0.0-beta.52",
51
- "@uuv/runner-commons": "2.35.0",
50
+ "@uuv/a11y": "1.0.0-beta.54",
51
+ "@uuv/runner-commons": "2.36.1",
52
52
  "axe-core": "4.10.2",
53
53
  "chai-subset": "^1.6.0",
54
- "cypress": "13.15.2",
54
+ "cypress": "13.16.0",
55
55
  "cypress-axe": "1.5.0",
56
56
  "cypress-real-events": "^1.10.0",
57
57
  "is-admin": "4.0.0",
@@ -59,7 +59,7 @@
59
59
  "multiple-cucumber-html-reporter": "3.8.0",
60
60
  "path-browserify": "^1.0.1",
61
61
  "ts-node": "10.9.2",
62
- "typescript": "5.4.5",
62
+ "typescript": "5.7.2",
63
63
  "webpack": "5.94.0"
64
64
  },
65
65
  "types": "./dist/index.d.ts",