mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
bde7282f09
commit
096b3b7e9d
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user