FitNesse. SuiteAcceptanceTests. SuiteWikiPageResponderTests.
TestHeaderTwo [add child]

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

Test the !2 header widget

If !2 is at the beginning of a line, then the rest of the line will be formatted as Header two.


First create a page with header two text on it.

Page creator.
Page name. Page contents. Page attributes. valid?
HeaderTwoTextPage !2 Header two   true

Then request that page

Response Requester.
uri valid?
HeaderTwoTextPage true

Examine the page to be sure it has the Header Two text

Response Examiner.
type pattern matches? value
contents <h2>Header two</h2> true