Class EditPermissionsSinglePage
java.lang.Object
com.atlassian.jira.pageobjects.pages.AbstractJiraPage
com.atlassian.jira.pageobjects.pages.EditPermissionsPage
com.atlassian.jira.pageobjects.pages.EditPermissionsSinglePage
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
Represents Page Object for page of
"/secure/admin/EditPermissions.jspa".
- Since:
- v7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Dialog to grant permissions NOTE: This page object assumes the locale was set to EN_MOONstatic final class
Permissions entry (inside permissions container) NOTE: This page object assumes the locale was set to EN_MOONstatic final class
Dialog to revoke permissions NOTE: This page object assumes the locale was set to EN_MOONNested classes/interfaces inherited from class com.atlassian.jira.pageobjects.pages.EditPermissionsPage
EditPermissionsPage.DeleteLink, EditPermissionsPage.PermissionsRow, EditPermissionsPage.PermissionsRowPermission
-
Field Summary
Fields inherited from class com.atlassian.jira.pageobjects.pages.EditPermissionsPage
LEGACY_PROJECT_PERMISSIONS_PAGE_DARK_FEATURE
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
body, driver, elementFinder, javascriptExecutor, metaElement, pageBinder, timeouts, webDriverPoller
-
Constructor Summary
ConstructorsConstructorDescriptionEditPermissionsSinglePage
(int schemeId) EditPermissionsSinglePage
(long schemeId) Created so it would work if we use the FuncTestConstants.DEFAULT_PERM_SCHEME_ID for example -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
static String
getPageUrl
(int schemeId) Used to be able to get the page url for this given page type.getPermissionEntry
(ProjectPermissionKey projectPermissionKey) Get the container for a given permission keygetPermissionEntry
(String permissionKey) Get the container for a given permission.getUrl()
boolean
boolean
boolean
hasInvalidUserWarningForSection
(String sectionTitle) com.atlassian.pageobjects.elements.query.TimedCondition
boolean
hasPermissionEntry
(ProjectPermissionKey projectPermissionKey) Determines whether an entry exists for the specified permission.boolean
hasPermissionEntry
(String permission) Determines whether an entry exists for the specified permission.boolean
invalidUserWarningMessageContains
(String permissionKey, String username) com.atlassian.pageobjects.elements.query.TimedCondition
isAt()
Timed condition checking if we're at given page.boolean
isSingleUserPermDisplayedAsInvalidUser
(String permissionKey, String username) void
Methods inherited from class com.atlassian.jira.pageobjects.pages.EditPermissionsPage
addForPermission, deleteForGroup, getPermissionById, getPermissionsContainer, getPermissionsDeleteLinkIdsByPermission, getPermissionsRowByPermission, getSchemeId, hasPermissionRow
Methods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
back, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
-
Constructor Details
-
EditPermissionsSinglePage
public EditPermissionsSinglePage(int schemeId) -
EditPermissionsSinglePage
public EditPermissionsSinglePage(long schemeId) Created so it would work if we use the FuncTestConstants.DEFAULT_PERM_SCHEME_ID for example
-
-
Method Details
-
isAt
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()Timed condition checking if we're at given page.- Overrides:
isAt
in classEditPermissionsPage
- Returns:
- timed condition checking, if the test is at given page
-
getUrl
- Specified by:
getUrl
in interfacecom.atlassian.pageobjects.Page
- Overrides:
getUrl
in classEditPermissionsPage
-
getPageUrl
Used to be able to get the page url for this given page type. This is used for testing and redirects to check the url is correct.- Parameters:
schemeId
- of a the page- Returns:
- url of page
-
hasPermissionEntry
Determines whether an entry exists for the specified permission.- Parameters:
permission
- name of permission- Returns:
- boolean value indicating whether the permission exists
-
hasPermissionEntry
Determines whether an entry exists for the specified permission.- Parameters:
projectPermissionKey
- key of the permission- Returns:
- boolean value indicating whether the permission exists
-
getPermissionEntry
Get the container for a given permission.- Parameters:
permissionKey
- key of permission- Returns:
EditPermissionsSinglePage.PermissionsEntry
-
getPermissionEntry
public EditPermissionsSinglePage.PermissionsEntry getPermissionEntry(ProjectPermissionKey projectPermissionKey) Get the container for a given permission key- Parameters:
projectPermissionKey
- for the permission- Returns:
EditPermissionsSinglePage.PermissionsEntry
-
hasHeaderPluginPoint
public boolean hasHeaderPluginPoint() -
hasGrantPermissionButton
public boolean hasGrantPermissionButton() -
assertExtendedPermissionIsVisible
public void assertExtendedPermissionIsVisible() -
assertExtendedPermissionIsHidden
public void assertExtendedPermissionIsHidden() -
assertExtendedPermissionIsChecked
public void assertExtendedPermissionIsChecked() -
assertExtendedPermissionIsUnchecked
public void assertExtendedPermissionIsUnchecked() -
toggleExtendedProjectAdminCheckbox
public void toggleExtendedProjectAdminCheckbox() -
hasOptOutFlagDialogDisplayed
public com.atlassian.pageobjects.elements.query.TimedCondition hasOptOutFlagDialogDisplayed() -
openDialogFromGrantPermissionButton
-
getUsedBy
-
isSingleUserPermDisplayedAsInvalidUser
-
hasInvalidUserWarningForSection
-
invalidUserWarningMessageContains
-