Then the page title should end with "| Astro Steps Demo"

Assert the document title does (or does not) end with a given suffix. Useful for Astro sites that append a site name to every page title (e.g. "Home | My Site").

Examples

Then the page title should end with "| Astro Steps Demo"
Then the page title should end with "| My Site"
And the page title should end with "Blog"
But the page title should not end with "| Draft"
Then page title should end with "Docs"

Pattern

Then(/^(?:the )?page title should( not)* end with "([^"]*)?"$/, …)

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