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.
This commit is contained in:
Robert Schäfer 2019-01-11 18:46:35 +01:00
parent bde7282f09
commit 096b3b7e9d
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)