Using Cypress, I want to automate clicking a "Yes" button in a confirmation dialogue box "Yes".
I want to:
- Check the button changes color when you hover over the mouse button;
- When you click the "Yes" button, check for another confirmation box.
Using Cypress, I want to automate clicking a "Yes" button in a confirmation dialogue box "Yes".
I want to:
cy.contains('Yes').click()
followed by a cy.contains('Confirmation message');
to first press on the yes button then check for a confirmation message.