Skip to content

Commit da69e76

Browse files
committed
chore: fix integration tests
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 36ee4cc commit da69e76

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,8 @@ public void setProjectSdkIfAvailable(String targetSdkName) {
166166
if (!foundItems.isEmpty()) {
167167
String label = foundItems.values().stream().findFirst().get();
168168
projectSdkList.jList().clickItem(label, true);
169-
ScreenshotUtils.takeScreenshot(remoteRobot);
170169
// wait for 'resolving JDK' progressmonitor to end
171170
waitForIgnoringError(Duration.ofSeconds(5), () -> remoteRobot.callJs("true"));
172-
ScreenshotUtils.takeScreenshot(remoteRobot);
173171
} else {
174172
ScreenshotUtils.takeScreenshot(remoteRobot, "No SDK found starting with " + targetSdkName);
175173
}

src/test-project/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
22

33
plugins {
44
id("java")
5+
id("jacoco")
56
id("org.jetbrains.intellij.platform") version ("2.2.1")
67
}
78

src/test-project/src/test/java/com/redhat/devtools/intellij/commonuitest/fixtures/test/dialogs/project_manipulation/NewProjectDialogTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public void setProjectSdkIfAvailableTest() {
337337
if (ideaVersionInt >= 20242 && remoteRobot.isWin()) {
338338
newProjectFirstPage.setProjectSdkIfAvailable("Download");
339339
try {
340-
ContainerFixture downloadJdkDialog = remoteRobot.find(ContainerFixture.class, byXpath("//div[@title='Download JDK...']"), Duration.ofSeconds(10));
340+
ContainerFixture downloadJdkDialog = remoteRobot.find(ContainerFixture.class, byXpath("//div[@title='Download JDK']"), Duration.ofSeconds(10));
341341
downloadJdkDialog.find(ActionButtonFixture.class, byXpath(XPathDefinitions.label(ButtonLabels.CANCEL_LABEL)), Duration.ofSeconds(5)).click();
342342
} catch (WaitForConditionTimeoutException e) {
343343
fail("Download JDK button was not pressed and Download JDK dialog was not found");

0 commit comments

Comments
 (0)