use of io.blueocean.ath.model.ClassicPipeline in project blueocean-plugin by jenkinsci.
the class FavoritesCardsTest method testClassicPipeline.
@Test
public void testClassicPipeline() throws IOException {
String jobName = "favoritescards-pipeline";
String script = resources.loadJenkinsFile();
ClassicPipeline pipeline = pipelineFactory.pipeline(FOLDER, jobName).createPipeline(script).build();
String fullName = pipeline.getFullName();
dashboardPage.open();
dashboardPage.togglePipelineListFavorite(jobName);
dashboardPage.checkFavoriteCardCount(1);
dashboardPage.checkFavoriteCardStatus(fullName, SUCCESS);
dashboardPage.clickFavoriteCardRunButton(fullName);
dashboardPage.checkFavoriteCardStatus(fullName, RUNNING, SUCCESS);
dashboardPage.clickFavoriteCardReplayButton(fullName);
dashboardPage.checkFavoriteCardStatus(fullName, RUNNING, SUCCESS);
dashboardPage.removeFavoriteCard(fullName);
dashboardPage.checkFavoriteCardCount(0);
dashboardPage.checkIsPipelineListItemFavorited(jobName, false);
}
Aggregations