Javascript – Cypress: How to catch error when the 'should' assertion is failed
I need to catch an error when the should assertion is failed. Imagine that the first assertion for .should('not.exist') is failed( the element is still visible) Example of what I need(but this is not working for Cypress and JS): this.containsInIframe('tr',…