Better stability in JSConsole test

This commit is contained in:
mhajas 2016-04-01 12:17:39 +02:00
parent def40448ac
commit d730da757e

View file

@ -168,6 +168,7 @@ public abstract class AbstractJSConsoleExampleAdapterTest extends AbstractExampl
jsConsoleExamplePage.init(); jsConsoleExamplePage.init();
jsConsoleExamplePage.getProfile(); jsConsoleExamplePage.getProfile();
pause(500);
assertTrue(jsConsoleExamplePage.getOutputText().contains("Failed to load profile")); assertTrue(jsConsoleExamplePage.getOutputText().contains("Failed to load profile"));
jsConsoleExamplePage.logIn(); jsConsoleExamplePage.logIn();
@ -306,7 +307,7 @@ public abstract class AbstractJSConsoleExampleAdapterTest extends AbstractExampl
logInAndInit("implicit"); logInAndInit("implicit");
pause(5000); pause(6000);
assertTrue(jsConsoleExamplePage.getEventsText().contains("Access token expired")); assertTrue(jsConsoleExamplePage.getEventsText().contains("Access token expired"));
} }