jeudi 15 avril 2021

Why is Cypress not checking checkbox?

In my cypress runner, I can see that it is successfully finding the checkbox, as I can see it has the type="checkbox" attribute. I also noticed that by manually clicking the checkbox, its "value" attribute became "true", so I tried using invoke('attr', 'value', 'true') which also "succeeds" but the text box remains unchecked. Not sure what I am missing. There are no onClick events that I can see that might uncheck it immediately after checking either.

My code:

enter image description here

What it returns:

return checkbox element




Aucun commentaire:

Enregistrer un commentaire