Skip to content

Commit 86aeac5

Browse files
added wait for the Liberty project combobox to be populated
1 parent deaae10 commit 86aeac5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,14 @@ public static void createLibertyConfiguration(RemoteRobot remoteRobot, String cf
21012101
// will have zero values.
21022102
Locator projectComboLocator = byXpath("//div[@class='ComboBox']");
21032103
ComboBoxFixture projectCombo = addProjectDialog.comboBox(projectComboLocator);
2104+
2105+
// Wait for the Liberty project combobox to be populated
2106+
RepeatUtilsKt.waitFor(Duration.ofSeconds(30),
2107+
Duration.ofSeconds(2),
2108+
"Waiting for Liberty project combobox to be populated",
2109+
"Liberty project combobox was not populated",
2110+
() -> !projectCombo.listValues().isEmpty());
2111+
21042112
if (projectCombo.listValues().isEmpty()) {
21052113
throw new NoSuchElementException("Liberty project field contains no elements");
21062114
}

0 commit comments

Comments
 (0)