Class StashVcsComponent
java.lang.Object
com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.stash.StashVcsComponent
- All Implemented Interfaces:
VcsComponent
-
Field Summary
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
convertToLinkedButton, driver, elementFinder, globalRepositoryDetails, pageBinder, repositoryDisplayName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoOAuthDance
(Consumer<String> logger) doOAuthDanceIfNeeded
(Consumer<String> logger) getAvailableMirrorsNames
(boolean expectingActualSelection) @NotNull String
text use in repository selection (option field or link text)getInfo()
boolean
hasErrorMessage
(String text) com.atlassian.pageobjects.elements.query.TimedCondition
com.atlassian.pageobjects.elements.query.TimedCondition
com.atlassian.pageobjects.elements.query.TimedCondition
hasInfo()
com.atlassian.pageobjects.elements.query.TimedCondition
com.atlassian.pageobjects.elements.query.TimedCondition
com.atlassian.pageobjects.elements.query.TimedCondition
void
void
populateStashDetails
(com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repository) We're usingVcsRepositoryProperties.getDescription()
to define "Project-name / repository-name" value to choose in the UI selectorpopulateStashDetails
(String projectName, String repositoryName, @Nullable String branchName) boolean
boolean
selectBranch
(@NotNull String branchName) selectMirror
(@NotNull String mirrorName) selectRepository
(@NotNull String repositoryName) selectRepository
(@NotNull String projectKey, @NotNull String repositoryName) Methods inherited from class com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
canConvertToLinked, configureBambooSpecs, convertToLinked, isConvertToLinkedButtonEnabled, isConvertToLinkedButtonPresent, isLinkedRepository, save, saveCreate, saveUpdate, setDisplayName, supportsRss, withChangeDetectionOptions, withCommitIsolation, withDefaultRepositoryPermission
-
Constructor Details
-
StashVcsComponent
public StashVcsComponent() -
StashVcsComponent
-
-
Method Details
-
getDisplayName
Description copied from interface:VcsComponent
text use in repository selection (option field or link text) -
populateStashDetails
- Throws:
Exception
-
populateStashDetails
public StashVcsComponent populateStashDetails(com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repository) throws Exception We're usingVcsRepositoryProperties.getDescription()
to define "Project-name / repository-name" value to choose in the UI selector- Throws:
Exception
-
populateStashDetails
public StashVcsComponent populateStashDetails(String projectName, String repositoryName, @Nullable @Nullable String branchName) throws Exception - Throws:
Exception
-
waitUntilServerSelected
-
selectRepository
-
selectMirror
-
getAvailableMirrorsNames
-
getMirrorName
-
selectRepository
public StashVcsComponent selectRepository(@NotNull @NotNull String projectKey, @NotNull @NotNull String repositoryName) -
getSelectedRepositoryValue
-
waitUntilRepositorySelected
-
openBranchSelector
public void openBranchSelector() -
getVisibleBranches
-
selectBranch
-
getSelectedBranchValue
-
waitUntilBranchSelected
-
doOAuthDanceIfNeeded
- Throws:
Exception
-
doOAuthDanceIfNeeded
- Throws:
Exception
-
doOAuthDance
- Throws:
Exception
-
doOAuthDance
- Throws:
Exception
-
mustHaveErrorMessage
public void mustHaveErrorMessage() -
hasErrorMessages
public com.atlassian.pageobjects.elements.query.TimedCondition hasErrorMessages() -
getErrorMessage
-
getErrorMessages
-
hasErrorMessage
-
hasFormErrors
public com.atlassian.pageobjects.elements.query.TimedCondition hasFormErrors() -
requiresApplinkCreation
public boolean requiresApplinkCreation() -
requiresOAuthDance
public boolean requiresOAuthDance() -
hasWarnings
public com.atlassian.pageobjects.elements.query.TimedCondition hasWarnings() -
isRepositoryAjaxCompleted
public com.atlassian.pageobjects.elements.query.TimedCondition isRepositoryAjaxCompleted() -
getWarning
-
hasInfo
public com.atlassian.pageobjects.elements.query.TimedCondition hasInfo() -
getInfo
-
isWebRepositorySetToStash
public com.atlassian.pageobjects.elements.query.TimedCondition isWebRepositorySetToStash() -
withAdvancedOptions
- Overrides:
withAdvancedOptions
in classAbstractVcsComponent
-