Skip to content

Commit

Permalink
Compatibility with 'Categorize the user properties' (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jul 13, 2024
1 parent c0ee8ef commit 7d8edbc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/jenkinsci/test/acceptance/po/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
package org.jenkinsci.test.acceptance.po;

import com.fasterxml.jackson.databind.JsonNode;
import hudson.util.VersionNumber;
import java.net.URL;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.TimeoutException;

Expand Down Expand Up @@ -91,6 +93,11 @@ public User fullName(String fullName) {
return this;
}

@Override
public URL getConfigUrl() {
return getJenkins().getVersion().isNewerThan(new VersionNumber("2.467")) ? url("account/") : url("configure");
}

public void delete() {
try {
runThenHandleDialog(() -> clickLink("Delete"));
Expand Down

0 comments on commit 7d8edbc

Please sign in to comment.