From 7ce40b3b37cf278318a4c4a2618e1d7446c7dbc2 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Fri, 14 Feb 2020 20:44:39 +0100 Subject: [PATCH] Fix cypress test --- cypress/integration/common/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/common/post.js b/cypress/integration/common/post.js index 3f5e0f3b2..04bc23a8e 100644 --- a/cypress/integration/common/post.js +++ b/cypress/integration/common/post.js @@ -119,7 +119,7 @@ Then("I add all required fields", () => { }) Then("the post was saved successfully with the {string} teaser image", condition => { - if (condition === 'change') + if (condition === 'updated') expectedValue = { title: 'to be updated', content: 'successfully updated', src: 'humanconnection' } cy.get(".ds-card-content > .ds-heading") .should("contain", expectedValue.title)