Skip to content

Commit 7a04afa

Browse files
authored
Merge pull request #113 from magento/MQE-977
MQE-977: ErrorLogger expects source to be a log paramater
2 parents 1b40c8e + 93f3b62 commit 7a04afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Extension/ErrorLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function logErrors($webDriver, $stepEvent)
5050
//Types available should be "server", "browser", "driver". Only care about browser at the moment.
5151
$browserLogEntries = $webDriver->manage()->getLog("browser");
5252
foreach ($browserLogEntries as $entry) {
53-
if ($entry["source"] === "javascript") {
53+
if (array_key_exists("source", $entry) && $entry["source"] === "javascript") {
5454
$this->logError("javascript", $stepEvent, $entry);
5555
}
5656
}

0 commit comments

Comments
 (0)