Skip to content

Commit 5823d02

Browse files
committed
Fixed bug trying to compare when reference image doesnt exist yet
1 parent 0747f26 commit 5823d02

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"comparison",
1212
"regression"
1313
],
14-
"version": "1.0.3",
14+
"version": "1.0.4",
1515
"type": "library",
1616
"license": "MIT",
1717
"autoload": {

src/ServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public function boot()
2626

2727
if (! file_exists($filePath)) {
2828
$this->driver->takeScreenshot($filePath);
29+
Assert::assertTrue(false, 'Reference screenshot stored successfully.');
30+
31+
return $this;
2932
}
3033

3134
$this->driver->takeScreenshot($diffFilePath);

0 commit comments

Comments
 (0)