com.atlassian.confluence.selenium
Class AbstractEditorAutocompleteTester
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.selenium.AbstractSeleniumTest
com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- EditorAutocompleteImageShortcutTest, EditorAutocompleteLinkShortcutTest
public abstract class AbstractEditorAutocompleteTester
- extends AbstractSeleniumTest
Tests Autocomplete dropdown in the RTE.
Default suggestions and "quicknav" are tested based on a trigger character and test data defined in the subclass.
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 |
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 |
editor
protected Editor editor
defaultUser
protected User defaultUser
tinyMce
protected TinyMce tinyMce
editorAutocomplete
protected EditorAutocomplete editorAutocomplete
isComment
protected boolean isComment
isAttachment
protected boolean isAttachment
isCreatePage
protected boolean isCreatePage
testContent
protected TitledContent testContent
shortCut
protected TinyMce.ShortCut shortCut
searchText
protected String searchText
AbstractEditorAutocompleteTester
public AbstractEditorAutocompleteTester()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractSeleniumTest
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class AbstractSeleniumTest
- Throws:
Exception
testInsertFromSuggestionWhenCreatingPage
public void testInsertFromSuggestionWhenCreatingPage()
throws Exception
- Throws:
Exception
testInsertFromSuggestionWhenEditingPage
public void testInsertFromSuggestionWhenEditingPage()
throws Exception
- Throws:
Exception
testInsertFromSuggestionWhenCreatingBlogPost
public void testInsertFromSuggestionWhenCreatingBlogPost()
throws Exception
- Throws:
Exception
testInsertFromSuggestionWhenEditingBlogPost
public void testInsertFromSuggestionWhenEditingBlogPost()
throws Exception
- Throws:
Exception
testInsertFromSuggestionWhenCreatingComment
public void testInsertFromSuggestionWhenCreatingComment()
throws Exception
- Throws:
Exception
testInsertFromSuggestionWhenEditingComment
public void testInsertFromSuggestionWhenEditingComment()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenCreatingPage
public void testInsertFromSearchResultWhenCreatingPage()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenEditingPage
public void testInsertFromSearchResultWhenEditingPage()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenCreatingBlogPost
public void testInsertFromSearchResultWhenCreatingBlogPost()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenEditingBlogPost
public void testInsertFromSearchResultWhenEditingBlogPost()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenCreatingComment
public void testInsertFromSearchResultWhenCreatingComment()
throws Exception
- Throws:
Exception
testInsertFromSearchResultWhenEditingComment
public void testInsertFromSearchResultWhenEditingComment()
throws Exception
- Throws:
Exception
runAutocomplete
protected void runAutocomplete()
autocompleteSearchAndSelect
protected void autocompleteSearchAndSelect()
setAndSelectText
protected void setAndSelectText(String searchText)
triggerWithShortcut
protected EditorAutocomplete triggerWithShortcut()
setupWhenTestTypeKnown
protected abstract void setupWhenTestTypeKnown(long contentId,
boolean isSearch)
assertInsertedInRTE
protected abstract void assertInsertedInRTE()
assertInView
protected abstract void assertInView()
Copyright © 2003-2010 Atlassian. All Rights Reserved.