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
Merged

Conversation

janfaracik
Copy link
Contributor

@janfaracik
Copy link
Contributor Author

plugins.WorkflowPluginTest.sshGitInsideDocker is the only test failing now, reckon that's related to the change? @timja

@timja
Copy link
Member

timja commented Mar 27, 2023

plugins.WorkflowPluginTest.sshGitInsideDocker is the only test failing now, reckon that's related to the change? @timja

Unsure, but it is failing in plugin manager code so better safe than sorry.

I've reran it in case there was an upstream failure

@@ -88,7 +88,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("form[action='checkUpdatesServer'] .jenkins-button"));
Copy link
Member

Choose a reason for hiding this comment

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

better to use the id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The button prior to this PR didn't have an ID

@timja timja changed the title Test plugin manager refresh button move to the app bar Forward compatibility for refresh update sites button change Mar 28, 2023
@timja timja enabled auto-merge (squash) March 28, 2023 13:20
janfaracik and others added 4 commits March 28, 2023 19:35
I had assumed the old button would have been wrapped in a form, instead it does some JS magic to do the post instead.
@timja
Copy link
Member

timja commented Apr 25, 2023

The test is failing in the plugin manager so likely needs adjusting

@timja timja merged commit 5b33b36 into master Apr 25, 2023
@timja timja deleted the pr/7770 branch April 25, 2023 22:32
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.

None yet

3 participants