Skip to content

Commit 68d36d2

Browse files
authored
Merge pull request #2 from Visual-Regression-Tracker/11-diff_details
TestDetailsModal. diff data added
2 parents fad7476 + 388c837 commit 68d36d2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/TestDetailsModal.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ const TestDetailsModal: React.FunctionComponent<{
147147
Viewport: {testRun.testVariation.viewport}
148148
</Typography>
149149
</Grid>
150+
<Grid item>
151+
<Typography>
152+
Diff: {testRun.diffPercent}%
153+
</Typography>
154+
</Grid>
155+
<Grid item>
156+
<Typography>
157+
Diff tollerance: {testRun.diffTollerancePercent}%
158+
</Typography>
159+
</Grid>
150160
<Grid item>
151161
<Typography display='inline'>Status: </Typography>
152162
<TestStatusChip status={testRun.status} />

src/types/testRun.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export interface TestRun {
66
buildId: number;
77
imageName: string;
88
diffName: string;
9+
diffPercent: number;
10+
diffTollerancePercent: number;
911
status: TestStatus;
1012
testVariation: TestVariation;
1113
}

0 commit comments

Comments
 (0)