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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewConnection(String name, String clientUrl, String clientID, String clientSecret) Add a new OAuth connection.voiddeleteConnection(int index) Delete a connection identified by its index in the live data.org.xwiki.livedata.test.po.LiveDataElementstatic OpenProjectAdminPagegotoPage()Go to the Administration page to the Open Project section.org.xwiki.test.ui.po.ViewPageTrigger the color sync job by pressing the "Sync" button.org.xwiki.test.ui.po.ViewPageTrigger the Open Project style sync.voidupdateConnection(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, waitUntilActionButtonIsLoadedMethods 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, waitUntilContentMethods 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, watchWikiMethods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
Constructor Details
-
OpenProjectAdminPage
public OpenProjectAdminPage()
-
-
Method Details
-
gotoPage
Go to the Administration page to the Open Project section.- Returns:
- the view model of the admin page.
-
addNewConnection
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.
-