Then the rich text editor should contain "Hello"

Assert the content of an editor of the form contains (or does not contain) some text.

Examples

Then the rich text editor should contain "Hello"
Then the rich text editor field "Article Text" should contain "Hello"
Then the rich text editor field "jform_articletext" should not contain "Goodbye"
And the rich text editor should not contain "Draft"
Then the rich text editor field "Content" should contain "Notice"

Pattern

Then(/^the rich text editor(?: field "([^"]*)?")? should( not)* contain "([^"]*)?"$/, …)

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