FitNesse. SuiteAcceptanceTests. SuiteWikiPageResponderTests.
TestHeadersAndFooters [add child]

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

This page tests PageHeader and PageFooter

Test normal header and footer without sub pages.

Page creator.
Page name. Page contents. Page attributes. valid?
NormalPage normal   true
PageHeader header   true
PageFooter footer   true
Response Requester.
uri valid?
NormalPage true
Response Examiner.
type pattern matches? wrapped html?
contents (header).*(normal).*(footer) true  


Test that sub pages inherit headers and footers.

Page creator.
Page name. Page contents. Page attributes. valid?
NormalPage.SubPage sub page   true
Response Requester.
uri valid?
NormalPage.SubPage true
Response Examiner.
type pattern matches? wrapped html?
contents (header).*(sub page).*(footer) true  


Test that sub headers and sub footers override inherited headers and footers.

Page creator.
Page name. Page contents. Page attributes. valid?
NormalPage.PageHeader sub header   true
NormalPage.PageFooter sub footer   true
Response Requester.
uri valid?
NormalPage.SubPage true
Response Examiner.
type pattern matches? wrapped html?
contents (sub header).*(sub page).*(sub footer) true