use of org.keycloak.testsuite.arquillian.annotation.IgnoreBrowserDriver in project keycloak by keycloak.
the class WebAuthnPropertyTest method timeout.
@Test
@IgnoreBrowserDriver(FirefoxDriver.class)
public void timeout() throws IOException {
// seconds
final Integer TIMEOUT = 3;
registerDefaultUser();
logout();
getVirtualAuthManager().removeAuthenticator();
try (Closeable u = getWebAuthnRealmUpdater().setWebAuthnPolicyCreateTimeout(TIMEOUT).update()) {
WebAuthnRealmData realmData = new WebAuthnRealmData(testRealm().toRepresentation(), isPasswordless());
assertThat(realmData.getCreateTimeout(), is(TIMEOUT));
authenticateDefaultUser(false);
WaitUtils.pause((TIMEOUT + 2) * 1000);
webAuthnErrorPage.assertCurrent();
assertThat(webAuthnErrorPage.getError(), containsString("Failed to authenticate by the Security key."));
}
}
Aggregations