Using Behat with mink and Drupal extensions.
I essentually have a page with multiple labels and I want to confirm the text of them all. I want to do this without having to enter something like.
Then I should see "Filter"
Is there a way to check all the text im expecting using Pystrings or Tables in a similar way they can be used to populate text fields:
And I fill in "Options" with:
Just thought it maybe easier to check it all at once rather than having to provide multiple steps
=====
Update:
After being provided some direction from dblack I used the following inside its own feature to test all labels that fall on the same page:
Note: I use the mink and UIBusinessSelector extensions Also the 'login' is a custom function
Background: All scenarios require an admin login, then create a filter then confirm page labels
Given I login as an admin
When I go to the page "Product Filter"
And I click the "Add Filter Button"Scenario Outline: Verifying page text Then I should see "<ThisText>" Examples: | ThisText | | Filter by SKUs | | Filter by Package Name | | Filter by Campaign Medium | | Filter by Product Category | | Filter by Product Selection | | Filter by Product Holiday Experience | | Filter by Product Star Rating | | Filter by Product Destination | | Filter by Product Duration | | Filter by Product Supplier | | Filter by Air Ex Point | | Filter by Land Ex Point | | Filter by Product departure | | Filter by Ship name | | Filter by Cruise Line | | Remove $0 products | | Human readable name |