Getting the checked value of a checkbox - Material Design
It seems all I needed to do was:
cy.get('#pract-haspen').should('have.attr', 'checked')
and that Assertion worked!
Thanks
Since none of the solutions above worked for me, I did this :
cy.get('#element').should('be.checked')
source : cypress documentation
The opposite (unchecked) assertion would be (see the official docs):
cy.get('#element').should('not.be.checked')