When I set the wikitext to "A page made in the source editor."

Replace the wikitext in the source editor with one line.

Examples

When I set the wikitext to "A page made in the source editor."
And I set the wikitext to "My own first line."
When we set the wikitext to "Changed words."
When I set the wikitext to "== A section ==\nIts text."
And we set the wikitext to "A line."

Pattern

When(/^(I |we )*set the wikitext to "([^"]*)"$/, …)

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