Then the pin dialog should show the error "A date is required to pin this topic."

The pin dialog shows a refusal; the dialog is closed after the check.

            And the topic should not be pinned

Examples

Then the pin dialog should show the error "A date is required to pin this topic."
Then the pin dialog should show the error "A date is required"
Then the pin dialog should show the error "Pin until: A date is required to pin this topic."
Then the pin dialog should show the error "required to pin this topic"
Then the pin dialog should show the error "A date is required to pin this topic."

Pattern

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

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