
* first draft * fixed data-test-id * done * restore port for cypress * change email * pr improvments * add csv check * adjustments * added check for xlsx * change name * change name * remove cy log * remove cy log * add yaml cypress mailhog var
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/* eslint-disable no-console */
|
|
const { defineConfig } = require("cypress");
|
|
const fs = require("fs");
|
|
|
|
module.exports = defineConfig({
|
|
projectId: "51ef7c",
|
|
chromeWebSecurity: false,
|
|
defaultCommandTimeout: 20000,
|
|
requestTimeout: 20000,
|
|
viewportWidth: 1400,
|
|
viewportHeight: 660,
|
|
retries: {
|
|
runMode: 1,
|
|
openMode: 0,
|
|
},
|
|
e2e: {
|
|
env: {
|
|
grepFilterSpecs: true,
|
|
},
|
|
setupNodeEvents(on, config) {
|
|
config = require("./cypress/support/cypress-grep/plugin")(config);
|
|
config = require("./cypress/plugins/index.js")(on, config);
|
|
on("after:spec", (spec, results) => {
|
|
if (results && results.video) {
|
|
return fs.unlink(results.video, function(err) {
|
|
if (err) {
|
|
console.warn(`Could not remove video - ${err}`);
|
|
} else {
|
|
console.log("File removed:", results.video);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return config;
|
|
},
|
|
baseUrl: "http://localhost:4173/",
|
|
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
|
|
},
|
|
});
|