Skip to content

Commit 6572b32

Browse files
authored
Merge pull request #620 from olamy/fix_pipeline-stage-view-2.18
fix for pipeline-stage-view-2.18
2 parents 6236641 + b70d254 commit 6572b32

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/java/plugins/StageViewTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)