Skip to content

Commit 2a1955a

Browse files
Update UIBotTestUtils.java
1 parent 3a87d21 commit 2a1955a

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
@@ -1080,7 +1080,11 @@ else if (fileName.equals("bootstrap.properties")) {
10801080
// we will put new config at the end of the config file
10811081
// (after the last line already in the file)
10821082
keyboard.hotKey(VK_CONTROL, VK_END);
1083+
// Move to the end of the current line to ensure we're at the end of the last line
1084+
keyboard.hotKey(VK_END);
10831085
keyboard.enter();
1086+
// Wait for the editor to process the newline before typing
1087+
TestUtils.sleepAndIgnoreException(1);
10841088

10851089
keyboard.enterText(configNameSnippetCaseSpecific);
10861090
// After typing it can take 1 or 2s for IntelliJ to render diagnostics etc. Must wait before continuing.

0 commit comments

Comments
 (0)