Then the attachment should be refused with "Invalid file extension"

Assert that the board refused the file of the step before with an error (a part of it is enough), which its uploader shows in an alert over the page. The step closes the alert.

Examples

Then the attachment should be refused with "Invalid file extension"
Then the attachment should be refused with "Invalid file extension: webship-test-notes.txt"
And the attachment should be refused with "Invalid file extension"
Then the attachment should be refused with "is too large"
And the attachment should be refused with "extension"

Pattern

Then(/^the attachment should be refused with "([^"]*)"$/, …)

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