Then the editor should show the error "Your topic needs a title."

Assert the forums refused the form with an error, by a part of its text.

Examples

Then the editor should show the error "Your topic needs a title."
And the editor should show the error "Your topic cannot be empty."
Then the editor should show the error "Your reply cannot be empty."
Then the editor should show the error "Duplicate reply detected"
And the editor should show the error "Duplicate topic detected"

Pattern

Then(/^the editor should show the error "([^"]*)"$/, …)

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