Sha256: 663dceaeac408ba6f4a438e78dbc34e2c15da7680bc7b98d27eb9dd987521127

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

!3 We should ''not'' be able to move a page below one of it's children.

First build a page, a child page to move, and a grandchild page to act as the target of the move

|Page creator.|
|Page name.                               |Page contents.   |valid?|
|!-ParentPage-!                         |x              |true   |
|!-ParentPage.ChildPage-!               |child page     |true   |
|!-ParentPage.ChildPage.GrandchildPage-!|grandchild page| true  |

Then try to move the child page below the grandhild page.

|Response Requester.|
|uri   |status?|
|!-ParentPage.ChildPage?responder=movePage&newLocation=ParentPage.ChildPage.GrandchildPage-!|400|

Make sure we get an error message.

|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|Cannot move|true||

Make sure the page didn't really move.

|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage.ChildPage-!|true||

|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|child page|true||

Make sure that the grandchild page still exists

|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage.ChildPage.GrandchildPage-!|true||

|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|grandchild page|true||

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteMoveResponder/TestCantMovePageBeneathSelf/content.txt