Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
This PR fixes the broken e2e frontend tests, currently when running
make run-teststhe e2e tests fail:Home Page 1) should validate the home page 2) should change currency 0 passing (1s) 2 failing 1) Home Page should validate the home page: TypeError: Cannot read properties of undefined (reading 'HomePage') at Context.eval (webpack://frontend/./cypress/e2e/Home.cy.ts:14:22) at runnable.fn (http://frontend:8080/__cypress/runner/cypress_runner.js:141791:19) at callFn (http://frontend:8080/__cypress/runner/cypress_runner.js:160869:21) at Runnable.run (http://frontend:8080/__cypress/runner/cypress_runner.js:160856:7) at <unknown> (http://frontend:8080/__cypress/runner/cypress_runner.js:166946:30) at PassThroughHandlerContext.finallyHandler (http://frontend:8080/__cypress/runner/cypress_runner.js:4042:23) at PassThroughHandlerContext.tryCatcher (http://frontend:8080/__cypress/runner/cypress_runner.js:1777:23) at Promise._settlePromiseFromHandler (http://frontend:8080/__cypress/runner/cypress_runner.js:1489:31) at Promise._settlePromise (http://frontend:8080/__cypress/runner/cypress_runner.js:1546:18) 2) Home Page should change currency: TypeError: Cannot read properties of undefined (reading 'CurrencySwitcher') at Context.eval (webpack://frontend/./cypress/e2e/Home.cy.ts:21:22) at runnable.fn (http://frontend:8080/__cypress/runner/cypress_runner.js:141791:19) at callFn (http://frontend:8080/__cypress/runner/cypress_runner.js:160869:21) at Runnable.run (http://frontend:8080/__cypress/runner/cypress_runner.js:160856:7) at <unknown> (http://frontend:8080/__cypress/runner/cypress_runner.js:166946:30) at PassThroughHandlerContext.finallyHandler (http://frontend:8080/__cypress/runner/cypress_runner.js:4042:23) at PassThroughHandlerContext.tryCatcher (http://frontend:8080/__cypress/runner/cypress_runner.js:1777:23) at Promise._settlePromiseFromHandler (http://frontend:8080/__cypress/runner/cypress_runner.js:1489:31) at Promise._settlePromise (http://frontend:8080/__cypress/runner/cypress_runner.js:1546:18)The issue is that the
CypressFieldsused in the test are not correctly exported, so at runtime the test fails as these values arenull.