Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward compatibility with core-8418 #522

Merged
merged 3 commits into from
Aug 31, 2023
Merged

Conversation

mawinter69
Copy link
Contributor

jenkinsci/jenkins#8418

Testing done

Submitter checklist

@mawinter69 mawinter69 marked this pull request as ready for review August 25, 2023 20:50
@mawinter69 mawinter69 requested a review from a team as a code owner August 25, 2023 20:50
Comment on lines 102 to 107
try {
page.getAnchorByText(displayName).click();
} catch (ElementNotFoundException enf) {
HtmlForm config = page.getFormByName("config");
r.getButtonByCaption(config, displayName).click();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same feedback as in jenkinsci/text-finder-plugin#191 (review) about if/else vs try/catch

@basil
Copy link
Member

basil commented Aug 30, 2023

jenkinsci/jenkins#8418 will ship on Tuesday in 2.422, so this PR needs to be merged/released prior to that to avoid a new test failure in BOM

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved and already labeled "developer" so that it will result in a new release when it is merged.

@car-roll car-roll merged commit 23895f4 into jenkinsci:master Aug 31, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants