File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/io/openliberty/tools/intellij/it Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -427,13 +427,15 @@ public static void openLibertyToolWindow(RemoteRobot remoteRobot) {
427427 Exception error = null ;
428428 for (int i = 0 ; i < maxRetries ; i ++) {
429429 try {
430+ TestUtils .sleepAndIgnoreException (10 );
430431 error = null ;
431432 ProjectFrameFixture projectFrame = remoteRobot .find (ProjectFrameFixture .class , Duration .ofSeconds (10 ));
432433 projectFrame .getBaseLabel ("Liberty" , "5" );
433434 break ;
434435 } catch (WaitForConditionTimeoutException wfcte ) {
435436 // The Liberty tool window is closed. Open it.
436437 clickOnWindowPaneStripeButton (remoteRobot , "Liberty" );
438+ TestUtils .sleepAndIgnoreException (5 );
437439 break ;
438440 } catch (Exception e ) {
439441 // The project frame may hang for a bit while loading/processing work. Retry.
@@ -482,9 +484,9 @@ public static void openProjectView(RemoteRobot remoteRobot) {
482484 projectFrame .getContentComboLabel ("Project" , "5" );
483485 break ;
484486 } catch (WaitForConditionTimeoutException wfcte ) {
485- TestUtils .sleepAndIgnoreException (5 );
486487 // The project view is closed. Open it.
487488 clickOnWindowPaneStripeButton (remoteRobot , "Project" );
489+ TestUtils .sleepAndIgnoreException (5 );
488490 break ;
489491 } catch (Exception e ) {
490492 // The project frame may hang for a bit while loading/processing work. Retry.
You can’t perform that action at this time.
0 commit comments