From 096b3b7e9d96475a20263e9549abe70ea226dce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 11 Jan 2019 18:46:35 +0100 Subject: [PATCH] Use multiline strings in the step definition @appinteractive I'm having trouble to run cypress on my machine right now. But I think this is the correct syntax. --- cypress/integration/04.AboutMeAndLocation.feature | 5 ++++- cypress/integration/common/settings.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cypress/integration/04.AboutMeAndLocation.feature b/cypress/integration/04.AboutMeAndLocation.feature index 7a7c23712..71e9c882e 100644 --- a/cypress/integration/04.AboutMeAndLocation.feature +++ b/cypress/integration/04.AboutMeAndLocation.feature @@ -32,7 +32,10 @@ Feature: About me and and location | Germany | Country | Scenario: Display a description on profile page - Given I have the following self-description: "Ich lebe fettlos, fleischlos, fischlos dahin, fühle mich aber ganz wohl dabei" + Given I have the following self-description: + """ + Ich lebe fettlos, fleischlos, fischlos dahin, fühle mich aber ganz wohl dabei + """ And my username is "Peter Lustig" When people visit my profile page Then they can see the text in the info box below my avatar diff --git a/cypress/integration/common/settings.js b/cypress/integration/common/settings.js index f4746a3cd..e58c3b21e 100644 --- a/cypress/integration/common/settings.js +++ b/cypress/integration/common/settings.js @@ -33,7 +33,7 @@ When('I save {string} as my location', location => { myLocation = location }) -When('I have the following self-description: {string}', text => { +When('I have the following self-description:', text => { cy.get('textarea[id=bio]') .clear() .type(text)