https://cypress.io logo
checkboxes sometimes not get checked or unchecked
# i-need-help
b
In various of test, i test checkboxes whether they are checkable or uncheckable. Sometimes the test fails, because the checkbox is not checked after checking or otherwise.
cy.get([checkbox]).check(); cy.get([checkbox]).should(be.checked);
cy.get([checkbox]).uncheck(); cy.get([checkbox]).should(not.be.checked);
r
Hi there, you can try with check({ force: true }) or try to scrollTo
2 Views