@uuv/cypress 2.78.0 → 2.78.1

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,10 @@
1
+ ## [2.78.1](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.78.0...runner-cypress-v2.78.1) (2026-02-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **runner-cypress:** use cypress-on-fix for multiple hooks, [#1214](https://github.com/e2e-test-quest/uuv/issues/1214) ([bff79c8](https://github.com/e2e-test-quest/uuv/commit/bff79c8a332bd8f270301623d5ab519c585bcea4))
7
+
1
8
  # [2.78.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.77.0...runner-cypress-v2.78.0) (2026-02-08)
2
9
 
3
10
 
@@ -1 +1 @@
1
- export declare function setupNodeEvents(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Promise<Cypress.PluginConfigOptions>;
1
+ export declare function setupNodeEvents(cypressOn: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Promise<Cypress.PluginConfigOptions>;
@@ -42,8 +42,10 @@ const cypress_cucumber_preprocessor_1 = require("@badeball/cypress-cucumber-prep
42
42
  const fs_1 = __importDefault(require("fs"));
43
43
  const event_1 = require("@uuv/runner-commons/runner/event");
44
44
  const path_1 = __importDefault(require("path"));
45
- async function setupNodeEvents(on, config) {
45
+ async function setupNodeEvents(cypressOn, config) {
46
46
  const startedFile = [];
47
+ // https://github.com/bahmutov/cypress-on-fix
48
+ const on = require("cypress-on-fix")(cypressOn);
47
49
  await (0, cypress_cucumber_preprocessor_1.addCucumberPreprocessorPlugin)(on, config);
48
50
  await event_1.UUVListenerHelper.build();
49
51
  on("file:preprocessor", webpack.default({
@@ -84,7 +86,6 @@ async function setupNodeEvents(on, config) {
84
86
  },
85
87
  }));
86
88
  on("before:run", async () => {
87
- await (0, cypress_cucumber_preprocessor_1.beforeRunHandler)(config);
88
89
  // eslint-disable-next-line dot-notation
89
90
  const a11yReportFilePath = config.env["uuvOptions"].report.a11y.outputFile;
90
91
  // eslint-disable-next-line dot-notation
@@ -96,12 +97,10 @@ async function setupNodeEvents(on, config) {
96
97
  event_1.UUVEventEmitter.getInstance().emitProgressStart();
97
98
  });
98
99
  on("after:run", async (results) => {
99
- await (0, cypress_cucumber_preprocessor_1.afterRunHandler)(config, results);
100
100
  event_1.UUVEventEmitter.getInstance().emitProgressFinish();
101
101
  });
102
102
  on("before:spec", async (spec) => {
103
103
  if (!startedFile.includes(spec.absolute)) {
104
- await (0, cypress_cucumber_preprocessor_1.beforeSpecHandler)(config, spec);
105
104
  event_1.UUVEventEmitter.getInstance().emitTestSuiteStarted({
106
105
  testSuiteName: spec.name,
107
106
  testSuitelocation: spec.absolute
@@ -110,7 +109,6 @@ async function setupNodeEvents(on, config) {
110
109
  }
111
110
  });
112
111
  on("after:spec", async (spec, results) => {
113
- await (0, cypress_cucumber_preprocessor_1.afterSpecHandler)(config, spec, results);
114
112
  results?.tests?.forEach(test => {
115
113
  event_1.UUVEventEmitter.getInstance().emitTestStarted({
116
114
  testName: test.title[1],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/cypress",
3
- "version": "2.78.0",
3
+ "version": "2.78.1",
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,12 +47,13 @@
47
47
  "@badeball/cypress-cucumber-preprocessor": "23.2.1",
48
48
  "@cypress/webpack-preprocessor": "7.0.2",
49
49
  "@testing-library/cypress": "10.1.0",
50
- "@uuv/a11y": "1.0.0-beta.92",
51
- "@uuv/runner-commons": "2.72.0",
50
+ "@uuv/a11y": "1.0.0-beta.93",
51
+ "@uuv/runner-commons": "2.72.1",
52
52
  "axe-core": "4.11.1",
53
53
  "chai-subset": "^1.6.0",
54
54
  "cypress": "15.10.0",
55
55
  "cypress-axe": "1.7.0",
56
+ "cypress-on-fix": "^1.1.0",
56
57
  "cypress-real-events": "^1.10.0",
57
58
  "dom-accessibility-api": "^0.7.0",
58
59
  "is-admin": "4.0.0",