WelcomeScreenTest#resourcesTest (#16761)
* Fix WelcomeScreenTest#resourcesTest Closes #16669 * Add one more retry
This commit is contained in:
parent
263e86e434
commit
0fa209c29a
1 changed files with 4 additions and 2 deletions
|
@ -19,6 +19,7 @@ package org.keycloak.testsuite.ui.account2;
|
|||
|
||||
import org.jboss.arquillian.graphene.page.Page;
|
||||
import org.junit.Test;
|
||||
import org.keycloak.common.util.Retry;
|
||||
import org.keycloak.representations.idm.RealmRepresentation;
|
||||
import org.keycloak.testsuite.ui.account2.page.ApplicationsPage;
|
||||
import org.keycloak.testsuite.ui.account2.page.DeviceActivityPage;
|
||||
|
@ -27,6 +28,7 @@ import org.keycloak.testsuite.ui.account2.page.MyResourcesPage;
|
|||
import org.keycloak.testsuite.ui.account2.page.PersonalInfoPage;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlStartsWithLoginUrlOf;
|
||||
|
||||
/**
|
||||
|
@ -141,10 +143,10 @@ public class WelcomeScreenTest extends AbstractAccountTest {
|
|||
|
||||
// test my resources appeared
|
||||
accountWelcomeScreen.navigateTo();
|
||||
accountWelcomeScreen.assertMyResourcesCardVisible(true);
|
||||
Retry.execute(() -> accountWelcomeScreen.assertMyResourcesCardVisible(true), 10, 500);
|
||||
accountWelcomeScreen.clickMyResourcesLink();
|
||||
loginToAccount();
|
||||
myResourcesPage.assertCurrent();
|
||||
Retry.execute(() -> myResourcesPage.assertCurrent(), 10, 500);
|
||||
// no need to disable user managed access
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue