FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestContents

!contents

Use !contents to list all the child pages of the current page. You can also use the "-R" option to include all of the descendent pages* (see TestContentsWithRecursion)

First create the parent page.
Action Fixture.
start Page Builder
enter line I'm the parent
enter line !contents
enter page ParentPage

Next create a child
Action Fixture.
start Page Builder
enter line I came first!
enter page ParentPage.FirstChild

Next create a sibling
Action Fixture.
start Page Builder
enter line I'm younger, but wiser
enter page ParentPage.SecondChild

Then request the parent page.
Response Requester.
uri valid? contents?
ParentPage true  

...and examine the requested page to be sure that the child pages are included
Response Examiner.
type pattern matches?
contents <a href="ParentPage.FirstChild">FirstChild</a> true
contents <a href="ParentPage.SecondChild">SecondChild</a> true


.FrontPage .RecentChanges .FitNesse.SuiteAcceptanceTests