When I publish the post

Publish the post or page that is open in the editor, right now: the publish dialog, its final review and the confirmation. The step ends on the dialog that reports the publication.

Examples

When I publish the post
When I publish the page
When we publish the post
And I publish the post
And we publish the page

Pattern

When(/^(?:I |we )?publish the (?:post|page)$/, …)

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