Skip to content

Commit

Permalink
chore: fix integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Bouchet <[email protected]>
  • Loading branch information
sbouchet committed Feb 3, 2025
1 parent 4df6303 commit 0e0c01e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.intellij.remoterobot.utils.WaitForConditionTimeoutException;
import com.redhat.devtools.intellij.commonuitest.UITestRunner;
import com.redhat.devtools.intellij.commonuitest.utils.constants.XPathDefinitions;
import com.redhat.devtools.intellij.commonuitest.utils.screenshot.ScreenshotUtils;
import com.redhat.devtools.intellij.commonuitest.utils.texttranformation.TextUtils;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -164,7 +165,10 @@ public void setProjectSdkIfAvailable(String targetSdkName) {
if (!foundItems.isEmpty()) {
String label = foundItems.values().stream().findFirst().get();
projectSdkList.jList().clickItem(label, true);
} else {
ScreenshotUtils.takeScreenshot(remoteRobot);
}

});
}

Expand Down

0 comments on commit 0e0c01e

Please sign in to comment.