Since it is an <input type="checkbox">
Cypress wants to use the .check()
command - https://docs.cypress.io/api/commands/check.
// before checking, assert that it's not checked
cy.get('[test-id="A02-checkbox"] input').should('not.be.checked')
cy.get('[test-id="A02-checkbox"] input')
.check()
// after checking, assert that it is checked
cy.get('[test-id="A02-checkbox"] input').should('be.checked')
// ... now you can uncheck() it
cy.get('[test-id="A02-checkbox"] input')
.uncheck()
// after un-checking, assert that it is not checked
cy.get('[test-id="A02-checkbox"] input').should('not.be.checked')