Tick a media item in the open Media Library dialog by its name, through the "Select <name>" checkbox the library grid renders. Picks the first match when several items carry the same name.
Examples
When I select the media "Sample image"
And I select the media item "Sample image"
When we select the media "Company logo"
And I select the media "Annual report"
When I select the media item "Intro video"
Pattern
When(/^(I |we )*select the media(?: item)? "([^"]*)"$/, …)
Part of @webship-js/drupal-core-steps (github.com/webship/drupal-core-steps), a step pack for Webship-js 2.0.x.