Given the page "History test page" has the text "First version of the page." with the summary "First version"

Make a test page with one line of wikitext, as the step above ("\n" starts a new line), with an edit summary of its own when given (the history lists the revision by it).

Examples

Given the page "History test page" has the text "First version of the page." with the summary "First version"
And the page "History test page" has the text "Second version of the page." with the summary "Second version"
Given the page "Editing test page" has the text "Words to change."
Given the page "Category:Test guides" has the text "Guides of the test wiki."
Given the page "Conflict test page" has the text "The first line."

Pattern

Given(/^the page "([^"]*)" has the text "([^"]*)"(?: with the summary "([^"]*)")?$/, …)

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