Skip to content

Commit 6e84829

Browse files
committed
MQE-751: Screenshot/source capture firing after failed hooks
- change usage of $fail param to appease code sniff
1 parent d72c923 commit 6e84829

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ public function _failed(TestInterface $test, $fail)
514514

515515
$this->addAttachment($this->pngReport, $test->getMetadata()->getName() . '.png', 'image/png');
516516
$this->addAttachment($this->htmlReport, $test->getMetadata()->getName() . '.html', 'text/html');
517+
518+
$this->debug("Failure due to : {$fail->getMessage()}");
519+
$this->debug("Screenshot saved to {$this->pngReport}");
520+
$this->debug("Html saved to {$this->htmlReport}");
517521
}
518522

519523
/**

0 commit comments

Comments
 (0)