Skip to content

Commit

Permalink
test(cypress): Fail fast
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Oct 31, 2022
1 parent 19c7f80 commit bc43206
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
// e2e testing node events setup code
require('@cypress/code-coverage/task')(on, config);
require('cypress-fail-fast/plugin')(on, config);
return config;
},
baseUrl: 'http://localhost:3000',
Expand Down
3 changes: 3 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import './commands';
//Generate code-coverage
import '@cypress/code-coverage/support';

// Fail Fast
import "cypress-fail-fast";

export const slateBeforeEach = (contentType = 'Document') => {
cy.autologin();
cy.createContent({
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"@cypress/code-coverage": "^3.10.0",
"@plone/scripts": "*",
"babel-plugin-transform-class-properties": "^6.24.1",
"cypress-fail-fast": "^5.0.1",
"md5": "^2.3.0"
},
"scripts": {
Expand Down

0 comments on commit bc43206

Please sign in to comment.