When I manually type a randon email on the input box of an application, I got a successful confirmation message.
But when Cypress enters the same email, I got an error message from the application. I see on the console there are some JS errors on the web page. So I tried the following on the Support/index.js, but it didn’t work:
import ‘./commands’
Cypress.on(‘uncaught:exception’, (err, runnable) => {
// returning false here prevents Cypress from failing the test
return false
})
On the left side of the execution there is the expected message after hit submit button
Any help on how to overcome the JS errors from the application that might cause this error is appreciated.
Source: Read More