@@ -47,6 +47,7 @@ public void jobShouldContainStageView() {
4747 * aka Pagination
4848 */
4949 @ Test
50+ @ WithPlugins ("pipeline-stage-view@2.18" )
5051 public void multiBuildJobShouldContainCorrectNumberOfJobsBuilt () {
5152 WorkflowJob job = this .createPipelineFromFile (SINGLE_JOB );
5253 Build build = null ;
@@ -65,14 +66,15 @@ public void multiBuildJobShouldContainCorrectNumberOfJobsBuilt() {
6566 assertThat (build , notNullValue ());
6667 job .open ();
6768 stageView = new StageView (job , JOB_PATH );
68- assertThat (stageView .getAllStageViewJobs (), hasSize (11 ));//max diplay is 11
69+ assertThat (stageView .getAllStageViewJobs (), hasSize (10 ));//max diplay is 10
6970 }
7071
7172 /**
7273 * This tests verfies the width of the display. Stageviews have to adapt
7374 * to new stages with future builds.
7475 */
7576 @ Test
77+ @ WithPlugins ("pipeline-stage-view@2.18" )
7678 public void multiBuildJobShouldContainCorrectNumberOfJobsHeadline () {
7779 WorkflowJob job = jenkins .jobs .create (WorkflowJob .class );
7880 String pre = "node {\n " ;
@@ -94,7 +96,7 @@ public void multiBuildJobShouldContainCorrectNumberOfJobsHeadline() {
9496 assertThat (build , notNullValue ());
9597 job .open ();
9698 StageView stageView = new StageView (job , JOB_PATH );
97- assertThat (stageView .getAllStageViewJobs (), hasSize (11 ));
99+ assertThat (stageView .getAllStageViewJobs (), hasSize (10 ));
98100 assertThat (stageView .getStageViewHeadlines (), hasSize (10 ));
99101
100102 }
0 commit comments