Files
crowd-fund-web/cypress.github.js
T
Santiago de la Fuente 5ff202b7db Add Cypress E2E tests and GitHub Actions workflow
Introduce Cypress E2E tests with multiple scenarios for the homepage and configure them for CI via GitHub Actions. Updated `package.json` scripts, added Cypress and related dependencies, and modified the lockfile to include the necessary packages.
2025-05-20 01:31:20 -03:00

29 lines
850 B
JavaScript

/**
* Configuración específica para GitHub Actions
* Esta configuración se fusiona con cypress.config.js cuando se ejecuta en entorno CI
*
* Para usar: CYPRESS_CONFIG_FILE=cypress.github.js pnpm cypress run
*/
import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
baseUrl: "http://localhost:4321",
screenshotOnRunFailure: true,
video: true,
videoCompression: 32,
viewportWidth: 1280,
viewportHeight: 720,
retries: {
runMode: 2, // Reintentar los tests fallidos 2 veces en modo headless
openMode: 0, // No reintentar en modo interactivo
},
setupNodeEvents(on, config) {
console.log("Ejecutando Cypress en GitHub Actions");
config.env.CI = true;
return config;
},
},
});