Merge pull request #3945 from mposolda/master

KEYCLOAK-4572 AccountTest.changeProfileNoAccess unstable
This commit is contained in:
Marek Posolda 2017-03-13 15:57:43 +01:00 committed by GitHub
commit 649ca36ece

View file

@ -777,7 +777,7 @@ public class AccountTest extends AbstractTestRealmKeycloakTest {
.detail(Details.USERNAME, "test-user-no-access@localhost") .detail(Details.USERNAME, "test-user-no-access@localhost")
.detail(Details.REDIRECT_URI, ACCOUNT_REDIRECT).assertEvent(); .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()); Assert.assertEquals("No access", errorPage.getError());
} }