vendredi 3 juillet 2020

Cypress, how to check property exists

I'm new to cypress and am trying a couple of different methods to get a checkbox property...

checkBox().should('have.prop', 'checked')
checkBox().its('checked').should('exist')

The first line works fine but I was expecting the second to also pass but I get a "expected Undefined to exist" response.

Thanks

Aucun commentaire:

Enregistrer un commentaire