Skip to content

Commit

Permalink
fast-fail cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonasB88 committed Mar 21, 2023
1 parent c584c8c commit 890cbe3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
},
Expand Down
1 change: 1 addition & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ Cypress.on('uncaught:exception', (err, runnable) => {
Cypress.Keyboard.defaults({
keystrokeDelay: 0,
})
import "cypress-fail-fast";
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 890cbe3

Please sign in to comment.