Run a query of TestData (the default data source) in Explore: its scenario by the words its select shows, the values it takes (its "String Input"), then "Run query"; wait for its result table.
Examples
When I run the "CSV Metric Values" query with "7,8,42" in Explore
When we run the "CSV Metric Values" query with "1,2,3" in Explore
And I run the "CSV Metric Values" query with "7,8,42" in Explore
Given I run the "CSV Metric Values" query with "10,20" in Explore
When I run the "CSV Metric Values" query with "5" in Explore
Pattern
When(/^(?:I |we )?run the "([^"]*)" query with "([^"]*)" in Explore$/, …)
Part of @webship-js/grafana-steps (github.com/webship/grafana-steps), a step pack for Webship-js 2.0.x.