How to verify that a button is visible or not in Cypress?

How to verify that a button is visible or not in Cypress?

Hey Ian Partridge,

You can use the code snippet mentioned below to verify button is visible:

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