Assert a media option of the component selected in the editor holds, or does not hold, a media item by its name, as the settings form shows it after "Insert selected".
Examples
Then the Canvas component option "Image" should hold the media "sample.png"
And the Canvas component option "Image" should hold the media "Team photo"
Then the Canvas component option "Image" should not hold the media "old.png"
And the Canvas component option "Logo" should hold the media "logo.svg"
Then the Canvas component option "Video" should not hold the media "intro.mp4"
Pattern
Then(/^the Canvas component option "([^"]*)" should( not)* hold the media "([^"]*)"$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.