Then the blog post should be by "Alex Example"

Assert who wrote the blog post shown: one of its authors has the name.

Examples

Then the blog post should be by "Alex Example"
And the blog post should be by "Sam Example"
Then blog post should be by "Alex Example"
And the blog post should be written by "Sam Example"
Then the blog post should be written by "Alex Example"

Pattern

Then(/^(?:the )?blog post should be (?:written )?by "([^"]*)?"$/, …)

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