diff --git a/src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java b/src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java index 338c36c83..cd77ec6ac 100644 --- a/src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java +++ b/src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java @@ -1112,6 +1112,8 @@ public static void insertConfigIntoConfigFile(RemoteRobot remoteRobot, String fi keyboard.enter(); keyboard.enterText(configNameSnippet); + // After typing it can take 1 or 2s for IntelliJ to render diagnostics etc. Must wait before continuing. + TestUtils.sleepAndIgnoreException(5); // Narrow down the config name completion suggestions in the pop-up window that is automatically // 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 keyboard.hotKey(VK_END); keyboard.enterText(configValueSnippet); + // After typing it can take 1 or 2s for IntelliJ to render diagnostics etc. Must wait before continuing. + TestUtils.sleepAndIgnoreException(5); if (completeWithPopup) { // Select the appropriate value completion suggestion in the pop-up window that is automatically