Then the topic should have the poll "Which season do you like best?"

Assert that the topic on screen has a poll with a question, and with options, those options in order.

Examples

Then the topic should have the poll "Which season do you like best?"
Then the topic should have the poll "Which season do you like best?" with the options "Spring", "Summer", "Autumn" and "Winter"
And the topic should have the poll "Which season do you like best?"
Then the topic should have the poll "Webship test poll" with the options "Yes" and "No"
And the topic should have the poll "Webship test poll"

Pattern

Then(/^the topic should have the poll "([^"]*)"(?: with the options ("[^"]*"(?:(?:, | and )"[^"]*")*))?$/, …)

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