use of io.blueocean.ath.model.MultiBranchPipeline in project blueocean-plugin by jenkinsci.
the class FavoritesNavigationTest method testMultibranch.
@Test
public void testMultibranch() throws IOException, GitAPIException {
String branchMaster = "master";
String branchOther = "feature/1";
git.writeJenkinsFile(resources.loadJenkinsFile());
git.addAll();
git.commit("First");
git.createBranch(branchOther);
String jobName = "navigation-multibranch";
MultiBranchPipeline pipeline = multibranchFactory.pipeline(FOLDER, jobName).createPipeline(git);
String fullName = pipeline.getFullName();
// the basics
addAsFavorite(pipeline);
checkRunDetails(pipeline);
back();
checkActivity(pipeline);
dashboardPage.open();
// check the branches tab
BranchPage branches = navigateBranches(pipeline).checkFavoriteStatus(branchMaster, true).checkFavoriteStatus(branchOther, false).toggleFavoriteStatus(branchOther);
// test linking to run details
branches.openRunDetails(branchMaster).checkBasicDomElements().back();
branches.openRunDetails(branchOther).checkBasicDomElements().back();
// check dashboard favorites
go(-2);
dashboardPage.checkFavoriteCardCount(2);
}
Aggregations