com.atlassian.jira.webtest.selenium.auidialog.labels
Class AbstractAuiLabelsDialogTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
              extended by com.atlassian.jira.webtest.selenium.JiraSeleniumTest
                  extended by com.atlassian.jira.webtest.selenium.auidialog.AbstractAuiDialogTest
                      extended by com.atlassian.jira.webtest.selenium.auidialog.labels.AbstractAuiLabelsDialogTest
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
TestEditLabelsInIssueNavigator, TestEditLabelsInViewIssue

public abstract class AbstractAuiLabelsDialogTest
extends AbstractAuiDialogTest

Base class for testing AUI labels dialogs.

Since:
v4.2

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
JiraSeleniumTest.Check
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.auidialog.AbstractAuiDialogTest
BARE_DIALOG_CONTENT_SELECTOR, DEFAULT_TIMEOUT, DIALOG_FORM_SELECTOR_FORMAT, VISIBLE_DIALOG_CONTENT_SELECTOR
 
Fields inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
ADMIN_PASSWORD, ADMIN_USERNAME, backdoor, DROP_DOWN_WAIT, environmentData, HSP_1, logger, MKY_1, PAGE_LOAD_WAIT, PAGE_LOAD_WAIT_TIME, PRESENT_TO_VISIBLE_DELAY, VK_DOWN, VK_ESC, VK_UP
 
Fields inherited from class com.atlassian.selenium.SeleniumTest
assertThat, client, config, recorder
 
Constructor Summary
AbstractAuiLabelsDialogTest()
           
 
Method Summary
protected  void addLabel(String labelText)
           
protected  void assertLabelsDialogOpen()
           
protected  void assertLabelSelectedInDialog(String label)
           
protected  void assertNewLabelPresent(String newLabelValue)
           
protected  void assertNoLabelsInDialog()
           
protected  void assertNoSuggestions()
           
protected  void assertSendNotificationsCheckboxChecked()
           
protected  void assertSendNotificationsCheckboxUnchecked()
           
protected  void assertSuggestionsContain(String suggestedLabel)
           
protected  void assertSuggestionsDropdownPresent()
           
protected  void assertSuggestionsPresent()
           
protected  void checkSendNotifications()
           
protected  LabelsPicker getCurrentPicker()
           
protected  void hackyInsertLabelText(String labelText)
           
protected  void insertLabelText(String labelText)
           
 void onSetUp()
           
protected  void onTearDown()
           
protected  void removeLabels(int number)
           
protected  void setCurrentLabelsPicker(LabelsPicker labelsPicker)
          Factory method for the picker used in this test.
protected  void triggerSuggestionsDropdown()
           
protected  void uncheckSendNotifications()
           
 
Methods inherited from class com.atlassian.jira.webtest.selenium.auidialog.AbstractAuiDialogTest
assertAuiErrorMessage, assertDialogContainsAuiForm, assertDialogContainsText, assertDialogIsOpenAndReady, assertDialogNotLoaded, assertDialogNotOpen, assertFieldHasInlineError, assertFormIsUndecorated, closeDialogByClickingCancel, closeDialogByEscape, defaultDialogSubmitSelector, submitDialog, submitDialog, submitDialogAndWaitForAjax, submitDialogAndWaitForReload, submitDialogAndWaitForReload, submitSelector
 
Methods inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
assertFalse, assertFalse, assertTrue, assertTrue, backgroundLogout, context, getAdministration, getBackdoor, getEnvironmentData, getNavigator, getSeleniumConfiguration, getUserPreferences, getWebUnitTest, getXsrfToken, globalPages, internalSetup, isBeforeJdk15, isKickAssEnabled, isUserAgentFirefox, log, restoreBlankInstance, restoreData, restoreData, restoreData, restoreDataWithPluginsReload, restoreDataWithReplacedTokens, restoreI18nData, restoreUnsetupJIRA, restoreViaBackdoor, restoreViaBackdoorAndGoToDashboard, runBare, runBareTestCase, selectMainWindow, setEnvironmentData, setSeleniumTestListener, suiteFor, timeouts, turnOffProfiling, turnOnProfiling, visibleByTimeoutWithDelay, waitFor, waitForContentUpdate, waitForRestore
 
Methods inherited from class com.atlassian.selenium.SeleniumTest
getRecorder, getSeleniumClient, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

AbstractAuiLabelsDialogTest

public AbstractAuiLabelsDialogTest()
Method Detail

setCurrentLabelsPicker

protected final void setCurrentLabelsPicker(LabelsPicker labelsPicker)
Factory method for the picker used in this test.


getCurrentPicker

protected final LabelsPicker getCurrentPicker()

onSetUp

public void onSetUp()
Overrides:
onSetUp in class AbstractAuiDialogTest

onTearDown

protected void onTearDown()
                   throws Exception
Overrides:
onTearDown in class AbstractAuiDialogTest
Throws:
Exception

assertLabelsDialogOpen

protected final void assertLabelsDialogOpen()

assertLabelSelectedInDialog

protected final void assertLabelSelectedInDialog(String label)

assertNoLabelsInDialog

protected final void assertNoLabelsInDialog()

insertLabelText

protected final void insertLabelText(String labelText)

hackyInsertLabelText

protected final void hackyInsertLabelText(String labelText)

addLabel

protected final void addLabel(String labelText)

removeLabels

protected final void removeLabels(int number)

triggerSuggestionsDropdown

protected final void triggerSuggestionsDropdown()

assertSuggestionsDropdownPresent

protected final void assertSuggestionsDropdownPresent()

assertSuggestionsPresent

protected final void assertSuggestionsPresent()

assertSuggestionsContain

protected final void assertSuggestionsContain(String suggestedLabel)

assertNoSuggestions

protected final void assertNoSuggestions()

assertNewLabelPresent

protected final void assertNewLabelPresent(String newLabelValue)

assertSendNotificationsCheckboxUnchecked

protected final void assertSendNotificationsCheckboxUnchecked()

assertSendNotificationsCheckboxChecked

protected final void assertSendNotificationsCheckboxChecked()

checkSendNotifications

protected final void checkSendNotifications()

uncheckSendNotifications

protected final void uncheckSendNotifications()


Copyright © 2002-2012 Atlassian. All Rights Reserved.