ToolJet/cypress-tests/cypress-marketplace.config.js
2025-11-05 13:53:50 +05:30

51 lines
1.2 KiB
JavaScript

const { defineConfig } = require("cypress");
module.exports = defineConfig({
execTimeout: 1800000,
defaultCommandTimeout: 30000,
requestTimeout: 10000,
pageLoadTimeout: 20000,
responseTimeout: 10000,
viewportWidth: 1440,
viewportHeight: 960,
chromeWebSecurity: false,
e2e: {
setupNodeEvents(on, config) {
require("./cypress/config/tasks")(on);
require("./cypress/config/browserConfig")(on);
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://localhost:8082",
specPattern: [
"cypress/e2e/happyPath/marketplace/commonTestcases/**/*.cy.js",
],
testIsolation: true,
retries: {
runMode: 2,
openMode: 0,
},
redirectionLimit: 7,
numTestsKeptInMemory: 1,
experimentalMemoryManagement: true,
experimentalRunAllSpecs: true,
experimentalModifyObstructiveThirdPartyCode: true,
experimentalOriginDependencies: true,
experimentalSkipDomainInjection: ['localhost'],
downloadsFolder: "cypress/downloads",
trashAssetsBeforeRuns: true,
video: false,
videoUploadOnPasses: false,
screenshotOnRunFailure: true,
screenshotsFolder: 'cypress/screenshots',
coverage: false,
codeCoverageTasksRegistered: false,
},
});