Commit Graph
23 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 2816a6c9f6 Harden Cypress login and time unit flows 2026-03-25 13:28:22 +02:00
karilint 0b45b78e3a Stabilize Cypress login helper 2026-03-24 17:52:50 +02:00
karilint 4fdc4b517f Stabilize Cypress login and time unit delete flow 2026-03-24 17:24:58 +02:00
karilint 3381fa97ef Jest fixes 51 2026-03-20 09:53:03 +02:00
karilint 0958f71103 Jest fixes 50 2026-03-19 16:21:50 +02:00
karilint 9e67c2d051 Jest fixes 48 2026-03-19 15:49:09 +02:00
karilint 504f1f8e08 Jest fixes 47 2026-03-19 15:37:52 +02:00
Kari Lintulaakso 1275e369f9 Add delete test fixture and helper commands 2025-11-27 16:16:10 +02:00
Kari LintulaaksoandGitHub 46ea4f6ab2 Change login command to use data attribute selector 2025-10-13 13:04:30 +03:00
Kari LintulaaksoandGitHub 6cb7a50742 Adjust login command to include timeout
Increase timeout for the login button click action.
2025-10-13 12:30:43 +03:00
juhanikat 575c4f3e68 add subfamily field to add new species form in locality -> species tab 2025-09-08 10:57:46 +03:00
juhanikat 805a33473b update existing locality tests 2025-09-08 10:57:46 +03:00
juhanikat 32e94495a9 add command for adding reference and saving an entry, and add test for locality -> species tab 2025-09-08 10:57:46 +03: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
Tatu Laras 73f7703c9b Attempt to fix e2e tests 2025-05-19 14:48:12 +03:00
Sampo Riitala 0725f118e1 test creating a locality with valid inputs 2024-10-30 17:14:24 +02:00
Aaro KoivukangasandEero Antikainen 31d5ca8add implemented test db reset for e2e tests 2024-09-27 12:22:48 +03:00
ShootingStar91 3548c773ee Add tests and commands 2024-07-10 19:50:17 +03:00
ShootingStar91 a94deb21b8 Make login a custom command 2024-07-10 19:11:50 +03:00
arttu bc13c36f7f Install cypress & make npm script to open 2024-06-06 12:04:40 +03:00