cypress test does not fail when script error occurs #32219
-
I noticed today that some functionality in an angular component fails with a script error. However, the cypress test that tests this functionality does not fail. The video that I added illustrates the problem. Firstly you see the angular component running normally. The user answers three questions. After answering each question a script error occurs. After answering the last question, a script fragment should run that finds the outcome for the given answers and show it below the questions. This does not happen however, because of the script error that happens before the that script fragment can run. Secondly you see the same component run in cypress. You see that the same script errors occur, but they do not stop script execution as you can see; at the end, the outcome is correctly shown. Hence, my cypress test does not detect the error in the component. Can anyone shed some light on this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The question can be ignored. Another issue caused the problem. |
Beta Was this translation helpful? Give feedback.
The question can be ignored. Another issue caused the problem.