Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jul 14, 2023
1 parent 35fd6fa commit e2023a3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
import net.serenitybdd.screenplay.targets.Target;

public class FolderDetailsPage {
public static final Target Up_Link = Target.the("the 'Up' link").locatedBy("//a[contains(., 'Up')]//..");
public static final Target Up_Link =
Target.the("the 'Up' link").locatedBy("(//li[@class='jenkins-breadcrumbs__list-item'])[last()-1]/a");
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Breadcrumbs {

public static Target linkTo(String name) {
return Target.the(String.format("the '%s' breadcrumb link", name))
.locatedBy("//ul[@id='breadcrumbs']//a[contains(., '{0}')]")
.locatedBy("//li[@class='jenkins-breadcrumbs__list-item' and a[text()='{0}']]/a")
.of(name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import net.serenitybdd.screenplay.targets.Target;

public class Buttons {
public static final Target Create =
Target.the("the 'Create' button").locatedBy("//input[@name='Submit' and @value='Create']");
public static final Target Create = Target.the("the 'Create' button").locatedBy("//button[@name='Submit']");
public static final Target Save = Button.called("Save");
public static final Target OK = Button.called("OK");
}
8 changes: 4 additions & 4 deletions build-monitor-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.361.x</artifactId>
<version>2102.v854b_fec19c92</version>
<artifactId>bom-2.401.x</artifactId>
<version>2230.v0cb_4040cde55</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -97,7 +97,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit-realtime-test-reporter</artifactId>
<version>90.v7dc2c937f9a_8</version>
<version>102.v3f020960a_646</version>
<optional>true</optional>
</dependency>
<dependency>
Expand All @@ -108,7 +108,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>view-job-filters</artifactId>
<version>2.3</version>
<version>364.v48a_33389553d</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<j:set var="spanStyle" value="${it.recurse?'':'display:none'}"/>
</j:if>
<span class="${spanClass}" style="${spanStyle}">
<f:checkbox name="${job.getRelativeNameFromGroup(it.ownerItemGroup)}" checked="${it.jobNamesContains(job)}" title="${h.getRelativeDisplayNameFrom(job,it.ownerItemGroup)}" tooltip="${job.fullName}" json="true"/>
<f:checkbox name="item_${job.getRelativeNameFromGroup(it.ownerItemGroup)}" checked="${it.jobNamesContains(job)}" title="${h.getRelativeDisplayNameFrom(job,it.ownerItemGroup)}" tooltip="${job.fullName}" json="true"/>
<br/>
</span>
</j:forEach>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
<l:yui module="yahoo" />
<l:yui module="cookie" />

<st:adjunct assumes="org.kohsuke.stapler.framework.prototype.prototype"
includes="org.kohsuke.stapler.bind"/>
<st:adjunct includes="org.kohsuke.stapler.bind"/>

<j:forEach var="pd" items="${h.pageDecorators}">
<st:include it="${pd}" page="header.jelly" optional="true" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<properties>
<revision>1.14</revision>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.361.4</jenkins.version>
<jenkins.version>2.406</jenkins.version>
<gitHubRepo>jenkinsci/build-monitor-plugin</gitHubRepo>
<spotless.check.skip>false</spotless.check.skip>
</properties>
Expand Down

0 comments on commit e2023a3

Please sign in to comment.