How to verify if a button is visible or not while running scripts using Cypress?

I’m running my script using cypress and wanted to know if there is any way to verify that a button is visible or not?

Hi Mark,

Yes, you can verify this by using the following code:

cy.get('button#form-submit').should('be.visible')