Skip to content

Commit 0ea0e10

Browse files
committed
chore: fix integration tests
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 4a36698 commit 0ea0e10

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/redhat/devtools/intellij/commonuitest/fixtures/dialogs/project/pages/NewProjectFirstPage.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ public void setProjectSdkIfAvailable(String targetSdkName) {
167167
String label = foundItems.values().stream().findFirst().get();
168168
projectSdkList.jList().clickItem(label, true);
169169
// wait for 'resolving JDK' progressmonitor to end
170-
waitForIgnoringError(Duration.ofSeconds(10), () -> remoteRobot.callJs("true"));
170+
waitFor(
171+
Duration.ofSeconds(20),
172+
Duration.ofSeconds(5),
173+
"Waiting for 'resolving jdk' dialog to disappear.",
174+
//() -> "Expected exactly one dialog but found " + remoteRobot.findAll(CommonContainerFixture.class, byXpath(XPathDefinitions.MY_DIALOG)).size(),
175+
() -> remoteRobot.findAll(CommonContainerFixture.class, byXpath("//div[@class='MyDialog']")).isEmpty());
171176
} else {
172177
ScreenshotUtils.takeScreenshot(remoteRobot, "No SDK found starting with " + targetSdkName);
173178
}

0 commit comments

Comments
 (0)