Posted 10 months ago. Visible to the public. Repeats.

How to fill in multiple lines in a textarea with cucumber

If you want to fill in textareas with multiple lines of text (containing line breaks) you can use Cucumber's docstrings:

Copy
And I fill in "Comment" with: """ This is a long comment. With multiple lines. And paragraphs. """

The step definition is part of the spreewald gem

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Natalie Krehan
Last edit:
9 months ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Natalie Krehan to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more