com.atlassian.confluence.webdriver
Class MovePageTest

java.lang.Object
  extended by com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
      extended by com.atlassian.confluence.webdriver.MovePageTest

public class MovePageTest
extends AbstractInjectableWebDriverTest


Field Summary
protected  Space monkeySpace
           
 
Fields inherited from class com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
darkFeaturesHelper, methodRules, name, product, rpc, serverStateManager, testData, userHelper
 
Constructor Summary
MovePageTest()
           
 
Method Summary
protected  List<Page> createPageHierarchy(String pagePrefix, int depth, Space space)
          Create a simple hierarchy of pages where each page is the parent of the next.
 void setUp()
           
 void testAvailabilityAndDecoration()
           
 void testCannotChangeSpaceWhenNoRemovePermission()
           
 void testChangePageParentPage()
           
 void testChangePageSpace()
           
 void testChangingSpace()
           
 void testChangingSpaceThenCancel()
           
 void testClickingPageThenCancel()
          Set up a move to a new parent within the same space and then cancel and ensure that re-opening the dialog returns the tree to it's previous unselected state.
 void testDialogSize()
           
 void testEscapeClosesDialog()
          CONF-17839
 void testMoreSearchResultsMessage()
           
 void testMoveInsertsPageAlphabeticalForUnOrderedSiblings()
          When a page is moved to a parent that does not have ordered siblings then make sure that the moved page appears alphabetically in the list of siblings.
 void testMoveInsertsPageAtEndOfOrderedSiblings()
          When a page is moved to a parent that has ordered siblings then on the ordered list of siblings the moved page should appear last.
 void testMoveNotAvailableIfNoPageEdit()
           
 void testMoveNotAvailableIfNoSpaceEdit()
           
 void testMovePageOnCopyPage()
           
 void testMovePageOnCreatePage()
           
 void testMovePageToKnownLocation()
           
 void testMovingToSpaceWithDuplicateTitle()
           
 void testMovingToSpaceWithDuplicateTitleOfChildPage()
           
 void testMovingToSpaceWithDuplicateTitleOfDescendentPage()
           
 void testMovingToSpaceWithDuplicateTitleOfDescendentPageToTopOfSpace()
           
 void testNoSelection()
           
 void testNoSpacePickerIfNoRemovePermission()
          Ensure that if the user does not have remove permission for the current space then they are not presented with a space picker mechanism.
 void testNoSpacePickerIfOnlyOneSpaceAccessible()
           
 void testOpenMoveDialogOnPageHistory()
           
 void testOpenMoveDialogOnViewAttachments()
           
 void testOpenMoveDialogOnViewInfo()
           
 void testReorderToFirstUnderSpace()
           
 void testReorderToLastUnderSpace()
           
 void testReorderWhenNoSiblings()
           
 void testReorderWithoutMoving()
          Change the order of a page within it's siblings list without first moving it to a new parent.
 void testTreeCanDisplayPageWithAmpersandInTitle()
           
 void testTreeClicksDoNotNavigate()
           
 void testTreeContainsDescendantsOfMovedPage()
           
 void testTreeDoesNotShowSpaceWithNoCreatePermission()
           
 void testTreeExpandsInOtherLanguages()
           
 void testTreeExpandsToShowCurrentPageAndParent()
           
 void testTreeMoveToHomePageOfAnotherSpace()
           
 void testTreeMoveToSibling()
           
 void testTreeMoveToTopOfNewSpace()
           
 void testTreeMoveToTopOfSameSpace()
           
 void testTreeMoveWithinSameSpace()
           
 void testTreeScrollsToShowCurrentParent()
           
 void testTreeSpaceChangeDoesNotDiscardSelection()
          When a selection is made in the tree and then the space is changed then that old selection should still work if we click 'Move'.
 void testTreeSpaceNamesAreProperlyEncoded()
           
 void testValidationErrorIfMovingPageBeneathItself()
           
 void testXssInPageTitle()
           
 
Methods inherited from class com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monkeySpace

protected Space monkeySpace
Constructor Detail

MovePageTest

public MovePageTest()
Method Detail

setUp

public void setUp()

testChangePageParentPage

public void testChangePageParentPage()

testChangingSpaceThenCancel

public void testChangingSpaceThenCancel()
                                 throws Exception
Throws:
Exception

testMoveNotAvailableIfNoSpaceEdit

public void testMoveNotAvailableIfNoSpaceEdit()
                                       throws Exception
Throws:
Exception

testMoveNotAvailableIfNoPageEdit

public void testMoveNotAvailableIfNoPageEdit()
                                      throws Exception
Throws:
Exception

testEscapeClosesDialog

public void testEscapeClosesDialog()
                            throws Exception
CONF-17839

Throws:
Exception

testDialogSize

public void testDialogSize()
                    throws Exception
Throws:
Exception

testAvailabilityAndDecoration

public void testAvailabilityAndDecoration()
                                   throws Exception
Throws:
Exception

testMovePageToKnownLocation

public void testMovePageToKnownLocation()
                                 throws Exception
Throws:
Exception

testTreeScrollsToShowCurrentParent

public void testTreeScrollsToShowCurrentParent()
                                        throws Exception
Throws:
Exception

testNoSelection

public void testNoSelection()
                     throws Exception
Throws:
Exception

testNoSpacePickerIfOnlyOneSpaceAccessible

public void testNoSpacePickerIfOnlyOneSpaceAccessible()
                                               throws Exception
Throws:
Exception

testClickingPageThenCancel

public void testClickingPageThenCancel()
                                throws Exception
Set up a move to a new parent within the same space and then cancel and ensure that re-opening the dialog returns the tree to it's previous unselected state.

Throws:
Exception

testTreeMoveToHomePageOfAnotherSpace

public void testTreeMoveToHomePageOfAnotherSpace()
                                          throws Exception
Throws:
Exception

testMovingToSpaceWithDuplicateTitleOfChildPage

public void testMovingToSpaceWithDuplicateTitleOfChildPage()
                                                    throws Exception
Throws:
Exception

testMovingToSpaceWithDuplicateTitleOfDescendentPage

public void testMovingToSpaceWithDuplicateTitleOfDescendentPage()
                                                         throws Exception
Throws:
Exception

testMovingToSpaceWithDuplicateTitleOfDescendentPageToTopOfSpace

public void testMovingToSpaceWithDuplicateTitleOfDescendentPageToTopOfSpace()
                                                                     throws Exception
Throws:
Exception

testTreeMoveWithinSameSpace

public void testTreeMoveWithinSameSpace()
                                 throws Exception
Throws:
Exception

testTreeMoveToTopOfSameSpace

public void testTreeMoveToTopOfSameSpace()
                                  throws Exception
Throws:
Exception

testTreeMoveToTopOfNewSpace

public void testTreeMoveToTopOfNewSpace()
                                 throws Exception
Throws:
Exception

testTreeCanDisplayPageWithAmpersandInTitle

public void testTreeCanDisplayPageWithAmpersandInTitle()
                                                throws Exception
Throws:
Exception

testTreeContainsDescendantsOfMovedPage

public void testTreeContainsDescendantsOfMovedPage()
                                            throws Exception
Throws:
Exception

testTreeSpaceChangeDoesNotDiscardSelection

public void testTreeSpaceChangeDoesNotDiscardSelection()
                                                throws Exception
When a selection is made in the tree and then the space is changed then that old selection should still work if we click 'Move'.

Throws:
Exception

testTreeMoveToSibling

public void testTreeMoveToSibling()
                           throws Exception
Throws:
Exception

testTreeSpaceNamesAreProperlyEncoded

public void testTreeSpaceNamesAreProperlyEncoded()
                                          throws Exception
Throws:
Exception

testTreeClicksDoNotNavigate

public void testTreeClicksDoNotNavigate()
                                 throws Exception
Throws:
Exception

testMoreSearchResultsMessage

public void testMoreSearchResultsMessage()

testReorderWhenNoSiblings

public void testReorderWhenNoSiblings()
                               throws Exception
Throws:
Exception

testMoveInsertsPageAtEndOfOrderedSiblings

public void testMoveInsertsPageAtEndOfOrderedSiblings()
                                               throws Exception
When a page is moved to a parent that has ordered siblings then on the ordered list of siblings the moved page should appear last.

Throws:
Exception

testMoveInsertsPageAlphabeticalForUnOrderedSiblings

public void testMoveInsertsPageAlphabeticalForUnOrderedSiblings()
                                                         throws Exception
When a page is moved to a parent that does not have ordered siblings then make sure that the moved page appears alphabetically in the list of siblings.

Throws:
Exception

testReorderWithoutMoving

public void testReorderWithoutMoving()
                              throws Exception
Change the order of a page within it's siblings list without first moving it to a new parent.

Throws:
Exception

testReorderToFirstUnderSpace

public void testReorderToFirstUnderSpace()
                                  throws Exception
Throws:
Exception

testReorderToLastUnderSpace

public void testReorderToLastUnderSpace()
                                 throws Exception
Throws:
Exception

testTreeExpandsToShowCurrentPageAndParent

public void testTreeExpandsToShowCurrentPageAndParent()
                                               throws Exception
Throws:
Exception

testOpenMoveDialogOnViewInfo

public void testOpenMoveDialogOnViewInfo()

testOpenMoveDialogOnPageHistory

public void testOpenMoveDialogOnPageHistory()

testOpenMoveDialogOnViewAttachments

public void testOpenMoveDialogOnViewAttachments()

testXssInPageTitle

public void testXssInPageTitle()

testChangePageSpace

public void testChangePageSpace()

testValidationErrorIfMovingPageBeneathItself

public void testValidationErrorIfMovingPageBeneathItself()
                                                  throws Exception
Throws:
Exception

testTreeExpandsInOtherLanguages

public void testTreeExpandsInOtherLanguages()
                                     throws Exception
Throws:
Exception

testCannotChangeSpaceWhenNoRemovePermission

public void testCannotChangeSpaceWhenNoRemovePermission()
                                                 throws Exception
Throws:
Exception

testTreeDoesNotShowSpaceWithNoCreatePermission

public void testTreeDoesNotShowSpaceWithNoCreatePermission()
                                                    throws Exception
Throws:
Exception

testNoSpacePickerIfNoRemovePermission

public void testNoSpacePickerIfNoRemovePermission()
                                           throws Exception
Ensure that if the user does not have remove permission for the current space then they are not presented with a space picker mechanism.

Throws:
Exception

testChangingSpace

public void testChangingSpace()
                       throws Exception
Throws:
Exception

testMovingToSpaceWithDuplicateTitle

public void testMovingToSpaceWithDuplicateTitle()
                                         throws Exception
Throws:
Exception

testMovePageOnCreatePage

public void testMovePageOnCreatePage()
                              throws Exception
Throws:
Exception

testMovePageOnCopyPage

public void testMovePageOnCopyPage()
                            throws Exception
Throws:
Exception

createPageHierarchy

protected List<Page> createPageHierarchy(String pagePrefix,
                                         int depth,
                                         Space space)
Create a simple hierarchy of pages where each page is the parent of the next. All pages must be in the same space.



Copyright © 2003–2015 Atlassian. All rights reserved.