Assert the dialog mode of the consent manager (Configuration, User interface, Klaro!): "silent" shows the visitor nothing and only blocks what needs a consent, "notice" shows the notice, "notice_modal" shows it as a modal, "manager" opens the consent settings at once. Drupal CMS installs it silent. Give the machine name or the start of the label.
Examples
Then the consent dialog mode should be "silent"
And the consent dialog mode should be "notice"
Then the consent dialog mode should not be "silent"
And the consent dialog mode should be "Notice dialog"
Then the consent dialog mode should not be "manager"
Pattern
Then(/^the consent dialog mode should( not)* be "([^"]*)"$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.