53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
const { defineConfig } = require('cypress');
|
|
const {
|
|
injectQuasarDevServerConfig,
|
|
} = require('@quasar/quasar-app-extension-testing-e2e-cypress/cct-dev-server');
|
|
|
|
module.exports = defineConfig({
|
|
env: {
|
|
baseUrl: 'http://localhost:9000/',
|
|
},
|
|
e2e: {
|
|
baseUrl: 'http://localhost:9000/',
|
|
experimentalStudio: true,
|
|
fixturesFolder: 'test/cypress/fixtures',
|
|
screenshotsFolder: 'test/cypress/screenshots',
|
|
supportFile: 'test/cypress/support/index.js',
|
|
videosFolder: 'test/cypress/videos',
|
|
video: false,
|
|
specPattern: 'test/cypress/integration/**/*.spec.js',
|
|
experimentalRunAllSpecs: true,
|
|
component: {
|
|
componentFolder: 'src',
|
|
testFiles: '**/*.spec.js',
|
|
supportFile: 'test/cypress/support/unit.js',
|
|
},
|
|
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');
|
|
});
|
|
},
|
|
},
|
|
|
|
component: {
|
|
indexHtmlFile: 'test/cypress/support/component-index.html',
|
|
supportFile: 'test/cypress/support/component.js',
|
|
specPattern: 'test/cypress/components/**/*.spec.js',
|
|
devServer: {
|
|
framework: 'quasar',
|
|
bundler: 'vite',
|
|
},
|
|
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');
|
|
});
|
|
},
|
|
},
|
|
});
|