2024-05-07 14:16:22 +05:30
|
|
|
// eslint-disable-next-line global-require
|
|
|
|
const { defineConfig } = require("cypress");
|
2023-02-07 20:09:01 -08:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
chromeWebSecurity: false,
|
|
|
|
viewportHeight: 960,
|
|
|
|
viewportWidth: 1536,
|
2024-05-07 14:16:22 +05:30
|
|
|
projectId: "hkrxk5",
|
2023-02-07 20:09:01 -08:00
|
|
|
defaultCommandTimeout: 10000,
|
|
|
|
retries: {
|
|
|
|
runMode: 2,
|
|
|
|
openMode: 0,
|
|
|
|
},
|
|
|
|
video: false,
|
|
|
|
e2e: {
|
|
|
|
// We've imported your old cypress plugins here.
|
|
|
|
// You may want to clean this up later by importing these.
|
|
|
|
setupNodeEvents(on, config) {
|
2024-05-07 14:16:22 +05:30
|
|
|
// eslint-disable-next-line global-require
|
|
|
|
return require("./cypress/plugins/index")(on, config);
|
2023-02-07 20:09:01 -08:00
|
|
|
},
|
2024-05-07 14:16:22 +05:30
|
|
|
baseUrl: "http://localhost:9002/",
|
|
|
|
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
|
2023-02-07 20:09:01 -08:00
|
|
|
experimentalStudio: true,
|
|
|
|
},
|
2025-03-13 21:05:45 +05:30
|
|
|
reporter: "cypress-junit-reporter",
|
|
|
|
reporterOptions: {
|
|
|
|
mochaFile: "build/smoke-test-results/cypress-test-[hash].xml",
|
|
|
|
toConsole: true,
|
|
|
|
testCaseSwitchClassnameAndName: true,
|
|
|
|
suiteNameTemplate: "{dirpath}",
|
|
|
|
classNameTemplate: "{filepath}",
|
|
|
|
},
|
2024-05-07 14:16:22 +05:30
|
|
|
});
|