Commit Graph
85 Commits
Author SHA1 Message Date
juhanikat 0f44d649ee fix incorrect tab numbers in tests, and update tests that navigate from locality to occurrence/species details 2026-10-02 12:50:03 +03:00
juhanikat 81a34a098a remove it.only 2026-10-02 11:23:36 +03:00
juhanikat 361cccff69 fix locality tests 2026-10-02 11:22:51 +03:00
juhanikat ccefe118f1 remove species tab from locality details, and add skips to tests 2026-09-28 14:27:07 +03:00
juhanikat 080e029320 add e2e tests for creating new species in locality -> occurrences 2026-09-25 13:13:35 +03:00
juhanikat 0ab868e758 update e2e tests 2026-09-19 12:56:11 +03:00
juhanikat b9a44d0d63 add e2e tests to locality -> occurrence, and fix occurrence creation modal save button not disabling properly 2026-09-19 12:00:55 +03:00
juhanikat f59a32cf1f remove outdated e2e tests 2026-09-17 15:03:51 +03:00
juhanikat 2e190f23e1 update occurrence cypress tests, and add id to the new button in table views 2026-09-10 13:33:13 +03:00
karilint 26b3cc67ea Fix Cypress selectors for age fractions and bounds 2026-04-22 12:50:28 +03:00
karilint 484de0a99f Fix project tab revisit in locality e2e 2026-04-09 14:47:04 +03:00
karilint 4b3546fab6 Fix e2e helpers and tab indices 2026-04-09 14:20:03 +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 b57c6795f7 Jest fixes 55 2026-03-20 12:38:52 +02:00
karilint 04a994eb3a Jest fixes 54 2026-03-20 11:56:35 +02:00
karilint 1baf79ea7e Jest fixes 53 2026-03-20 11:37:33 +02:00
karilint 0211d0a80a Jest fixes 52 2026-03-20 11:13: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 2184deec1a Jest fixes 49 2026-03-19 16:02:58 +02:00
karilint 504f1f8e08 Jest fixes 47 2026-03-19 15:37:52 +02:00
Kari Lintulaakso 823e368b8c Add locality species row-action regression e2e test 2026-03-12 14:54:56 +02:00
Kari Lintulaakso e231229103 test(e2e): cover collecting method selection 2026-01-15 12:59:58 +02:00
Kari Lintulaakso 67decac823 Fix Cypress selector formatting 2025-11-19 17:36:12 +02:00
Kari Lintulaakso 489f8a6544 Fix cypress project removal selector formatting 2025-11-19 17:29:13 +02:00
Kari Lintulaakso 1c51939fe6 Add Cypress coverage for locality project linking 2025-11-19 13:45:36 +02:00
Kari Lintulaaksoandjuhanikat 597153bd65 Fix Cypress name filter chain for lint compliance 2025-10-14 12:00:16 +03:00
Kari Lintulaaksoandjuhanikat 53f6a0f832 Fix Cypress locality test lint warning 2025-10-14 12:00:16 +03:00
Kari Lintulaaksoandjuhanikat d6b4b1ff82 feat: allow filtering localities by synonym 2025-10-14 12:00:16 +03:00
juhanikat 976902f933 add more locality -> species tests 2025-09-08 10:57:46 +03:00
juhanikat 9af3e1dd91 update every test with the new reference adding command, update copy taxonomy button id, and add more locality -> species tests 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
juhanikat 8c8a285ab7 add more skipped tests 2025-09-08 10:57:46 +03:00
juhanikat df85100d4a fix test and add before-section to locality tests 2025-09-08 10:57:46 +03:00
juhanikat 7e77f4dd15 add skeletons for future tests 2025-09-08 10:57:46 +03:00
juhanikat dcca0aefcd add some tests for locality -> species tab and fix issue with null subclass, suborder and subfamily when selecting species 2025-09-08 10:57:46 +03:00
juhanikat dac842c64f changed ActionComponent's data-cy field, and updated tests to work with this 2025-07-01 14:51:47 +03:00
Tatu Laras 23e56b31ce Attempt to fix e2e test 2025-06-18 13:18:22 +03:00
lkauriaandGitHub 3ff3d21685 Merge branch 'main' into map-for-one-locality 2025-06-09 10:12:33 +03:00
lkauriaandGitHub 0b154be8a8 Revert "Locality details displayed in sidebar" 2025-06-06 13:46:29 +03:00
Laura Kauria 5422582ef9 remove test that is not relevant anymore. OSM map is shown in any case after coordinate change+save 2025-06-06 09:47:30 +03:00
Elias Junno 446a2f4474 Merge remote-tracking branch 'origin/main' into locality-details-displayed-in-sidebar 2025-06-03 12:18:04 +03:00
juhanikat 71f1394b9e chnaged errorbox title slightly 2025-05-27 15:57:46 +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
208acd5372 Select coordinates (#749)
* createTitle uses condition to display tu_comment

* Removed the tu_name from createTitle

* Corrected also the Hypsodonty field in Species Teeth tab

* Also modified the Coordinates selection as a TableContainer with additional columns

* Cleaned import. Removed ListItemButton

* fixed lint issues and updated tests and test data

---------

Co-authored-by: juhanikat <juhani.kataja@gmail.com>
2025-04-11 15:13:30 +03:00
juhanikat 1d9e2be2b5 add tests and todos for deleting items 2025-04-10 15:34:34 +03:00
juhanikat 74c7464437 fixed min/max ages not changing when fraction changes, also created tests for this and updated documentation 2025-01-28 12:03:37 +02:00
juhanikat fdf2fd9ba9 lint fix 2024-12-17 14:14:59 +02:00
juhanikat 16967b0b05 min and max ages now update properly after changing fractions 2024-12-17 14:08:56 +02:00