How to fill in multiple lines in a textarea with cucumber

Updated . Posted . Visible to the public. Repeats.

If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use Cucumber's docstrings Show archive.org snapshot :

And I fill in "Comment" with:

"""
This is a long comment.
With multiple lines.

And paragraphs.
"""

The step definition is part of the spreewald Show archive.org snapshot gem

Natalie Zeumann
Last edit
Emanuel
Keywords
newline
License
Source code in this card is licensed under the MIT License.
Posted by Natalie Zeumann to makandra dev (2018-06-28 07:27)