Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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 getConnectionsLivedata()  
      static OpenProjectAdminPage gotoPage()
      Go to the Administration page to the Open Project section.
      org.xwiki.test.ui.po.ViewPage triggerColorSyncJob()
      Trigger the color sync job by pressing the "Sync" button.
      org.xwiki.test.ui.po.ViewPage triggerStyleSync()
      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, 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, getContent, 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, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, watchDocument, watchSpace, watchWiki
      • Methods inherited from class org.xwiki.test.ui.po.BaseElement

        getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
    • Constructor Detail

      • OpenProjectAdminPage

        public OpenProjectAdminPage()
    • Method Detail

      • 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.