Then the reference "1" should read "Every page keeps its history."

Assert that a reference of the page (a footnote: <ref>…</ref>) leads to a text in the list of references, by its number as the page shows it.

Examples

Then the reference "1" should read "Every page keeps its history."
And the reference "2" should read "A second source."
Then the reference "1" should read "Every page keeps"
Then the reference "3" should read "The third note."
And the reference "1" should read "its history"

Pattern

Then(/^the reference "(\d+)" should read "([^"]*)"$/, …)

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