From 95bc633cfbb0470abc8ea69cd8cdb3260f64358b Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 2 Oct 2019 14:57:52 +0200 Subject: [PATCH] Fix unit test --- client/cypress/integration/survey.spec.js | 2 +- client/src/components/ContentBlock.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/cypress/integration/survey.spec.js b/client/cypress/integration/survey.spec.js index f90e457a..58a36529 100644 --- a/client/cypress/integration/survey.spec.js +++ b/client/cypress/integration/survey.spec.js @@ -15,7 +15,7 @@ describe('Survey', () => { cy.get('#sq_100i').type('Wohlwollen'); cy.get('#sq_101i').type('Demut'); - cy.get('[value=Weiter]').click(); + cy.get('[value="Speichern & Weiter"]').click(); //cy.get('.button--primary').click() cy.get('#sq_102i').type('Keuschheit'); diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index a8b22d32..d3c2d700 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -2,7 +2,8 @@
- + @@ -198,7 +199,7 @@ if (index === 0) { return content; - }; + } const contentLists = content.filter(contentItem => contentItem.type === 'content_list'); if (contentLists.length !== 1) {