Skip to content

Commit 771b7c7

Browse files
authored
Added custom tag (#64)
1 parent 28f6806 commit 771b7c7

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

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

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class TestRunOptions {
1212
private final String browser;
1313
private final String viewport;
1414
private final String device;
15+
private final String customTags;
1516
private final Float diffTollerancePercent;
1617
private final List<IgnoreAreas> ignoreAreas;
1718
}

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

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ protected TestRunResponse submitTestRun(String name, String imageBase64,
128128
.browser(testRunOptions.getBrowser())
129129
.viewport(testRunOptions.getViewport())
130130
.device(testRunOptions.getDevice())
131+
.customTags(testRunOptions.getCustomTags())
131132
.diffTollerancePercent(testRunOptions.getDiffTollerancePercent())
132133
.ignoreAreas(testRunOptions.getIgnoreAreas())
133134
.build();

src/main/java/io/visual_regression_tracker/sdk_java/request/TestRunRequest.java

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class TestRunRequest {
1717
private final String browser;
1818
private final String viewport;
1919
private final String device;
20+
private final String customTags;
2021
private final Float diffTollerancePercent;
2122
private final String branchName;
2223
private final List<IgnoreAreas> ignoreAreas;

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

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public void shouldSubmitTestRun() throws IOException, InterruptedException {
150150
.os("OS")
151151
.browser("Browser")
152152
.viewport("Viewport")
153+
.customTags("customTags")
153154
.diffTollerancePercent(0.5f)
154155
.ignoreAreas(Arrays.asList(IgnoreAreas.builder()
155156
.x(100L)
@@ -168,6 +169,7 @@ public void shouldSubmitTestRun() throws IOException, InterruptedException {
168169
.browser(testRunOptions.getBrowser())
169170
.viewport(testRunOptions.getViewport())
170171
.device(testRunOptions.getDevice())
172+
.customTags(testRunOptions.getCustomTags())
171173
.diffTollerancePercent(testRunOptions.getDiffTollerancePercent())
172174
.ignoreAreas(testRunOptions.getIgnoreAreas())
173175
.build();

0 commit comments

Comments
 (0)