Skip to content

Commit 7918160

Browse files
committed
Increase filematch threshold
1 parent 6bff554 commit 7918160

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui-tests/tests/ipympl.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ const testCellOutputs = async (
5252

5353
for (let c = 0; c < numCellImages; ++c) {
5454
expect(results[c]).toMatchSnapshot(
55-
getCaptureImageName(notebook, c)
55+
getCaptureImageName(notebook, c),
56+
{ threshold: 0.3 }
5657
);
5758
}
5859

@@ -94,7 +95,8 @@ const testUpdates = async (page: IJupyterLabPageFixture, tmpPath: string) => {
9495

9596
for (let i = 0; i < cellCount; i++) {
9697
expect(results[i]).toMatchSnapshot(
97-
getCaptureImageName(notebook, i)
98+
getCaptureImageName(notebook, i),
99+
{ threshold: 0.3 }
98100
);
99101
}
100102

0 commit comments

Comments
 (0)