Skip to content

Commit db695ad

Browse files
committed
chore: fix integration tests
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 420f2b5 commit db695ad

File tree

1 file changed

+2
-0
lines changed
  • src/test-project/src/test/java/com/redhat/devtools/intellij/commonuitest/fixtures/test/dialogs/project_manipulation

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.redhat.devtools.intellij.commonuitest.utils.constants.ButtonLabels;
2828
import com.redhat.devtools.intellij.commonuitest.utils.constants.XPathDefinitions;
2929
import com.redhat.devtools.intellij.commonuitest.utils.project.CreateCloseUtils;
30+
import com.redhat.devtools.intellij.commonuitest.utils.screenshot.ScreenshotUtils;
3031
import org.junit.jupiter.api.AfterEach;
3132
import org.junit.jupiter.api.BeforeEach;
3233
import org.junit.jupiter.api.Test;
@@ -342,6 +343,7 @@ public void setProjectSdkIfAvailableTest() {
342343
} else {
343344
newProjectFirstPage.setProjectSdkIfAvailable("11");
344345
ComboBoxFixture projectJdkComboBox = newProjectFirstPage.getProjectJdkComboBox();
346+
ScreenshotUtils.takeScreenshot(remoteRobot);
345347
String currentlySelectedProjectSdk = listOfRemoteTextToString(projectJdkComboBox.findAllText());
346348
assertTrue(currentlySelectedProjectSdk.startsWith("11"), "Selected project SDK should be Java 11 but is '" + currentlySelectedProjectSdk + "'");
347349
newProjectFirstPage.setProjectSdkIfAvailable("17");

0 commit comments

Comments
 (0)