public abstract class AbstractEditorAutocompleteTester extends AbstractSeleniumTest
Default suggestions and "quicknav" are tested based on a trigger character and test data defined in the subclass.
Modifier and Type | Field and Description |
---|---|
protected User |
defaultUser |
protected Editor |
editor |
protected EditorAutocomplete |
editorAutocomplete |
protected boolean |
isAttachment |
protected boolean |
isComment |
protected boolean |
isCreatePage |
protected String |
searchText |
protected TinyMce.ShortCut |
shortCut |
protected TitledContent |
testContent |
protected TinyMce |
tinyMce |
adminUser, assertThat, client, rpc, screenShotIndex, suite, testBlogPost, testData, testImage, testImage2, testPage, testSpace, testUser, testUserWithApostrophe, userHelper
Constructor and Description |
---|
AbstractEditorAutocompleteTester() |
captureScreenShot, createTestData, runTest
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
protected Editor editor
protected User defaultUser
protected TinyMce tinyMce
protected EditorAutocomplete editorAutocomplete
protected boolean isComment
protected boolean isAttachment
protected boolean isCreatePage
protected TitledContent testContent
protected TinyMce.ShortCut shortCut
protected String searchText
protected void setUp() throws Exception
setUp
in class AbstractSeleniumTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractSeleniumTest
Exception
public void testInsertFromSuggestionWhenCreatingPage() throws Exception
Exception
public void testInsertFromSuggestionWhenEditingPage() throws Exception
Exception
public void testInsertFromSuggestionWhenCreatingBlogPost() throws Exception
Exception
public void testInsertFromSuggestionWhenEditingBlogPost() throws Exception
Exception
public void testInsertFromSuggestionWhenCreatingComment() throws Exception
Exception
public void testInsertFromSuggestionWhenEditingComment() throws Exception
Exception
public void testInsertFromSearchResultWhenCreatingPage() throws Exception
Exception
public void testInsertFromSearchResultWhenEditingPage() throws Exception
Exception
public void testInsertFromSearchResultWhenCreatingBlogPost() throws Exception
Exception
public void testInsertFromSearchResultWhenEditingBlogPost() throws Exception
Exception
public void testInsertFromSearchResultWhenCreatingComment() throws Exception
Exception
public void testInsertFromSearchResultWhenEditingComment() throws Exception
Exception
protected void runAutocomplete()
protected void autocompleteSearchAndSelect()
protected void setAndSelectText(String searchText)
protected EditorAutocomplete triggerWithShortcut()
protected abstract void setupWhenTestTypeKnown(long contentId, boolean isSearch)
protected abstract void assertInsertedInRTE()
protected abstract void assertInView()
Copyright © 2003–2018 Atlassian. All rights reserved.