diff --git a/cypress.config.js b/cypress.config.js index f058a3be1..a7d6e42a1 100755 --- a/cypress.config.js +++ b/cypress.config.js @@ -15,6 +15,10 @@ module.exports = defineConfig({ setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config) }, + setupNodeEvents(on, config) { + require("cypress-fail-fast/plugin")(on, config); + return config; + }, excludeSpecPattern: ['index.php'], specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', }, diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 59df16c1d..361812f7a 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -49,3 +49,4 @@ Cypress.on('uncaught:exception', (err, runnable) => { Cypress.Keyboard.defaults({ keystrokeDelay: 0, }) +import "cypress-fail-fast"; diff --git a/package-lock.json b/package-lock.json index 202ea06f3..65314c5d4 100755 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "ISC", "devDependencies": { "cypress": "^12.8.1", + "cypress-fail-fast": "^7.0.0", "cypress-iframe": "^1.0.1", "cypress-testrail": "^2.6.0", "human-signals": "^3.0.1" @@ -747,6 +748,21 @@ "node": "^14.0.0 || ^16.0.0 || >=18.0.0" } }, + "node_modules/cypress-fail-fast": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cypress-fail-fast/-/cypress-fail-fast-7.0.0.tgz", + "integrity": "sha512-N8ei7clcqSWD4jrRMO6zPzSWcQTabGdnkIJBPCcnYYrlNyqsO3xFSGo6x796cR5soqetv10LCTJyCbvqNniUyA==", + "dev": true, + "dependencies": { + "chalk": "4.1.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "cypress": ">=8.0.0" + } + }, "node_modules/cypress-iframe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cypress-iframe/-/cypress-iframe-1.0.1.tgz", @@ -2631,6 +2647,15 @@ "yauzl": "^2.10.0" } }, + "cypress-fail-fast": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cypress-fail-fast/-/cypress-fail-fast-7.0.0.tgz", + "integrity": "sha512-N8ei7clcqSWD4jrRMO6zPzSWcQTabGdnkIJBPCcnYYrlNyqsO3xFSGo6x796cR5soqetv10LCTJyCbvqNniUyA==", + "dev": true, + "requires": { + "chalk": "4.1.2" + } + }, "cypress-iframe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cypress-iframe/-/cypress-iframe-1.0.1.tgz", diff --git a/package.json b/package.json index ad92e44e9..1d0936e42 100755 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "homepage": "https://github.com/mollie/PrestaShop#readme", "devDependencies": { "cypress": "^12.8.1", + "cypress-fail-fast": "^7.0.0", "cypress-iframe": "^1.0.1", "cypress-testrail": "^2.6.0", "human-signals": "^3.0.1"