Then the upload should be refused with "File is not a valid image"

The last upload was refused: the admin's "Upload failed" dialog names the file and why ("File is not a valid image"). The dialog is closed after.

Examples

Then the upload should be refused with "File is not a valid image"
Then the upload should be refused with "File is not a valid image"
And the upload should be refused with "File is not a valid image"
Then the upload should be refused with "File is not a valid image"
Then the upload should be refused with "File is not a valid image"

Pattern

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

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