Skip to content

Commit fc0c072

Browse files
committed
Pause before trying to open the Liberty Tool Window
Signed-off-by: Paul Gooderham <[email protected]>
1 parent 6e0dab9 commit fc0c072

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)