Then the "Body" editor should have the "Bold" button

Assert the toolbar of the rich text editor of a field has (or does not have) a button.

Examples

Then the "Body" editor should have the "Bold" button
Then the "Body" editor should have the "Italic" button
And the "Body" editor should not have the "Source" button
Then the "Body" editor should have the "Link" button
And the "Body" editor should not have the "Underline" button

Pattern

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

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