diff --git a/src/server/visual-diff-reporter.js b/src/server/visual-diff-reporter.js index d8f47c19..3f4c5a5c 100644 --- a/src/server/visual-diff-reporter.js +++ b/src/server/visual-diff-reporter.js @@ -90,7 +90,7 @@ function flattenResults(session, browserData, fileData) { }); } const testData = fileData.tests.get(testName); - const bytediff = !t.passed && !info.diff && info.pixelsDiff === 0; + const bytediff = !t.passed && !!info?.diff && info?.pixelsDiff === 0; if (!t.passed) { if (bytediff) { browserData.numByteDiff++;