Skip to content

Commit 0e0c01e

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.intellij.remoterobot.utils.WaitForConditionTimeoutException;
2626
import com.redhat.devtools.intellij.commonuitest.UITestRunner;
2727
import com.redhat.devtools.intellij.commonuitest.utils.constants.XPathDefinitions;
28+
import com.redhat.devtools.intellij.commonuitest.utils.screenshot.ScreenshotUtils;
2829
import com.redhat.devtools.intellij.commonuitest.utils.texttranformation.TextUtils;
2930
import org.jetbrains.annotations.NotNull;
3031

@@ -164,7 +165,10 @@ public void setProjectSdkIfAvailable(String targetSdkName) {
164165
if (!foundItems.isEmpty()) {
165166
String label = foundItems.values().stream().findFirst().get();
166167
projectSdkList.jList().clickItem(label, true);
168+
} else {
169+
ScreenshotUtils.takeScreenshot(remoteRobot);
167170
}
171+
168172
});
169173
}
170174

0 commit comments

Comments
 (0)