salix-front/cypress.config.js

53 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-12-21 08:19:29 +00:00
const { defineConfig } = require('cypress');
2024-10-18 11:51:41 +00:00
const {
injectQuasarDevServerConfig,
} = require('@quasar/quasar-app-extension-testing-e2e-cypress/cct-dev-server');
2022-12-20 13:59:53 +00:00
module.exports = defineConfig({
2024-10-19 23:46:20 +00:00
env: {
baseUrl: 'http://localhost:9000/',
},
2022-12-21 08:19:29 +00:00
e2e: {
2023-02-22 13:55:29 +00:00
baseUrl: 'http://localhost:9000/',
experimentalStudio: true,
2023-01-03 13:17:22 +00:00
fixturesFolder: 'test/cypress/fixtures',
screenshotsFolder: 'test/cypress/screenshots',
supportFile: 'test/cypress/support/index.js',
videosFolder: 'test/cypress/videos',
video: false,
2023-11-09 09:29:28 +00:00
specPattern: 'test/cypress/integration/**/*.spec.js',
2023-01-03 13:17:22 +00:00
experimentalRunAllSpecs: true,
2022-12-21 08:19:29 +00:00
component: {
componentFolder: 'src',
testFiles: '**/*.spec.js',
2023-01-03 13:17:22 +00:00
supportFile: 'test/cypress/support/unit.js',
2022-12-21 08:19:29 +00:00
},
setupNodeEvents(on, config) {
// implement node event listeners here
2024-10-18 11:51:41 +00:00
on('after:spec', (results) => {
// `results` is the tests results
console.error('results: ', results);
cy.exec('cd ../salix && gulp docker');
});
2022-12-21 08:19:29 +00:00
},
2022-12-20 13:59:53 +00:00
},
2024-04-16 12:12:02 +00:00
component: {
2024-09-27 07:58:23 +00:00
indexHtmlFile: 'test/cypress/support/component-index.html',
supportFile: 'test/cypress/support/component.js',
2024-09-26 23:02:52 +00:00
specPattern: 'test/cypress/components/**/*.spec.js',
2024-10-19 23:46:20 +00:00
devServer: {
framework: 'quasar',
bundler: 'vite',
},
2024-10-18 11:51:41 +00:00
setupNodeEvents(on, config) {
// implement node event listeners here
on('after:spec', (results) => {
// `results` is the tests results
console.error('results: ', results);
cy.exec('cd ../salix && gulp docker');
});
2024-04-16 12:12:02 +00:00
},
},
2022-12-20 13:59:53 +00:00
});