Skip to content

Commit

Permalink
Merge pull request #1051 from turkeylurkey/issue-972a
Browse files Browse the repository at this point in the history
Wait 5s after UI robot types in a config file
  • Loading branch information
turkeylurkey authored Oct 31, 2024
2 parents cc23014 + b657adc commit 9adbf9e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9adbf9e

Please sign in to comment.