KEYCLOAK-4572 AccountTest.changeProfileNoAccess unstable

This commit is contained in:
mposolda 2017-03-13 13:58:05 +01:00
parent adf3eaf8fe
commit aa84709087

View file

@ -777,7 +777,7 @@ public class AccountTest extends AbstractTestRealmKeycloakTest {
.detail(Details.USERNAME, "test-user-no-access@localhost")
.detail(Details.REDIRECT_URI, ACCOUNT_REDIRECT).assertEvent();
Assert.assertTrue(errorPage.isCurrent());
Assert.assertTrue("Expected errorPage but was " + driver.getTitle() + " (" + driver.getCurrentUrl() + "). Page source: " + driver.getPageSource(), errorPage.isCurrent());
Assert.assertEquals("No access", errorPage.getError());
}