Check whether the open dashboard is a favourite, by the button beside its title.
Examples
Then the dashboard should be a favourite
Then the dashboard should not be a favourite
And the dashboard should be a favourite
And the dashboard should not be a favourite
Then the dashboard should be a favourite
Pattern
Then(/^the dashboard should (not )?be a favourite$/, …)
Part of @webship-js/grafana-steps (github.com/webship/grafana-steps), a step pack for Webship-js 2.0.x.