updated failed login test case with new error message

This commit is contained in:
Daniele Martinoli 2023-07-07 08:38:51 +02:00 committed by Pedro Igor
parent 13e2075ceb
commit 2a95e2c245

View file

@ -553,6 +553,9 @@ public final class KcOidcBrokerTest extends AbstractAdvancedBrokerTest {
WaitUtils.waitForPageToLoad();
loginFetchingUserFromUserEndpoint(true);
Assert.assertEquals("The ID token issued by the identity provider does not match the configured essential claim. Please contact your administrator.",
loginPage.getInstruction());
List<UserRepresentation> users = realmsResouce().realm(bc.consumerRealmName()).users().search(bc.getUserLogin());
assertThat(users, Matchers.empty());