com.atlassian.confluence.webdriver.editor
Class EditorDraftsTest

java.lang.Object
  extended by com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
      extended by com.atlassian.confluence.webdriver.editor.base.AbstractEditorDraftsTest
          extended by com.atlassian.confluence.webdriver.editor.EditorDraftsTest

public class EditorDraftsTest
extends AbstractEditorDraftsTest

Tests should be migrated from com.atlassian.confluence.selenium.EditorDraftsTest to here.


Field Summary
 org.junit.rules.ExpectedException expectedException
           
 
Fields inherited from class com.atlassian.confluence.webdriver.editor.base.AbstractEditorDraftsTest
editorPage
 
Fields inherited from class com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
darkFeaturesHelper, methodRules, name, product, rpc, serverStateManager, testData, userHelper
 
Constructor Summary
EditorDraftsTest()
           
 
Method Summary
 void allowQuickEdit()
           
 void testBackButtonKeepsTriggeringConfirmationDialog()
           
 void testBackButtonSavesDraft()
           
 void testBackButtonTriggersConfirmationDialog()
           
 void testCancelConfirmationDialogDoesntTriggerConfirmationDialogAgain()
           
 void testCancelPageCreationWithAttachmentOnDraft()
           
 void testCannotViewChangesOnCreatePage()
           
 void testCreateDraftAndResume()
           
 void testCreateDraftForBlogPostThatDoesNotExist()
           
 void testCreateDraftForPageThatDoesNotExist()
           
 void testDirtyCheckOnLoadInQuickEdit()
           
 void testDiscardDraftDoesNotClearExistingContent()
           
 void testDiscardDraftDoesNotSaveNewEmptyDraft()
           
 void testDiscardFromDraftsPage()
           
 void testDraftAppearsInProfile()
           
 void testDraftChangesDialogShows()
           
 void testDraftIsCreatedAfterSaveIntervalDuringCreate()
          This tests that autosave works.
 void testDraftIsCreatedAfterSaveIntervalDuringEdit()
          Ported from a selenium test that doesn't work on IE.
 void testDraftNotOverwrittenWithoutChangesInQuickEdit()
          If you quickedit a page with an existing draft, and you don't change any content, saving operations should not be triggered to overwrite the draft.
 void testDraftNotOverwrittenWithoutChangesInQuickEditAfterPreview()
          If you quickedit a page with an existing draft, and you don't change any content, saving operations should not be triggered to overwrite the draft.
 void testDraftSavedForBlogPost()
           
 void testDraftSavedOnCreateBlogAndCancel()
           
 void testDraftSavedOnCreatePageAndCancel()
           
 void testDraftSavedOnEditAndCancel()
           
 void testDraftSavedOnEditAndNavigate()
          Navigating away from a draft should generate a draft if the content has changed even if there is no preview or periodic draft save to make it happen.
 void testDraftSavedOnEditAndPreviewAndCancel()
           
 void testDraftSavedOnEditAndPreviewAndNavigate()
           
 void testExistingDraftNotOverriddenOnCleanEditAndCancel()
           
 void testNoDraftSavedOnCleanEditAndCancel()
           
 void testResumeEditingFromEditor()
           
 void testViewChangesWhileEditing()
           
 
Methods inherited from class com.atlassian.confluence.webdriver.editor.base.AbstractEditorDraftsTest
discardDraftAndVerifySuccess, makeChangesAndCreateDraft, makeChangesAndResumeDraft, navigateAwayAndAcceptAlert, resumeDraftFromEditor
 
Methods inherited from class com.atlassian.confluence.webdriver.AbstractInjectableWebDriverTest
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expectedException

public org.junit.rules.ExpectedException expectedException
Constructor Detail

EditorDraftsTest

public EditorDraftsTest()
Method Detail

allowQuickEdit

public void allowQuickEdit()

testDraftSavedOnEditAndPreviewAndCancel

public void testDraftSavedOnEditAndPreviewAndCancel()

testDraftSavedOnEditAndCancel

public void testDraftSavedOnEditAndCancel()

testNoDraftSavedOnCleanEditAndCancel

public void testNoDraftSavedOnCleanEditAndCancel()

testExistingDraftNotOverriddenOnCleanEditAndCancel

public void testExistingDraftNotOverriddenOnCleanEditAndCancel()

testDraftSavedOnEditAndPreviewAndNavigate

public void testDraftSavedOnEditAndPreviewAndNavigate()

testBackButtonSavesDraft

public void testBackButtonSavesDraft()

testBackButtonKeepsTriggeringConfirmationDialog

public void testBackButtonKeepsTriggeringConfirmationDialog()

testBackButtonTriggersConfirmationDialog

public void testBackButtonTriggersConfirmationDialog()

testCancelConfirmationDialogDoesntTriggerConfirmationDialogAgain

public void testCancelConfirmationDialogDoesntTriggerConfirmationDialogAgain()

testDirtyCheckOnLoadInQuickEdit

public void testDirtyCheckOnLoadInQuickEdit()

testDraftNotOverwrittenWithoutChangesInQuickEditAfterPreview

public void testDraftNotOverwrittenWithoutChangesInQuickEditAfterPreview()
If you quickedit a page with an existing draft, and you don't change any content, saving operations should not be triggered to overwrite the draft.


testDraftNotOverwrittenWithoutChangesInQuickEdit

public void testDraftNotOverwrittenWithoutChangesInQuickEdit()
If you quickedit a page with an existing draft, and you don't change any content, saving operations should not be triggered to overwrite the draft.


testDraftSavedOnEditAndNavigate

public void testDraftSavedOnEditAndNavigate()
Navigating away from a draft should generate a draft if the content has changed even if there is no preview or periodic draft save to make it happen. If that behaviour breaks, this test will pass intermittently. THIS TEST PASSING/FAILING INTERMITTENTLY PROBABLY MEANS THE BEHAVIOUR HAS BROKEN. Unfortunately, it is currently reliably failing on bamboo on chrome.


testDraftChangesDialogShows

public void testDraftChangesDialogShows()

testDraftSavedOnCreatePageAndCancel

public void testDraftSavedOnCreatePageAndCancel()

testDraftSavedForBlogPost

public void testDraftSavedForBlogPost()

testDraftSavedOnCreateBlogAndCancel

public void testDraftSavedOnCreateBlogAndCancel()

testDraftIsCreatedAfterSaveIntervalDuringEdit

public void testDraftIsCreatedAfterSaveIntervalDuringEdit()
Ported from a selenium test that doesn't work on IE. May not work on IE on WebDriver either.


testDraftIsCreatedAfterSaveIntervalDuringCreate

public void testDraftIsCreatedAfterSaveIntervalDuringCreate()
This tests that autosave works.


testResumeEditingFromEditor

public void testResumeEditingFromEditor()

testCannotViewChangesOnCreatePage

public void testCannotViewChangesOnCreatePage()

testViewChangesWhileEditing

public void testViewChangesWhileEditing()

testCreateDraftAndResume

public void testCreateDraftAndResume()

testDraftAppearsInProfile

public void testDraftAppearsInProfile()

testDiscardDraftDoesNotSaveNewEmptyDraft

public void testDiscardDraftDoesNotSaveNewEmptyDraft()

testDiscardDraftDoesNotClearExistingContent

public void testDiscardDraftDoesNotClearExistingContent()

testCancelPageCreationWithAttachmentOnDraft

public void testCancelPageCreationWithAttachmentOnDraft()

testCreateDraftForPageThatDoesNotExist

public void testCreateDraftForPageThatDoesNotExist()

testCreateDraftForBlogPostThatDoesNotExist

public void testCreateDraftForBlogPostThatDoesNotExist()

testDiscardFromDraftsPage

public void testDiscardFromDraftsPage()


Copyright © 2003–2015 Atlassian. All rights reserved.