Skip to content

Commit

Permalink
test(cypress): Adjust specPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Oct 29, 2022
1 parent 4aa41ab commit 67c98f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = defineConfig({
viewportWidth: 1280,
defaultCommandTimeout: 8888,
chromeWebSecurity: false,
videoUploadOnPasses: false,
screenshotOnRunFailure: false,
reporter: 'junit',
video: true,
retries: {
Expand All @@ -18,9 +20,11 @@ module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// e2e testing node events setup code
require('@cypress/code-coverage/task')(on, config);
return config;
},
baseUrl: 'http://localhost:3000',
specPattern: '../**/cypress/e2e/**/*.cy.js',
// excludeSpecPattern:
// '../../../node_modules/@eeacms/volto-slate-zotero/cypress/e2e/**/*.js',
fixturesFolder: '../volto-slate-zotero/cypress/fixtures',
},
});
4 changes: 2 additions & 2 deletions cypress.eeacms.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ module.exports = defineConfig({
// e2e testing node events setup code
},
baseUrl: 'http://localhost:3000',
specPattern: '../../../node_modules/@eeacms/**/cypress/e2e/**/*.js',
specPattern: '../../../node_modules/@eeacms/**/cypress/e2e/**/*.cy.js',
excludeSpecPattern:
'../../../node_modules/@eeacms/volto-slate-zotero/cypress/e2e/**/*.js',
'../../../node_modules/@eeacms/volto-slate-zotero/cypress/e2e/**/*.cy.js',
fixturesFolder:
'../../../node_modules/@eeacms/volto-slate-zotero/cypress/fixtures',
},
Expand Down

0 comments on commit 67c98f5

Please sign in to comment.