From ea95efc23ff4013f87dcda85f3460c3f2f3cf923 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 16 Jan 2020 15:49:14 +0100 Subject: [PATCH] Make test fail when it should fail --- client/cypress/integration/solutions.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/cypress/integration/solutions.spec.js b/client/cypress/integration/solutions.spec.js index 273b6425..30242b92 100644 --- a/client/cypress/integration/solutions.spec.js +++ b/client/cypress/integration/solutions.spec.js @@ -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();