Assert the HTML of the rich text editor of a field contains (or does not contain) a text.
Examples
Then the "Body" editor should contain "<strong>bold words</strong>"
Then the "Body" editor should contain "A plain sentence."
And the "Body" editor should not contain "<script>"
Then the "Body" editor should contain "<h2>Hours</h2>"
And the "Body" editor should not contain "<em>"
Pattern
Then(/^the "([^"]*)" editor should( not)* contain "(.*)"$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.