256 Commits
Author SHA1 Message Date
juhanikatandGitHub 5c065508b4 update project update process in frontend and backend, and add project validators (#1230)
* update project update prosess in frontend, and add project validators

* change project update process in backend

* update project backend files, projectReducer, project validators and tests

* update project api tests, and error handling in ProjectDetails

* update frontend project creation form

* remove ProjectEditPage tests and fix ProjectNewPage tests

* update project api tests, project write process, and project validators

* remove unneeded files relating to projects, and merge project/ and projects/ route files

* remove project validators from backend, and update other project files

* allow all users to view projects table

* fix import issue

* update project api tests to use correct url, and add --runInBand flag to backend unit tests

* update cypress test
2026-08-19 11:21:36 +03:00
juhanikatandGitHub e9fa3e3b31 Improve loading times by splitting pages.tsx into smaller files and improving the locality map (#1224)
* split pages.tsx into multiple files, and update ui e2e test since occurrence rename

* reduce size of countryBoundingBoxes and countryPolygons

* update files again, and update countryExport script

* update files again, add more simplified geojson files, and update countryExport with Copilot
2026-08-04 13:51:13 +03:00
karilint 02777ab7ae Fix full-form validation error keys 2026-05-28 17:16:31 +03:00
karilint bc6877b5fc Fix time unit modal selector in Cypress 2026-04-22 13:17:13 +03:00
karilint 26b3cc67ea Fix Cypress selectors for age fractions and bounds 2026-04-22 12:50:28 +03:00
karilint a775a7ce7d Fix Cypress taxonomy modal and reference delete rights 2026-04-17 10:01:49 +03:00
karilint e4f9490ee7 Add EditRestricted/EditUnrestricted user rights e2e 2026-04-16 14:57:07 +03:00
karilint 826f944dcf Fix museum Cypress row click selector 2026-04-15 14:31:08 +03:00
karilint 1ec9730a5e Update Cypress for row-click navigation 2026-04-15 14:20:45 +03:00
karilint a7998bd405 Stabilize Cypress visit health check 2026-04-14 15:42:02 +03:00
karilint 55163fc967 Provide state code in modal test 2026-04-13 14:30:49 +03:00
karilint abe4553894 Force empty state code in modal 2026-04-13 14:18:55 +03:00
karilint a4f7847ca2 Set empty state code in modal 2026-04-13 14:00:47 +03:00
karilint d2485e7dd0 Expose museum create error 2026-04-13 13:13:43 +03:00
karilint adbe4f7c31 Assert country selection in modal 2026-04-13 13:02:37 +03:00
karilint 0cf7f251f0 Add stable country selector id 2026-04-13 12:52:18 +03:00
karilint f6b1505a24 Select country in museum modal 2026-04-13 12:42:36 +03:00
karilint 5191c0075f Fix locality museum assertions 2026-04-13 12:32:59 +03:00
karilint 1cb9d71792 Use string fields for museum seed 2026-04-13 12:23:12 +03:00
karilint f04144473a Use backend base URL for museum seed 2026-04-13 12:15:00 +03:00
karilint e63932511b Seed museum for e2e 2026-04-13 12:06:27 +03:00
karilint 36f354ae7d Improve museum e2e selectors 2026-04-13 11:55:54 +03:00
karilint 5daa2ea572 Handle museum list response shape 2026-04-10 12:51:05 +03:00
karilint e3f64f926a Make museum e2e data-driven 2026-04-10 12:40:24 +03:00
karilint c6dac5980e Stabilize museum e2e selectors 2026-04-10 12:26:59 +03:00
karilint 7634efac1e Fix museum Cypress selectors 2026-04-10 12:11:00 +03:00
karilint 9a01b96004 Add museum locality create flow tests 2026-04-10 11:57:36 +03:00
karilint cc09437aa1 Stabilize reference author selection in Cypress 2026-04-10 11:03:45 +03:00
karilint 60b7533f6d Queue visit after app health check 2026-04-09 15:20:13 +03:00
karilint 4ee9c30c26 Fix update log tab assertion 2026-04-09 15:05:38 +03:00
karilint 484de0a99f Fix project tab revisit in locality e2e 2026-04-09 14:47:04 +03:00
karilint a7c79b811a Chain waitForAppHealthy before visit 2026-04-09 14:34:12 +03:00
karilint 4b3546fab6 Fix e2e helpers and tab indices 2026-04-09 14:20:03 +03:00
karilint 6e32be9a40 Extend Cypress visit wait timeout 2026-04-01 16:58:13 +03:00
karilint 54b73d5969 Fix Cypress visit command chaining 2026-04-01 16:42:13 +03:00
karilint 61d4017b0a Stabilize Cypress app startup waits 2026-04-01 16:26:19 +03:00
karilint ad40ececcd Fix failing userRights.cy.js admin navigation tests
- Remove conflicting empty session that interfered with loginWithSession
- Replace failing menu-based navigation with direct URL visits
- Use cy.visit('/region'), cy.visit('/project'), cy.visit('/time-bound'), cy.visit('/email')
- Maintain test intent while fixing broken selectors for admin menu button
- Follow pattern used by other test files for admin page access

Fixes 4 failing tests:
- Regions view shows correctly
- Projects view shows correctly
- Time Bound view shows correctly
- Email page opens

All tests now use proven direct navigation approach instead of fragile UI navigation.
2026-03-31 13:47:02 +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 72f1ab2ad9 Remove locality detail request wait from admin smoke test 2026-03-25 16:43:50 +02:00
karilint 0560b24917 Remove flaky locality list wait from admin smoke test 2026-03-25 16:31:07 +02:00
karilint 0c8f8b2625 Use backend response checks for admin locality smoke test 2026-03-25 16:22:06 +02:00
karilint e75e639bfe Use lighter locality tab in admin smoke spec 2026-03-25 15:54:44 +02:00
karilint 0349ed4898 Use edit button for admin locality smoke check 2026-03-25 15:44:17 +02:00
karilint df370086e8 Stabilize admin locality detail smoke check 2026-03-25 15:34:37 +02:00
karilint 281f3d7582 Use stable locality seed in admin Cypress smoke spec 2026-03-25 15:16:41 +02:00
karilint 10d4d5b18a Simplify admin Cypress smoke table checks 2026-03-25 15:01:00 +02:00
karilint dc27e545b1 Relax admin Cypress smoke assertions for slow loads 2026-03-25 14:50:24 +02:00
karilint 5bc4b83d1f Align admin locality smoke test with UI spec 2026-03-25 14:40:48 +02:00
karilint d97b803cbb Use direct routes in admin Cypress smoke spec 2026-03-25 14:33:49 +02:00
karilint 1f3637f37f Pin admin locality Cypress test to age tab 2026-03-25 14:26:15 +02:00