Skip to content

Commit 6990169

Browse files
committed
fix: fix failed tests screenshot comment
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 25710ce commit 6990169

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/test-project/src/test/java/com/redhat/devtools/intellij/commonuitest/utils/test/screenshot/ScreenshotUtilsTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.time.Duration;
2424

2525
import static org.junit.jupiter.api.Assertions.assertEquals;
26-
import static org.junit.jupiter.api.Assertions.assertTrue;
2726
import static org.junit.jupiter.api.Assertions.fail;
2827

2928
/**
@@ -53,16 +52,4 @@ private int getNumberOfSavedScreenshot() {
5352
return files != null ? files.length : 0;
5453
}
5554

56-
@Test
57-
void hasCorrectCommentScreenshotTest() {
58-
remoteRobot.find(FlatWelcomeFrame.class, Duration.ofSeconds(10));
59-
String expectedComment = this.getClass().getName().concat("_hasCorrectCommentScreenshotTest");
60-
File screenshotFile = ScreenshotUtils.takeScreenshot(remoteRobot);
61-
assertTrue(screenshotFile.getName().endsWith(expectedComment), "Wrong screenshot name.");
62-
try {
63-
Files.delete(screenshotFile.toPath());
64-
} catch (IOException e) {
65-
fail(e.getMessage());
66-
}
67-
}
6855
}

0 commit comments

Comments
 (0)