com.atlassian.confluence.selenium
Class EditorAutocompleteLinkShortcutTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.selenium.AbstractSeleniumTest
              extended by com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
                  extended by com.atlassian.confluence.selenium.EditorAutocompleteLinkShortcutTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
EditorAnonAutocompleteLinkNotIExploreTest

public class EditorAutocompleteLinkShortcutTest
extends AbstractEditorAutocompleteTester

Tests Link Autocomplete in the RTE. The autocomplete is fired by the shortcut key, not the trigger character, so these tests can run in IE.


Field Summary
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
defaultUser, editor, editorAutocomplete, isAttachment, isComment, isCreatePage, searchText, shortCut, testContent, tinyMce
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
adminUser, assertThat, client, confluence, confluenceUsersGroup, rpc, screenShotIndex, testBlogPost, testComment, testData, testGroup, testImage, testImage2, testPage, testSpace, testUser, testUserWithApostrophe
 
Constructor Summary
EditorAutocompleteLinkShortcutTest()
           
 
Method Summary
protected  void assertInsertedInRTE()
           
protected  void assertInView()
           
protected  void setUp()
           
protected  void setupWhenTestTypeKnown(long contentId, boolean isSearch)
           
 void testAttachmentLink()
           
 void testAutocompleteDoesNotOpenInLink()
           
 void testInsertWebLink()
           
 void testInsertWebLinkWithEnter()
           
 void testLongPageTitleInHistoryTruncates()
           
 void testSearchFor()
           
 void testSearchForWithRegexChar()
           
 void testSpaceLink()
           
 void testUserLink()
           
 void waitForLink(EditorLink link)
          Waits until the given link exists in the RTE.
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
autocompleteSearchAndSelect, runAutocomplete, setAndSelectText, tearDown, testInsertFromSearchResultWhenCreatingBlogPost, testInsertFromSearchResultWhenCreatingComment, testInsertFromSearchResultWhenCreatingPage, testInsertFromSearchResultWhenEditingBlogPost, testInsertFromSearchResultWhenEditingComment, testInsertFromSearchResultWhenEditingPage, testInsertFromSuggestionWhenCreatingBlogPost, testInsertFromSuggestionWhenCreatingComment, testInsertFromSuggestionWhenCreatingPage, testInsertFromSuggestionWhenEditingBlogPost, testInsertFromSuggestionWhenEditingComment, testInsertFromSuggestionWhenEditingPage, triggerWithShortcut
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
captureScreenShot, captureScreenShot, createTestData, removeTestData, runTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditorAutocompleteLinkShortcutTest

public EditorAutocompleteLinkShortcutTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractEditorAutocompleteTester
Throws:
Exception

setupWhenTestTypeKnown

protected void setupWhenTestTypeKnown(long contentId,
                                      boolean isSearch)
Specified by:
setupWhenTestTypeKnown in class AbstractEditorAutocompleteTester

assertInsertedInRTE

protected void assertInsertedInRTE()
Specified by:
assertInsertedInRTE in class AbstractEditorAutocompleteTester

assertInView

protected void assertInView()
Specified by:
assertInView in class AbstractEditorAutocompleteTester

testSearchFor

public void testSearchFor()

testSearchForWithRegexChar

public void testSearchForWithRegexChar()

testInsertWebLink

public void testInsertWebLink()

testInsertWebLinkWithEnter

public void testInsertWebLinkWithEnter()

testSpaceLink

public void testSpaceLink()

testUserLink

public void testUserLink()

testAttachmentLink

public void testAttachmentLink()

testAutocompleteDoesNotOpenInLink

public void testAutocompleteDoesNotOpenInLink()

testLongPageTitleInHistoryTruncates

public void testLongPageTitleInHistoryTruncates()

waitForLink

public void waitForLink(EditorLink link)
Waits until the given link exists in the RTE.

Parameters:
link - and Editor Link with an expected alias, href and wiki destination


Copyright © 2003-2011 Atlassian. All Rights Reserved.