Skip to content

Commit 4f58add

Browse files
committed
MQE-1181: Fatal error while test running
- Added null check for error on after step
1 parent 06e8605 commit 4f58add

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ public function afterStep(\Codeception\Event\StepEvent $e)
122122
// @codingStandardsIgnoreStart
123123
$webDriver = $this->getModule("\Magento\FunctionalTestingFramework\Module\MagentoWebDriver")->webDriver;
124124
// @codingStandardsIgnoreEnd
125-
ErrorLogger::getInstance()->logErrors($webDriver, $e);
125+
if (!empty($webDriver)) {
126+
ErrorLogger::getInstance()->logErrors($webDriver, $e);
127+
}
126128
}
127129
}

0 commit comments

Comments
 (0)