When I submit the post

Send the editor that is open: "Submit". The step expects the board to take the post: it ends on the topic, or on the notice of the board when the post waits for approval. "try to" expects nothing: assert the errors of the editor with the next step.

Examples

When I submit the post
When I try to submit the post
And we submit the post
And we try to submit the post
Then I submit the post

Pattern

When(/^(?:I|we) (try to )?submit the post$/, …)

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