Skip to content

Commit 9adbf9e

Browse files
authored
Merge pull request #1051 from turkeylurkey/issue-972a
Wait 5s after UI robot types in a config file
2 parents cc23014 + b657adc commit 9adbf9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,8 @@ public static void insertConfigIntoConfigFile(RemoteRobot remoteRobot, String fi
11121112
keyboard.enter();
11131113

11141114
keyboard.enterText(configNameSnippet);
1115+
// After typing it can take 1 or 2s for IntelliJ to render diagnostics etc. Must wait before continuing.
1116+
TestUtils.sleepAndIgnoreException(5);
11151117

11161118
// Narrow down the config name completion suggestions in the pop-up window that is automatically
11171119
// opened as text is typed based on the value of configNameSnippet. Avoid hitting ctrl + space as it has the side effect of selecting
@@ -1131,6 +1133,8 @@ public static void insertConfigIntoConfigFile(RemoteRobot remoteRobot, String fi
11311133
keyboard.hotKey(VK_END);
11321134

11331135
keyboard.enterText(configValueSnippet);
1136+
// After typing it can take 1 or 2s for IntelliJ to render diagnostics etc. Must wait before continuing.
1137+
TestUtils.sleepAndIgnoreException(5);
11341138

11351139
if (completeWithPopup) {
11361140
// Select the appropriate value completion suggestion in the pop-up window that is automatically

0 commit comments

Comments
 (0)