com.atlassian.confluence.webdriver.editor.content
Class EditorSearchAndReplaceTest

java.lang.Object
  extended by com.atlassian.confluence.webdriver.AbstractEditorContentWebDriverTest
      extended by com.atlassian.confluence.webdriver.editor.content.EditorSearchAndReplaceTest

public class EditorSearchAndReplaceTest
extends AbstractEditorContentWebDriverTest

Test different functionality of the search/replace, once it's open.


Field Summary
 
Fields inherited from class com.atlassian.confluence.webdriver.AbstractEditorContentWebDriverTest
cancelAnyAlert, cancelAnyEditorAuiModalDialog, editor, editorContent, globalTimeout, ignoreRule, logPageSourceRule, logTimeRule, OS_CTRL_KEY, product, rpc, webDriverScreenshotRule
 
Constructor Summary
EditorSearchAndReplaceTest()
           
 
Method Summary
 void clearAllFields()
           
static void closeToolBar()
           
static void openToolBar()
           
 void testEnterInReplaceFieldPerformsASearch()
           
 void testEscapeClosesSearchBar()
           
 void testFind()
           
 void testFindAndReplaceUsingButtonsIncludingWrap()
           
 void testFindAndReplaceWhereMatchBeginsAndEndsInDifferentElement()
           
 void testFindFollowedByReplaceAll()
           
 void testFindNextUsingButtonIncludingWrap()
           
 void testFindNextUsingEnterKey()
           
 void testFindPreviousUsingButtonIncludingWrap()
           
 void testFindThenEditCausesHighlightToDisappearAndShouldNotBePartOfTheUndoLevel()
           
 void testFindWithEnter()
           
 void testMarkRemovalDoesntRemoveSpaces()
           
 void testMarkRemovedByEditorOnGetContent()
           
 void testReplaceAllText()
           
 void testReplaceAllTextIsHTMLEncoded()
           
 void testReplaceBecomesDisabledOnceEditorUpdated()
           
 void testReplaceOne()
           
 void testReplaceOneOnlyReplacesFirstMatch()
           
 void testReplaceOneWithEnter()
           
 void testReplaceSeveral()
           
 void testReplaceTextIsHTMLEncoded()
           
 void testReplaceThenUndoThenFindAgainShouldNotResultInMultipleHighlights()
           
 void testShortcutActivatesSearchBar()
           
 void testShortcutFocusesInputWhenSearchBarIsAlreadyOpen()
           
 
Methods inherited from class com.atlassian.confluence.webdriver.AbstractEditorContentWebDriverTest
assertEditorHtml, assertEditorHtml, assertEditorHtmlContains, assertEditorHtmlDoesNotContain, assertEditorText, assertElementAttributeValue, assertElementNumberOfMatches, assertElementText, assertElementText, assertElementTextContains, clearContent, clickOnElement, ignoreBrowserDecorator, ignoreBrowserDecoratorSetup, ignoreBrowserDecoratorTearDown, insertAndWaitForFixture, insertAndWaitForFixture, placeCursorAtTheEndOfElement, placeCursorAtTheStartOfElement, pressBackspace, pressDelete, pressDown, pressEnter, pressEsc, pressLeft, pressMultipleKeys, pressReturn, pressRight, pressTab, pressUp, setupEditor, tearDownEditor, typeInTheEditor, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorSearchAndReplaceTest

public EditorSearchAndReplaceTest()
Method Detail

openToolBar

public static void openToolBar()

closeToolBar

public static void closeToolBar()

clearAllFields

public void clearAllFields()

testFind

public void testFind()

testFindWithEnter

public void testFindWithEnter()

testReplaceOne

public void testReplaceOne()

testReplaceOneWithEnter

public void testReplaceOneWithEnter()

testReplaceOneOnlyReplacesFirstMatch

public void testReplaceOneOnlyReplacesFirstMatch()

testReplaceSeveral

public void testReplaceSeveral()

testReplaceAllText

public void testReplaceAllText()

testFindNextUsingButtonIncludingWrap

public void testFindNextUsingButtonIncludingWrap()

testFindNextUsingEnterKey

public void testFindNextUsingEnterKey()

testFindPreviousUsingButtonIncludingWrap

public void testFindPreviousUsingButtonIncludingWrap()

testFindAndReplaceUsingButtonsIncludingWrap

public void testFindAndReplaceUsingButtonsIncludingWrap()

testEnterInReplaceFieldPerformsASearch

public void testEnterInReplaceFieldPerformsASearch()

testFindFollowedByReplaceAll

public void testFindFollowedByReplaceAll()

testReplaceBecomesDisabledOnceEditorUpdated

public void testReplaceBecomesDisabledOnceEditorUpdated()

testMarkRemovedByEditorOnGetContent

public void testMarkRemovedByEditorOnGetContent()

testMarkRemovalDoesntRemoveSpaces

public void testMarkRemovalDoesntRemoveSpaces()

testReplaceThenUndoThenFindAgainShouldNotResultInMultipleHighlights

public void testReplaceThenUndoThenFindAgainShouldNotResultInMultipleHighlights()

testFindThenEditCausesHighlightToDisappearAndShouldNotBePartOfTheUndoLevel

public void testFindThenEditCausesHighlightToDisappearAndShouldNotBePartOfTheUndoLevel()

testReplaceTextIsHTMLEncoded

public void testReplaceTextIsHTMLEncoded()

testReplaceAllTextIsHTMLEncoded

public void testReplaceAllTextIsHTMLEncoded()

testFindAndReplaceWhereMatchBeginsAndEndsInDifferentElement

public void testFindAndReplaceWhereMatchBeginsAndEndsInDifferentElement()

testShortcutActivatesSearchBar

public void testShortcutActivatesSearchBar()

testShortcutFocusesInputWhenSearchBarIsAlreadyOpen

public void testShortcutFocusesInputWhenSearchBarIsAlreadyOpen()

testEscapeClosesSearchBar

public void testEscapeClosesSearchBar()


Copyright © 2003-2014 Atlassian. All Rights Reserved.