Then the asset "Product brochure" should download as "product-brochure.txt"

Assert that an asset (by its title) downloads at its public address (the link its page shows) with a file name, and, when given, that the file holds a text.

Examples

Then the asset "Product brochure" should download as "product-brochure.txt"
Then the asset "Webship test notes" should download as "webship-test-notes.txt"
And the asset "Product brochure" should download as "product-brochure.txt" with "A sample file of the test site"
Then the asset "Webship test notes" should download as "webship-test-notes.txt" with "Webship test notes"
Then the asset "Product brochure" should download as "product-brochure.txt" with "Product brochure"

Pattern

Then(/^the asset "([^"]*)" should download as "([^"]*)"(?: with "([^"]*)")?$/, …)

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