KEYCLOAK-13256 Fix WebAuthn in new Account Console tests

This commit is contained in:
vmuzikar 2020-03-09 09:20:40 +01:00 committed by Bruno Oliveira da Silva
parent 8c627fdb20
commit e4f7eb78b5
2 changed files with 3 additions and 14 deletions

View file

@ -329,7 +329,8 @@ public class SigningInTest extends BaseAccountPageTest {
private SigningInPage.UserCredential addWebAuthnCredential(String label, boolean passwordless) {
SigningInPage.CredentialType credentialType = passwordless ? webAuthnPwdlessCredentialType : webAuthnCredentialType;
credentialType.clickSetUpLink(true);
credentialType.clickSetUpLink();
webAuthnRegisterPage.confirmAIA();
webAuthnRegisterPage.registerWebAuthnCredential(label);
waitForPageToLoad();
// TODO uncomment this once KEYCLOAK-12852 is resolved

View file

@ -112,19 +112,7 @@ public class SigningInPage extends AbstractLoggedInPage {
}
public void clickSetUpLink() {
clickSetUpLink(false);
}
public void clickSetUpLink(boolean skipWaits) {
WebElement element = getItemElement(SET_UP);
if (skipWaits) {
// this is for the very special case of registering webauthn; chromedriver doesn't seem to like requesting
// getCurrentUrl during security key registration
element.click();
}
else {
clickLink(element);
}
clickLink(getItemElement(SET_UP));
}
public boolean isSetUpLinkVisible() {