cypress get should have css property code example
Example: cypress check element have attribute
cy.get('input').invoke('attr', 'placeholder').should('contain', 'username')
cy.get('input').invoke('attr', 'placeholder').should('contain', 'username')