Class OpenProjectAdminPage

java.lang.Object
org.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.BasePage
org.xwiki.test.ui.po.ViewPage
org.xwiki.administration.test.po.AdministrationSectionPage
com.xwiki.projectmanagement.test.openproject.OpenProjectAdminPage

public class OpenProjectAdminPage extends org.xwiki.administration.test.po.AdministrationSectionPage
Models the administration page of the Open Project integration.
Since:
1.0-rc-4
Version:
$Id$
  • Field Summary

    Fields inherited from class org.xwiki.test.ui.po.BasePage

    logo
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNewConnection(String name, String clientUrl, String clientID, String clientSecret)
    Add a new OAuth connection.
    void
    deleteConnection(int index)
    Delete a connection identified by its index in the live data.
    org.xwiki.livedata.test.po.LiveDataElement
     
    Go to the Administration page to the Open Project section.
    org.xwiki.test.ui.po.ViewPage
    Trigger the color sync job by pressing the "Sync" button.
    org.xwiki.test.ui.po.ViewPage
    Trigger the Open Project style sync.
    void
    updateConnection(int index, String name, String clientUrl, String clientID, String clientSecret)
    Update an OAuth connection displayed in the liveData present in the Admin section.

    Methods inherited from class org.xwiki.administration.test.po.AdministrationSectionPage

    clickSave, clickSave, getContent, getFormContainerElement, getFormContainerElement, getFormContainerElementForClass, getURL, getURL, getURL, gotoPage, gotoSpaceAdministration, hasHeading, hasLink, waitUntilActionButtonIsLoaded

    Methods inherited from class org.xwiki.test.ui.po.ViewPage

    clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getLastModifiedText, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutForDocExtraPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent

    Methods inherited from class org.xwiki.test.ui.po.BasePage

    canDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getDrawerMenu, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, getXWikiMessageContent, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, isAuthenticated, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, toggleActionMenu, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, validateWCAG, validateWCAG, validateWCAG, viewChildren, watchDocument, watchSpace, watchWiki

    Methods inherited from class org.xwiki.test.ui.po.BaseElement

    getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenProjectAdminPage

      public OpenProjectAdminPage()
  • Method Details

    • gotoPage

      public static OpenProjectAdminPage gotoPage()
      Go to the Administration page to the Open Project section.
      Returns:
      the view model of the admin page.
    • addNewConnection

      public void addNewConnection(String name, String clientUrl, String clientID, String clientSecret)
      Add a new OAuth connection.
      Parameters:
      name - the name of the connection - needs to be unique among the other connections.
      clientUrl - the url where the OAuth provider is located.
      clientID - the client id provided by the OAuth provider.
      clientSecret - the client secret provided by tge OAuth provider.
    • updateConnection

      public void updateConnection(int index, String name, String clientUrl, String clientID, String clientSecret)
      Update an OAuth connection displayed in the liveData present in the Admin section.
      Parameters:
      index - the index of the connection from the livedata. It starts at 1.
      name - the new name for the selected connection.
      clientUrl - the new client url for the selected connection.
      clientID - the new client id for the selected connection.
      clientSecret - the new client secret for the selected connection.
    • triggerColorSyncJob

      public org.xwiki.test.ui.po.ViewPage triggerColorSyncJob()
      Trigger the color sync job by pressing the "Sync" button.
      Returns:
      the view page of the Job Scheduler.
    • deleteConnection

      public void deleteConnection(int index)
      Delete a connection identified by its index in the live data.
      Parameters:
      index - the index of the connection inside the livedata. The indexing starts at 1.
    • getConnectionsLivedata

      public org.xwiki.livedata.test.po.LiveDataElement getConnectionsLivedata()
      Returns:
      the livedata inside the Admin page.
    • triggerStyleSync

      public org.xwiki.test.ui.po.ViewPage triggerStyleSync()
      Trigger the Open Project style sync.
      Returns:
      the view page of the Job Scheduler.