Then the rich text editor toolbar should have the "Bold" button

Assert the toolbar of the rich text editor offers, or does not offer, a command button, by its accessible label ("Bold", "Link", "Insert Media", "Source"), which is how a text format's configured toolbar is checked.

Examples

Then the rich text editor toolbar should have the "Bold" button
And the rich text editor toolbar should have the "Link" button
Then the rich text editor toolbar should not have the "Source" button
And the rich text editor toolbar should have the "Insert Media" button
Then the rich text editor toolbar should not have the "Code Block" button

Pattern

Then(/^the rich text editor toolbar should( not)* have the "([^"]*)" button$/, …)

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