FitNesse
.
SuiteAcceptanceTests
.
SuiteWikiPageResponderTests
.
TestBrokenWikiWordLink
Edit Page:
!2 Test the rendering of a broken WikiPageReference. * A broken WikiPageReference is a reference to a page that does not not exist. * It should be rendered as a '''?'''. The '''?''' is a link to the wiki page followed by '''?edit''' ---- !3 Test that a broken link renders as a '''?'''. * Create a page at the root level that refers to a page that doesn't exist. !|Page Creator| |Page name.|Page contents.|valid?| |ReferencePage|SomePage|true| * Then request the page with the reference !|Response Requester| |uri|valid?| |ReferencePage|true| * Make sure the rendered page has a broken link. !|Response Examiner| |type|pattern|matches?|value| |contents|SomePage<a href="SomePage\?edit">\?</a>|true||
Hints:
Use alt+s (Windows) or control+s (Mac OS X) to save your changes. Or, tab from the text area to the "Save" button!
Grab the lower-right corner of the text area to increase its size (works with some browsers).