diff --git a/cypressBrowserify.config.js b/cypressBrowserify.config.js index b682e97b..eaf7d76c 100644 --- a/cypressBrowserify.config.js +++ b/cypressBrowserify.config.js @@ -9,6 +9,7 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { + require("cypress-fail-fast/plugin")(on, config); return require('./cypressBrowserify/plugins/index.js')(on, config) }, specPattern: 'src//**/*.test.js', diff --git a/cypressVite.config.js b/cypressVite.config.js index a239da96..63cf367c 100644 --- a/cypressVite.config.js +++ b/cypressVite.config.js @@ -9,6 +9,7 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { + require("cypress-fail-fast/plugin")(on, config); return require('./cypressVite/plugins/index.js')(on, config) }, specPattern: 'src//**/*.test.js', diff --git a/cypressWebpack.config.js b/cypressWebpack.config.js index b03108f9..9734ac02 100644 --- a/cypressWebpack.config.js +++ b/cypressWebpack.config.js @@ -10,6 +10,7 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { + require("cypress-fail-fast/plugin")(on, config); return require('./cypressWebpack/plugins/index.js')(on, config) }, specPattern: 'src//**/*.test.js', diff --git a/docker/cypress b/docker/cypress index e7fd8cc1..3852c133 100644 --- a/docker/cypress +++ b/docker/cypress @@ -1,4 +1,4 @@ -FROM cypress/included:13.7.0 +FROM cypress/included:13.9.0 WORKDIR code COPY package.json package.json @@ -15,4 +15,4 @@ COPY cypressWebpack.config.js cypressWebpack.config.js COPY cypressBrowserify.config.js cypressBrowserify.config.js COPY cypressVite cypressVite COPY cypressVite.config.js cypressVite.config.js -ENTRYPOINT cypress run --config-file cypressWebpack.config.js --browser edge && cypress run --config-file cypressWebpack.config.js --browser chrome && cypress run --config-file cypressWebpack.config.js \ No newline at end of file +ENTRYPOINT cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js --browser edge && cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js --browser chrome && cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js \ No newline at end of file diff --git a/docker/cypressHttps b/docker/cypressHttps index 5f655ae9..34a6b867 100644 --- a/docker/cypressHttps +++ b/docker/cypressHttps @@ -1,4 +1,4 @@ -FROM cypress/included:13.7.0 +FROM cypress/included:13.9.0 WORKDIR code COPY package.json package.json @@ -13,4 +13,4 @@ COPY cypressWebpack cypressWebpack COPY cypressBrowserify cypressBrowserify COPY cypressWebpack.config.js cypressWebpack.config.js COPY cypressBrowserify.config.js cypressBrowserify.config.js -ENTRYPOINT cypress run --config-file cypressWebpack.config.js --browser edge && cypress run --config-file cypressWebpack.config.js --browser chrome && cypress run --config-file cypressWebpack.config.js \ No newline at end of file +ENTRYPOINT cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js --browser edge && cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js --browser chrome && cypress run -e CASS_LOOPBACK=${CASS_LOOPBACK} --config-file cypressWebpack.config.js \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 93a2f3b4..09f016c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "concurrently": "^9.0.1", "convert-hrtime": "^5.0.0", "cypress": "^13.14.2", + "cypress-fail-fast": "^7.1.1", "eslint": "^9.11.0", "mocha": "^10.7.3", "node-polyfill-webpack-plugin": "^2.0.1", @@ -4419,6 +4420,91 @@ "node": "^16.0.0 || ^18.0.0 || >=20.0.0" } }, + "node_modules/cypress-fail-fast": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/cypress-fail-fast/-/cypress-fail-fast-7.1.1.tgz", + "integrity": "sha512-9qPXikVY20OWdc97DO2++0AS4IF9kB+vuPhP8/0wXchcnFIsiCiwvQhOEBSdVHr1mZi87h0Z8jYEB4VLPzNkGg==", + "dev": true, + "dependencies": { + "chalk": "4.1.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "cypress": ">=8.0.0" + } + }, + "node_modules/cypress-fail-fast/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cypress-fail-fast/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cypress-fail-fast/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/cypress-fail-fast/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/cypress-fail-fast/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cypress-fail-fast/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/cypress/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", diff --git a/package.json b/package.json index 64852a75..07efd050 100644 --- a/package.json +++ b/package.json @@ -153,6 +153,7 @@ "concurrently": "^9.0.1", "convert-hrtime": "^5.0.0", "cypress": "^13.14.2", + "cypress-fail-fast": "^7.1.1", "eslint": "^9.11.0", "mocha": "^10.7.3", "node-polyfill-webpack-plugin": "^2.0.1",