Class EditPermissionsSinglePage

All Implemented Interfaces:
com.atlassian.pageobjects.Page

public class EditPermissionsSinglePage extends EditPermissionsPage
Represents Page Object for page of "/secure/admin/EditPermissions.jspa".
Since:
v7.1
  • 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 class EditPermissionsPage
      Returns:
      timed condition checking, if the test is at given page
    • getUrl

      public String getUrl()
      Specified by:
      getUrl in interface com.atlassian.pageobjects.Page
      Overrides:
      getUrl in class EditPermissionsPage
    • getPageUrl

      public static String getPageUrl(int schemeId)
      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

      public boolean hasPermissionEntry(String permission)
      Determines whether an entry exists for the specified permission.
      Parameters:
      permission - name of permission
      Returns:
      boolean value indicating whether the permission exists
    • hasPermissionEntry

      public boolean hasPermissionEntry(ProjectPermissionKey projectPermissionKey)
      Determines whether an entry exists for the specified permission.
      Parameters:
      projectPermissionKey - key of the permission
      Returns:
      boolean value indicating whether the permission exists
    • getPermissionEntry

      public EditPermissionsSinglePage.PermissionsEntry getPermissionEntry(String permissionKey)
      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

      public EditPermissionsSinglePage.GrantPermissionsDialog openDialogFromGrantPermissionButton()
    • getUsedBy

      public LozengeUsedBy getUsedBy()
    • isSingleUserPermDisplayedAsInvalidUser

      public boolean isSingleUserPermDisplayedAsInvalidUser(String permissionKey, String username)
    • hasInvalidUserWarningForSection

      public boolean hasInvalidUserWarningForSection(String sectionTitle)
    • invalidUserWarningMessageContains

      public boolean invalidUserWarningMessageContains(String permissionKey, String username)