Then the consent for the "matomo" service should be given

Assert what the consent manager stored for a service, by its machine name ("matomo", "ga", "youtube"): given, or not. "Not given" holds both when the visitor refused the service and when nothing is stored yet. This reads the stored consent itself, which is what makes "Accept", "Decline" and a saved selection tell apart.

Examples

Then the consent for the "matomo" service should be given
And the consent for the "matomo" service should not be given
Then the consent for the "klaro" service should be given
And the consent for the "youtube" service should not be given
Then the consent for the "cms" service should be given

Pattern

Then(/^the consent for the "([^"]*)" service should( not)* be given$/, …)

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