FitNesse. SuiteAcceptanceTests. SuiteWikiPageResponderTests.
TestExistingWikiWordLink [add child]

 Set Up: .FitNesse.SuiteAcceptanceTests.SetUp (edit)

Test that existing WikiPageReference tokens are converted to links.



Test simple relative WikiPageReference.

Page creator.
Page name. Page contents. valid?
SomePage some page true
RelativeReferencePage SomePage true
Response Requester.
uri valid?
RelativeReferencePage true
Response Examiner.
type pattern matches? value
contents <a href="SomePage">SomePage</a> true  


Test simple global WikiWord

Page creator.
Page name. Page contents. valid?
GlobalReferencePage .SomePage true
Response Requester.
uri valid?
GlobalReferencePage true
Response Examiner.
type pattern matches? value
contents <a href="SomePage">.SomePage</a> true  


Test relative WikiPagePath

Page creator.
Page name. Page contents. valid?
SomePage.SubPage sub page true
SomePage.RelativeReference SubPage true
Response Requester.
uri valid?
SomePage.RelativeReference true
Response Examiner.
type pattern matches? value
contents <a href="SomePage.SubPage">SubPage</a> true  


Test global WikiPagePath

Page creator.
Page name. Page contents. valid?
SomePage.GlobalReference .SomePage.SubPage true
Response Requester.
uri valid?
SomePage.GlobalReference true
Response Examiner.
type pattern matches? value
contents <a href="SomePage.SubPage">.SomePage.SubPage</a> true