Make test fail when it should fail

This commit is contained in:
Ramon Wenger 2020-01-16 15:49:14 +01:00
parent 8c908fddd2
commit ea95efc23f
1 changed files with 4 additions and 5 deletions

View File

@ -23,6 +23,7 @@ describe('Solutions', () => {
cy.visit('/module/lohn-und-budget');
cy.login('rahel.cueni', 'test');
cy.get('[data-cy=module-title]').should('be.visible');
cy.get('[data-cy=toggle-enable-solutions]')
.should('not.exist');
cy.get('[data-cy=solution]').should('not.exist');
@ -32,11 +33,9 @@ describe('Solutions', () => {
cy.login('nico.zickgraf', 'test');
cy.get('[data-cy=toggle-enable-solutions]').click();
cy.waitFor('UpdateSolutionVisibility');
// cy.get('[data-cy=toggle-enable-solutions]').within(() => {
// cy.get('input[type=checkbox]').check({force: true});
// cy.wait(2000);
// });
cy.get('[data-cy=toggle-enable-solutions]').within(() => {
cy.get('input[type=checkbox]').should('be.checked');
});
cy.logout();