Then the time range should be "Last 24 hours"

Check the time range the toolbar of the open page says.

Examples

Then the time range should be "Last 24 hours"
And the time range should be "Last 6 hours"
Then the time range should be "Last 7 days"
And the time range should be "Last 1 hour"
Then the time range should be "Last 30 days"

Pattern

Then(/^the time range should be "([^"]*)"$/, …)

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