mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-25 14:45:20 +00:00
- Reduce individual API wait timeouts from 30s to 15s to prevent long hangs - Add project loading intercepts to improve synchronization - Reduce global Cypress timeouts to fail faster instead of hanging - Apply improved error handling in task overview and subtask tests - Update timeout values in cypress.config.ts for better CI performance This should prevent tests from timing out at GitHub Actions 25min limit.
34 lines
695 B
TypeScript
34 lines
695 B
TypeScript
import {defineConfig} from 'cypress'
|
|
|
|
export default defineConfig({
|
|
env: {
|
|
API_URL: 'http://localhost:3456/api/v1',
|
|
TEST_SECRET: 'averyLongSecretToSe33dtheDB',
|
|
},
|
|
video: false,
|
|
retries: {
|
|
runMode: 2,
|
|
},
|
|
projectId: '181c7x',
|
|
e2e: {
|
|
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
|
|
baseUrl: 'http://127.0.0.1:4173',
|
|
experimentalRunAllSpecs: true,
|
|
// testIsolation: false,
|
|
},
|
|
component: {
|
|
devServer: {
|
|
framework: 'vue',
|
|
bundler: 'vite',
|
|
},
|
|
},
|
|
viewportWidth: 1600,
|
|
viewportHeight: 900,
|
|
experimentalMemoryManagement: true,
|
|
defaultCommandTimeout: 20000,
|
|
requestTimeout: 30000,
|
|
responseTimeout: 30000,
|
|
pageLoadTimeout: 30000,
|
|
taskTimeout: 300000,
|
|
})
|