Then the "description" meta tag should contain "Sample"

Assert the content of a meta tag, by its name or property ("description", "og:title", "robots"), exactly or as a substring.

Examples

Then the "description" meta tag should contain "Sample"
And the "og:title" meta tag should be "Sample article"
Then the "robots" meta tag should not contain "noindex"
And the "Generator" meta tag should contain "Drupal"
Then the "og:type" meta tag should not be "website"

Pattern

Then(/^the "([^"]*)" meta tag should( not)* (be|contain) "([^"]*)"$/, …)

Part of @webship-js/drupal-core-steps (github.com/webship/drupal-core-steps), a step pack for Webship-js 2.0.x.