Read more

Match strings in a given order with Cucumber and Capybara

Dominik Schöler
October 08, 2010Software engineer at makandra GmbH

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

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Spreewald Show archive.org snapshot gives you steps like these:

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

Or, if you prefer multiline strings:

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.

Posted by Dominik Schöler to makandra dev (2010-10-08 17:17)