Posted about 7 years ago. Visible to the public.

Match strings in a given order with Cucumber and Capybara

Sometimes the order in which strings appear on a page matters to you.

Spreewald gives you steps like these:

Copy
Then I should see in this order: | Alpha Group | | Augsburg | | Berlin | | Beta Group |

Or, if you prefer multiline strings:

Copy
Then I should see in this order: """ Alpha Group Augsburg Berlin Beta Group """

The step ignores all HTML tags and only tests on plain text.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Author of this card:

Avatar
Dominik Schöler
Keywords:
text, following
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Dominik Schöler to makandropedia