Match strings in a given order with Cucumber and Capybara

Posted Over 13 years ago. Visible to the public.

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

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.

Dominik Schöler
Last edit
Over 11 years ago
Keywords
text, following
License
Source code in this card is licensed under the MIT License.
Posted by Dominik Schöler to makandra dev (2010-10-08 15:17)