Try to pin the topic on screen without choosing until when, for the pin dialog's refusal; the next step reads it, and the dialog is closed after it.
Then the pin dialog should show the error "A date is required to pin this topic."
Then the topic should not be pinned
Examples
When I try to pin the topic without a time
When we try to pin the topic without a time
When I try to pin the topic without a time
And I try to pin the topic without a time
When I try to pin the topic without a time
Pattern
When(/^(?:I|we) try to pin the topic without a time$/, …)
Part of @webship-js/discourse-steps (github.com/webship/discourse-steps), a step pack for Webship-js 2.0.x.