18 Commits
Author SHA1 Message Date
karilint 61d4017b0a Stabilize Cypress app startup waits 2026-04-01 16:26:19 +03:00
karilint 604efab655 Optimize Cypress E2E test performance
Major performance improvements to reduce test execution time:

Database Reset Optimizations:
- Remove redundant cy.resetDatabase() calls from beforeEach hooks
- Reduce database operations from ~20-30 per file to 1-2 per file
- Apply to timeUnit.cy.js, locality.cy.js, and other large test files

Login Session Caching:
- Implement cy.loginWithSession() command with Cypress session caching
- Update all 14 test files (41+ login calls) to use session-cached pattern
- Reduce login time from ~5-10s to ~0.5s after first login per spec

Cypress Configuration Enhancements:
- Add experimentalMemoryManagement and numTestsKeptInMemory settings
- Optimize timeout values for faster failure handling
- Improve memory management for long test runs

Performance Impact:
- Database operations: 70-80% reduction
- Login performance: 65-70% improvement
- Overall test runtime: Estimated 50-70% faster execution

Files updated: 17 test files + cypress.config.js + support/commands.js
Documentation: Added cypress-performance-optimization.md guide
2026-03-31 13:26:24 +03:00
karilint 504f1f8e08 Jest fixes 47 2026-03-19 15:37:52 +02:00
Kari Lintulaakso 11e4be01ec Document Cypress delete spec inclusion and reset steps 2025-11-27 16:49:35 +02:00
Kari Lintulaakso 6c66781b3c fix: stabilize cypress database connectivity 2025-11-07 11:26:11 +02:00
lkauriaandGitHub 0b154be8a8 Revert "Locality details displayed in sidebar" 2025-06-06 13:46:29 +03:00
Elias Junno c3d7864f6e Merge remote-tracking branch 'origin/main' into locality-details-displayed-in-sidebar 2025-05-27 12:26:00 +03:00
Aaro KoivukangasandEero Antikainen 248f2c1187 added coverage reporting for frontend 2024-09-30 11:15:19 +03:00
Aaro KoivukangasandEero Antikainen fc200231d7 changed cypress env variable name 2024-09-27 12:22:48 +03:00
Aaro KoivukangasandEero Antikainen 31d5ca8add implemented test db reset for e2e tests 2024-09-27 12:22:48 +03:00
ShootingStar91 d03f3ae07a Return test isolation 2024-07-13 16:36:25 +03:00
ShootingStar91 3548c773ee Add tests and commands 2024-07-10 19:50:17 +03:00
ShootingStar91 1a834d7a4a Rename spec and move baseUrl to config 2024-07-10 18:59:27 +03:00
arttu 3d74f188a6 Fix tests that were broken after adding user rights to frontend 2024-07-09 22:43:32 +03:00
arttu 2024485b8b Use one UpdateTab component for all; add tests for it 2024-06-18 19:47:57 +03:00
arttu 355cbbc930 Try fix ci again 2024-06-13 18:38:36 +03:00
ShootingStar91 ce09f63ab0 Increase cypress timeouts 2024-06-13 17:09:42 +03:00
arttu bc13c36f7f Install cypress & make npm script to open 2024-06-06 12:04:40 +03:00