Skip to content
Advertisement

How can we test the alert and the text it is displaying using Cypress.io Js automation framework?

How can we test the alert and text inside is displaying using Cypress.io Js automation framework? I am unable to figure out the relevant example in Cypress documentation, please advise.

JavaScript

Advertisement

Answer

Figured out the answer using cy.stub() method as advised by Richard Matsen:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement