Search in sources :

Example 6 with ClassicPipeline

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);
}
Also used : ClassicPipeline(io.blueocean.ath.model.ClassicPipeline) Test(org.junit.Test)

Aggregations

ClassicPipeline (io.blueocean.ath.model.ClassicPipeline)6 Test (org.junit.Test)6 BlueOceanAcceptanceTest (io.blueocean.ath.BlueOceanAcceptanceTest)3 FreestyleJob (io.blueocean.ath.model.FreestyleJob)1 ActivityPage (io.blueocean.ath.pages.blue.ActivityPage)1