Exploring Cypress for end-to-end testing in an Angular 12 project with Cucumber and TypeScript has been quite the journey.
Cypress launches successfully using npx cypress open
, displaying the feature file I've created:
https://i.sstatic.net/Q5ld8.png
However, upon initiating the test for this feature, an error pops up as seen here: https://i.sstatic.net/Y8LT9.png
An attempt to address this issue led me to a similar problem described here. Unfortunately, no solution seemed applicable. The root cause seems to be the utilization of Cypress's browser causing the process variable to become inaccessible. While digging into this repository, no resolution was found either.
The project's package.json is structured like so:
{ "name": "randomAppName", "version": "0.0.0", ... (package.json contents truncated)
The webpack.config.js includes the following configuration:
module.exports = {
resolve: { ... (webpack config details truncated)
I am willing to provide any additional information if required. Your input on resolving this matter would be greatly appreciated.