Skip to content

Commit

Permalink
Fix tests on Jenkins 2.411 (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jun 20, 2023
1 parent 7592e8e commit 1bccbdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private void configureJobThrottling(FreeStyleProject project) throws IOException
boolean buttonFound = false;

for (HtmlButton button : buttons) {
if (button.getTextContent().equals(buttonText)) {
if (button.getTextContent().trim().equals(buttonText)) {
buttonFound = true;
String checkboxName = "throttleEnabled";
HtmlElement checkbox = page.getElementByName(checkboxName);
Expand Down Expand Up @@ -376,7 +376,7 @@ private boolean buttonFoundThusFormSubmitted(HtmlForm form, List<HtmlButton> but
throws IOException {
boolean buttonFound = false;
for (HtmlButton button : buttons) {
if (button.getTextContent().equals(buttonText)) {
if (button.getTextContent().trim().equals(buttonText)) {
buttonFound = true;
button.click();
break;
Expand Down

0 comments on commit 1bccbdc

Please sign in to comment.