WebAuthnSigningInTest failures caused by different titles (#11305)

Fixes #11298
This commit is contained in:
Martin Bartoš 2022-04-19 14:44:51 +02:00 committed by GitHub
parent a558d2f546
commit 2632fa7779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -62,8 +62,8 @@ public class WebAuthnSigningInTest extends AbstractWebAuthnAccountTest {
testContext.setTestRealmReps(emptyList()); // reimport realm after this test testContext.setTestRealmReps(emptyList()); // reimport realm after this test
assertThat(signingInPage.getCategoriesCount(), is(3)); assertThat(signingInPage.getCategoriesCount(), is(3));
assertThat(signingInPage.getCategoryTitle("basic-authentication"), is("Basic Authentication")); assertThat(signingInPage.getCategoryTitle("basic-authentication"), is("Basic authentication"));
assertThat(signingInPage.getCategoryTitle("two-factor"), is("Two-Factor Authentication")); assertThat(signingInPage.getCategoryTitle("two-factor"), is("Two-factor authentication"));
assertThat(signingInPage.getCategoryTitle("passwordless"), is("Passwordless")); assertThat(signingInPage.getCategoryTitle("passwordless"), is("Passwordless"));
// Delete WebAuthn flow ==> Passwordless category should disappear // Delete WebAuthn flow ==> Passwordless category should disappear
@ -419,7 +419,7 @@ public class WebAuthnSigningInTest extends AbstractWebAuthnAccountTest {
// no way to simulate registration cancellation // no way to simulate registration cancellation
assertThat("Set up link for \"" + credentialType.getType() + "\" is not visible", credentialType.isSetUpLinkVisible(), is(true)); assertThat("Set up link for \"" + credentialType.getType() + "\" is not visible", credentialType.isSetUpLinkVisible(), is(true));
assertThat(credentialType.getTitle(), is("Security Key")); assertThat(credentialType.getTitle(), is("Security key"));
assertThat(credentialType.getHelpText(), is(expectedHelpText)); assertThat(credentialType.getHelpText(), is(expectedHelpText));
final String label1 = "WebAuthn is convenient"; final String label1 = "WebAuthn is convenient";

View file

@ -109,9 +109,9 @@ recovery-codes-number-used={0} recovery codes used
recovery-codes-number-remaining={0} recovery codes remaining recovery-codes-number-remaining={0} recovery codes remaining
recovery-codes-generate-new-codes=Generate new codes to ensure access to your account recovery-codes-generate-new-codes=Generate new codes to ensure access to your account
webauthn-display-name=Security key webauthn-display-name=Security key
webauthn-help-text=Use your security key to log in. webauthn-help-text=Use your security key to sign in.
webauthn-passwordless-display-name=Security key webauthn-passwordless-display-name=Security key
webauthn-passwordless-help-text=Use your security key for passwordless log in. webauthn-passwordless-help-text=Use your security key for passwordless sign in.
basic-authentication=Basic authentication basic-authentication=Basic authentication
invalidRequestMessage=Invalid request invalidRequestMessage=Invalid request