You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (config('visual-assert.skip_if_different_element_size', false)) {
133
128
return$this;
134
129
}
135
130
136
-
Assert::assertTrue(false, sprintf("Element screenshots are not the same size (original: %dx%d, current: %dx%d). The element may have changed dimensions.",
131
+
Assert::assertTrue(false, sprintf("Element screenshots are not the same size (original: %dx%d, current: %dx%d). The element may have changed dimensions. Difference can be viewed at: %s",
137
132
$originalImage->getImageWidth(),
138
133
$originalImage->getImageHeight(),
139
134
$currentImage->getImageWidth(),
140
-
$currentImage->getImageHeight()
135
+
$currentImage->getImageHeight(),
136
+
$diffFilePath
141
137
));
142
138
return$this;
143
139
}
@@ -146,9 +142,6 @@ public function boot(): void
146
142
147
143
// If there's a difference above threshold, save the diff
Assert::assertLessThanOrEqual($threshold, $result[1], sprintf('Element screenshots are not the same. Difference can be viewed at: %s and visual diff at: %s', $diffFilePath, $visualDiffPath));
158
151
} else {
159
152
// Clean up temp file
160
-
unlink($tempFilePath);
161
153
Assert::assertLessThanOrEqual($threshold, $result[1], 'Element screenshots match within threshold.');
0 commit comments