We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06e8605 commit 4f58addCopy full SHA for 4f58add
src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php
@@ -122,6 +122,8 @@ public function afterStep(\Codeception\Event\StepEvent $e)
122
// @codingStandardsIgnoreStart
123
$webDriver = $this->getModule("\Magento\FunctionalTestingFramework\Module\MagentoWebDriver")->webDriver;
124
// @codingStandardsIgnoreEnd
125
- ErrorLogger::getInstance()->logErrors($webDriver, $e);
+ if (!empty($webDriver)) {
126
+ ErrorLogger::getInstance()->logErrors($webDriver, $e);
127
+ }
128
}
129
0 commit comments