When I submit the composer

Send what the composer holds: the topic, the reply or the message. The step waits for the forum's answer and for the composer to close; a refusal fails the step with the forum's message. What it makes is deleted after the scenario.

            Then the composer should be closed
            Then I should be reading the topic "A topic the member writes today"

Examples

When I submit the composer
When we submit the composer
When I submit the composer
And I submit the composer
When I submit the composer

Pattern

When(/^(?:I|we) submit the composer$/, …)

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