Fix DefaultRolesTest
(cherry picked from commit 6e7470d)
This commit is contained in:
parent
c34aa5763d
commit
b41dd22ed3
2 changed files with 11 additions and 1 deletions
|
@ -5,6 +5,8 @@ import static org.keycloak.testsuite.console.page.fragment.Breadcrumb.BREADCRUMB
|
||||||
import org.openqa.selenium.WebElement;
|
import org.openqa.selenium.WebElement;
|
||||||
import org.openqa.selenium.support.FindBy;
|
import org.openqa.selenium.support.FindBy;
|
||||||
|
|
||||||
|
import static org.keycloak.testsuite.util.WaitUtils.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author tkyjovsk
|
* @author tkyjovsk
|
||||||
|
@ -54,22 +56,27 @@ public class User extends Users {
|
||||||
private WebElement sessionsLink;
|
private WebElement sessionsLink;
|
||||||
|
|
||||||
public void attributes() {
|
public void attributes() {
|
||||||
|
waitUntilElement(attributesLink).is().present();
|
||||||
attributesLink.click();
|
attributesLink.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void credentials() {
|
public void credentials() {
|
||||||
|
waitUntilElement(consentsLink).is().present();
|
||||||
credentialsLink.click();
|
credentialsLink.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void roleMappings() {
|
public void roleMappings() {
|
||||||
|
waitUntilElement(roleMappingsLink).is().present();
|
||||||
roleMappingsLink.click();
|
roleMappingsLink.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void consents() {
|
public void consents() {
|
||||||
|
waitUntilElement(consentsLink).is().present();
|
||||||
consentsLink.click();
|
consentsLink.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sessions() {
|
public void sessions() {
|
||||||
|
waitUntilElement(sessionsLink).is().present();
|
||||||
sessionsLink.click();
|
sessionsLink.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,10 @@ public class Users extends AdminConsoleRealm {
|
||||||
|
|
||||||
public void clickUser(String username) {
|
public void clickUser(String username) {
|
||||||
waitUntilElement(body()).is().present();
|
waitUntilElement(body()).is().present();
|
||||||
body().findElement(linkText(username)).click();
|
WebElement link = body().findElement(
|
||||||
|
By.xpath(".//tr/td[./following::td[text()='" + username + "']]/a")
|
||||||
|
);
|
||||||
|
link.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void editUser(String username) {
|
public void editUser(String username) {
|
||||||
|
|
Loading…
Reference in a new issue