Given I make the dashboard "Webship test copy" from this JSON:

Make a dashboard or an alert rule from its JSON, through the app's HTTP API, under the title the step gives:

- a dashboard: its JSON keeps a "uid" of its own, so a run repeated replaces it (and the app's history of deleted
  dashboards keeps one entry for it);
- an alert rule: its "condition" and its "data", as the provisioning API takes them; it goes in the steps' own
  folder ("Webship test alerts") and group, evaluated every 10 seconds; one of the same title is replaced.

Examples

Given I make the dashboard "Webship test copy" from this JSON:
When we make the alert rule "Webship test orders" from this JSON:
And I make the dashboard "Webship test totals" from this JSON:
Given I make the alert rule "Webship test stock" from this JSON:
When I make the dashboard "Webship test summary" from this JSON:

Pattern

When(/^(?:I |we )?make the (dashboard|alert rule) "([^"]*)" from this JSON:$/, …)

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