|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.confluence.selenium.AbstractSeleniumTest com.atlassian.confluence.selenium.AbstractMoveDialogTester
public abstract class AbstractMoveDialogTester
A base class to be extended by the tests for the Move Dialog. Because this dialog can be launched from multiple different places this class contains all the assertions but expects the subclass to actually perform the actions necessary to launch and dismiss the dialog.
Field Summary | |
---|---|
protected Menus |
menus
|
protected Space |
monkeySpace
|
Fields inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest |
---|
adminUser, assertThat, client, rpc, screenShotIndex, suite, testBlogPost, testComment, testData, testGroup, testImage, testImage2, testPage, testSpace, testUser, testUserWithApostrophe, userHelper, users |
Constructor Summary | |
---|---|
AbstractMoveDialogTester(String s)
|
Method Summary | |
---|---|
protected void |
clickDialogSubmitButton(MovePageDialog dialog)
|
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. |
protected String |
getDialogTitle()
|
protected void |
navigateToDialogLaunchPoint(Page page)
Navigate the client to the point in Confluence where the dialog would be launched from but do not actually display the dialog. |
protected MovePageDialog |
openDialog()
|
protected MovePageDialog |
openDialogFor(Page page)
|
protected void |
setUp()
|
protected void |
submitMove(MovePageDialog dialog)
|
void |
testAvailabilityAndDecoration()
|
void |
testCannotChangeSpaceWhenNoRemovePermission()
|
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 |
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 |
testMovePageToKnownLocation()
|
void |
testMovingToSpaceWithDuplicateTitle()
|
void |
testMovingToSpaceWithDuplicateTitleOfChildPage()
|
void |
testMovingToSpaceWithDuplicateTitleOfDescendentPage()
|
void |
testMovingToSpaceWithDuplicateTitleOfDescendentPageToTopOfSpace()
|
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 |
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 |
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()
|
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest |
---|
captureScreenShot, createTestData, runBare, runTest, setAjsLogRendered, setAjsLogVisible, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Menus menus
protected Space monkeySpace
Constructor Detail |
---|
public AbstractMoveDialogTester(String s)
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class AbstractSeleniumTest
Exception
protected void navigateToDialogLaunchPoint(Page page)
page
- the launch point for the dialog or null if there is no pageprotected MovePageDialog openDialogFor(Page page)
protected void clickDialogSubmitButton(MovePageDialog dialog)
protected void submitMove(MovePageDialog dialog)
protected MovePageDialog openDialog()
public void testAvailabilityAndDecoration() throws Exception
Exception
protected String getDialogTitle()
public void testMovePageToKnownLocation() throws Exception
Exception
public void testValidationErrorIfMovingPageBeneathItself() throws Exception
Exception
public void testTreeExpandsInOtherLanguages() throws Exception
Exception
public void testTreeScrollsToShowCurrentParent() throws Exception
Exception
public void testCannotChangeSpaceWhenNoRemovePermission() throws Exception
Exception
public void testTreeDoesNotShowSpaceWithNoCreatePermission() throws Exception
Exception
public void testNoSpacePickerIfNoRemovePermission() throws Exception
Exception
public void testChangingSpace() throws Exception
Exception
public void testChangingSpaceThenCancel() throws Exception
Exception
public void testClickingPageThenCancel() throws Exception
Exception
public void testTreeMoveToHomePageOfAnotherSpace() throws Exception
Exception
public void testMovingToSpaceWithDuplicateTitle() throws Exception
Exception
public void testMovingToSpaceWithDuplicateTitleOfChildPage() throws Exception
Exception
public void testMovingToSpaceWithDuplicateTitleOfDescendentPage() throws Exception
Exception
public void testMovingToSpaceWithDuplicateTitleOfDescendentPageToTopOfSpace() throws Exception
Exception
public void testTreeMoveWithinSameSpace() throws Exception
Exception
public void testTreeMoveToTopOfSameSpace() throws Exception
Exception
public void testTreeMoveToTopOfNewSpace() throws Exception
Exception
public void testTreeCanDisplayPageWithAmpersandInTitle() throws Exception
Exception
public void testTreeContainsDescendantsOfMovedPage() throws Exception
Exception
public void testTreeSpaceChangeDoesNotDiscardSelection() throws Exception
Exception
public void testTreeMoveToSibling() throws Exception
Exception
public void testTreeSpaceNamesAreProperlyEncoded() throws Exception
Exception
public void testTreeClicksDoNotNavigate() throws Exception
Exception
public void testMoreSearchResultsMessage()
public void testReorderWhenNoSiblings() throws Exception
Exception
public void testMoveInsertsPageAtEndOfOrderedSiblings() throws Exception
Exception
public void testMoveInsertsPageAlphabeticalForUnOrderedSiblings() throws Exception
Exception
public void testReorderWithoutMoving() throws Exception
Exception
public void testReorderToFirstUnderSpace() throws Exception
Exception
public void testReorderToLastUnderSpace() throws Exception
Exception
protected List<Page> createPageHierarchy(String pagePrefix, int depth, Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |