Bug Report
Using 535280b (latest from main).
Symptom
Running make run-tests locally the frontend e2e tests fail with TypeError: Cannot read properties of undefined (reading 'HomePage') and TypeError: Cannot read properties of undefined (reading 'CurrencySwitcher').
What is the expected behavior?
The frontend e2e tests should pass when running make run-tests.
What is the actual behavior?
Tests fail with undefined property errors:
TypeError: Cannot read properties of undefined (reading 'HomePage')
at Context.eval (webpack://frontend/./cypress/e2e/Home.cy.ts:14:22)
TypeError: Cannot read properties of undefined (reading 'CurrencySwitcher')
at Context.eval (webpack://frontend/./cypress/e2e/Home.cy.ts:21:22)
Reproduce
- Clone the repository
- Run
make run-tests
- Observe that
Home.cy.ts tests fail with undefined property errors
The issue is in src/frontend/cypress/e2e/Home.cy.ts - it imports CypressFields from ../../utils/Cypress but the utils/Cypress.ts file doesn't export CypressFields, causing it to be undefined at runtime.
Additional Context
- This affects the Docker-based Cypress test environment
- The fix is to ensure
CypressFields is properly exported from the utils file
- Other test files may be affected if they rely on the same import pattern
- I can provide a fix if maintainers are interested
Environment: Docker-based Cypress tests, Node.js frontend build
Bug Report
Using 535280b (latest from main).
Symptom
Running
make run-testslocally the frontende2etests fail withTypeError: Cannot read properties of undefined (reading 'HomePage')andTypeError: Cannot read properties of undefined (reading 'CurrencySwitcher').What is the expected behavior?
The frontend e2e tests should pass when running
make run-tests.What is the actual behavior?
Tests fail with undefined property errors:
Reproduce
make run-testsHome.cy.tstests fail with undefined property errorsThe issue is in
src/frontend/cypress/e2e/Home.cy.ts- it importsCypressFieldsfrom../../utils/Cypressbut theutils/Cypress.tsfile doesn't exportCypressFields, causing it to be undefined at runtime.Additional Context
CypressFieldsis properly exported from the utils fileEnvironment: Docker-based Cypress tests, Node.js frontend build