FitNesse. SuiteAcceptanceTests. SuiteWidgetTests.
TestInclude [add child]

 Scenario Libraries

This page tests includes on a wiki page.

When a !include is the first string on a line in a wiki page, then the argument of the !include is presumed to be another wiki page. The contents of that wiki page are inserted in place of the !include.

The following is a test that demonstrates how this works.
script
start Page Builder
line included
page IncludedPage
script
start Page Builder
line before
line !include IncludedPage
line after
page IncludingPage
Response Requester.
uri valid? contents?
IncludingPage true  
Response Examiner.
type pattern matches? value
contents included true  
Response Examiner.
type number string?
line 1 before
line 8  
line 11 after