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 for refresh update sites button change #1080

Merged
merged 9 commits into from
Apr 25, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void checkForUpdates() {
// The check now button is a form submit (POST) with a redirect to the same page only if the check is successful.
// We use the button itself to detect when the page has changed, which happens after the refresh has been done
// And we check for the presence of the button again
WebElement checkButton = find(by.link("Check now"));
WebElement checkButton = find(by.css("#button-refresh, .jenkins-button[href='checkUpdatesServer']"));
checkButton.click();
// The wait criteria is: we have left the current page and returned to the same one
waitFor(checkButton).withTimeout(java.time.Duration.of(time.seconds(30), ChronoUnit.MILLIS)).until(webElement -> {
Expand Down