Skip to content

Commit c599671

Browse files
authored
add autoApproved status; (#86)
* add autoApproved status;
1 parent 3337a75 commit c599671

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/main/java/io/visual_regression_tracker/sdk_java/TestRunStatus.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public enum TestRunStatus {
1111
OK,
1212
@SerializedName("approved")
1313
APPROVED,
14+
@SerializedName("autoApproved")
15+
AUTO_APPROVED,
1416
@SerializedName("failed")
1517
FAILED,
1618
@SerializedName("new")

src/test/java/io/visual_regression_tracker/sdk_java/VisualRegressionTrackerTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,20 @@ public Object[][] shouldTrackPassCases() {
286286
.url("https://someurl.com/test/123123")
287287
.status(TestRunStatus.OK)
288288
.build(),
289+
},
290+
{
291+
TestRunResponse.builder()
292+
.id("someId")
293+
.imageName("imageName")
294+
.baselineName("baselineName")
295+
.diffName("diffName")
296+
.diffPercent(12.32f)
297+
.diffTollerancePercent(0.01f)
298+
.pixelMisMatchCount(1)
299+
.merge(false)
300+
.url("https://someurl.com/test/123123")
301+
.status(TestRunStatus.AUTO_APPROVED)
302+
.build(),
289303
}
290304
};
291305
}

0 commit comments

Comments
 (0)