diff --git a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js index b57335554..75d1e352d 100644 --- a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js +++ b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js @@ -16,7 +16,7 @@ Then("I should be able to {string} a teaser image", condition => { case "add": postTeaserImage = "onourjourney.png" cy.get("#postdropzone").selectFile( - { contents: `cypress/fixtures/${this.postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, + { contents: `cypress/fixtures/${postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, { action: "drag-drop" } ).wait(750); break;