Then the navigation menu should list "Sample Page"

Assert the site's navigation menu has, or does not have, a link by its text. It covers the Navigation block (block themes) and the primary menu of a classic theme, in the header and the footer.

Examples

Then the navigation menu should list "Sample Page"
And the navigation menu should list "Blog"
Then the navigation menu should not list "Privacy Policy"
And the navigation menu should not list "Admin"
Then the navigation menu should list "About"

Pattern

Then(/^the navigation menu should( not)* list "([^"]*)"$/, …)

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