Then the rich text editor should contain "A paragraph typed in the editor."

The text of a rich text (the form's first rich-text editor, or the one with a label) contains a text.

Examples

Then the rich text editor should contain "A paragraph typed in the editor."
Then the "Caption" rich text editor should contain "A caption for the test."
And the rich text editor should contain "A second paragraph."
Then the rich text editor should contain "Changed body text."
Then the "Rich Text" rich text editor should contain "A short summary."

Pattern

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

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