Choose a file of the Media Library for a media field: "Add asset", then "Browse library", the file by its name in the asset picker (its root, or a folder named with "in the folder"), and "Confirm".
Examples
When I choose the asset "meadow.png" for "cover"
When I choose the asset "harbour-cover.png" in the folder "Covers" for "cover"
And I choose the asset "mountains.png" for "cover"
When I choose the asset "sunset.png" for "file"
When I choose the asset "river-cover.png" in the folder "Covers" for "cover"
Pattern
When(/^I choose the asset "([^"]*)"(?: in the folder "([^"]*)")? for "([^"]*)"$/, …)
Part of @webship-js/strapi-steps (github.com/webship/strapi-steps), a step pack for Webship-js 2.0.x.