Then the blog archive should list "Version 2.0"

Assert the archive of the blog (/blog/archive) lists a post, under a year when one is given: its links read "<date> - <title>".

Examples

Then the blog archive should list "Version 2.0"
And the blog archive should list "Welcome to Example Docs" under "2026"
Then blog archive should list "Writing Better Guides" under "2026"
And the blog archive should list "What Comes Next"
Then the blog archive should list "Version 1.0" under "2026"

Pattern

Then(/^(?:the )?blog archive should list "([^"]*)?"(?: under "([^"]*)?")?$/, …)

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