Force checkbox

This commit is contained in:
Christian Cueni 2020-05-26 07:37:29 +02:00
parent f9d77a5179
commit 995fcf09ad
1 changed files with 3 additions and 1 deletions

View File

@ -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);