Assert that the page's <nav> element contains (or does not contain) links with the given text. Optionally assert each link's href contains a given substring. The table has a text column and an optional path (or href) column; the examples below show the step line, the table follows it in the feature file.
Examples
Then I should see a navigation menu with the following links:
And we should see a navigation menu with the following links:
Then should see a navigation menu with the following links:
But I should not see a navigation menu with the following links:
And I should see a navigation menu with the following links:
Pattern
Then(/^(I |we )*should( not)* see a navigation menu with the following links:$/, …)
Part of @webship-js/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.