Force checkbox
This commit is contained in:
parent
f9d77a5179
commit
995fcf09ad
|
|
@ -151,7 +151,9 @@ Cypress.Commands.add('register', (prefix, firstname, lastname, street, city, pos
|
|||
}
|
||||
|
||||
if (acceptTerms) {
|
||||
cy.get('[data-cy="acceptedTerms-input"] > span').first().click();
|
||||
cy.get('[data-cy="acceptedTerms-input"] > input').first().check({force: true}).then(() => {
|
||||
cy.get('[data-cy="acceptedTerms-input"] > input:checkbox').should('be.checked');
|
||||
});;
|
||||
}
|
||||
|
||||
cy.get('[data-cy="passwordConfirmation-input"]').type(passwordConfirmation);
|
||||
|
|
|
|||
Loading…
Reference in New Issue