Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: cypress reports generation (#6894)

Pa1NarK81b324caf1be
diff --git a/cypress-tests/cypress.config.js b/cypress-tests/cypress.config.js
index 56f6887761..a501f7b3e8 100644
--- a/cypress-tests/cypress.config.js
+++ b/cypress-tests/cypress.config.js
@@ -1,5 +1,5 @@
import { defineConfig } from "cypress";
-import "cypress-mochawesome-reporter/plugin.js";
+import mochawesome from "cypress-mochawesome-reporter/plugin.js";
let globalState;
@@ -10,7 +10,9 @@ const reportName = process.env.REPORT_NAME || `${connectorId}_report`;
export default defineConfig({
e2e: {
- setupNodeEvents(on) {
+ setupNodeEvents(on, config) {
+ mochawesome(on);
+
on("task", {
setGlobalState: (val) => {
return (globalState = val || {});
@@ -26,6 +28,8 @@ export default defineConfig({
return null;
},
});
+
+ return config;
},
experimentalRunAllSpecs: true,
@@ -43,6 +47,5 @@ export default defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 10000,
pageLoadTimeout: 20000,
-
screenshotsFolder: screenshotsFolderName,
});
diff --git a/cypress-tests/package-lock.json b/cypress-tests/package-lock.json
index a2c2c4b8fb..9fb61a5da8 100644
--- a/cypress-tests/package-lock.json
+++ b/cypress-tests/package-lock.json
@@ -9,16 +9,16 @@
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
- "@eslint/js": "^9.16.0",
- "cypress": "^13.16.0",
+ "@eslint/js": "^9.17.0",
+ "cypress": "^13.17.0",
"cypress-mochawesome-reporter": "^3.8.2",
- "eslint": "^9.16.0",
+ "eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-prettier": "^5.2.1",
- "globals": "^15.13.0",
+ "globals": "^15.14.0",
"jsqr": "^1.4.0",
- "prettier": "^3.4.1"
+ "prettier": "^3.4.2"
}
},
"node_modules/@colors/colors": {
@@ -188,9 +188,9 @@
}
},
"node_modules/@eslint/js": {
- "version": "9.16.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz",
- "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==",
+ "version": "9.17.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.17.0.tgz",
+ "integrity": "sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==",
"dev": true,
"license": "MIT",
"engines": {
@@ -1019,9 +1019,9 @@
}
},
"node_modules/cypress": {
- "version": "13.16.0",
- "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.16.0.tgz",
- "integrity": "sha512-g6XcwqnvzXrqiBQR/5gN+QsyRmKRhls1y5E42fyOvsmU7JuY+wM6uHJWj4ZPttjabzbnRvxcik2WemR8+xT6FA==",
+ "version": "13.17.0",
+ "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.17.0.tgz",
+ "integrity": "sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
@@ -1331,9 +1331,9 @@
}
},
"node_modules/eslint": {
- "version": "9.16.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz",
- "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==",
+ "version": "9.17.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.17.0.tgz",
+ "integrity": "sha512-evtlNcpJg+cZLcnVKwsai8fExnqjGPicK7gnUtlNuzu+Fv9bI0aLpND5T44VLQtoMEnI57LoXO9XAkIXwohKrA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1342,7 +1342,7 @@
"@eslint/config-array": "^0.19.0",
"@eslint/core": "^0.9.0",
"@eslint/eslintrc": "^3.2.0",
- "@eslint/js": "9.16.0",
+ "@eslint/js": "9.17.0",
"@eslint/plugin-kit": "^0.2.3",
"@humanfs/node": "^0.16.6",
"@humanwhocodes/module-importer": "^1.0.1",
@@ -1351,7 +1351,7 @@
"@types/json-schema": "^7.0.15",
"ajv": "^6.12.4",
"chalk": "^4.0.0",
- "cross-spawn": "^7.0.5",
+ "cross-spawn": "^7.0.6",
"debug": "^4.3.2",
"escape-string-regexp": "^4.0.0",
"eslint-scope": "^8.2.0",
@@ -1987,9 +1987,9 @@
}
},
"node_modules/globals": {
- "version": "15.13.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-15.13.0.tgz",
- "integrity": "sha512-49TewVEz0UxZjr1WYYsWpPrhyC/B/pA8Bq0fUmet2n+eR7yn0IvNzNaoBwnK6mdkzcN+se7Ez9zUgULTz2QH4g==",
+ "version": "15.14.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-15.14.0.tgz",
+ "integrity": "sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==",
"dev": true,
"license": "MIT",
"engines": {
@@ -3388,9 +3388,9 @@
}
},
"node_modules/prettier": {
- "version": "3.4.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.1.tgz",
- "integrity": "sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==",
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz",
+ "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==",
"dev": true,
"license": "MIT",
"bin": {
diff --git a/cypress-tests/package.json b/cypress-tests/package.json
index ff168f61ef..7032a72fb0 100644
--- a/cypress-tests/package.json
+++ b/cypress-tests/package.json
@@ -19,15 +19,15 @@
"author": "Hyperswitch",
"license": "ISC",
"devDependencies": {
- "@eslint/js": "^9.16.0",
- "cypress": "^13.16.0",
+ "@eslint/js": "^9.17.0",
+ "cypress": "^13.17.0",
"cypress-mochawesome-reporter": "^3.8.2",
- "eslint": "^9.16.0",
+ "eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-prettier": "^5.2.1",
- "globals": "^15.13.0",
+ "globals": "^15.14.0",
"jsqr": "^1.4.0",
- "prettier": "^3.4.1"
+ "prettier": "^3.4.2"
}
}