Skip to content

Commit

Permalink
Fix storing page source to disk when source assertions fail. (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmdev authored May 2, 2022
1 parent 56bff97 commit 41f6deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/ProvidesBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ protected function storeConsoleLogsFor($browsers)
protected function storeSourceLogsFor($browsers)
{
$browsers->each(function ($browser, $key) {
if (property_exists($browser, 'makesSourceAssertion') &&
$browser->makesSourceAssertion) {
if (property_exists($browser, 'madeSourceAssertion') &&
$browser->madeSourceAssertion) {
$browser->storeSource($this->getCallerName().'-'.$key);
}
});
Expand Down

0 comments on commit 41f6deb

Please sign in to comment.