When I add the wikitext "A line added at the end."

Add a line at the end of the wikitext in the source editor.

Examples

When I add the wikitext "A line added at the end."
And I add the wikitext "[]"
When we add the wikitext "== New section =="
When I add the wikitext "More words."
And we add the wikitext "[[Second test page]]"

Pattern

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

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