Skip to content

Commit 93f3b62

Browse files
committed
MQE-977: ErrorLogger expects source to be a log paramater
- update logger to validate param existence before using "source" param
1 parent 1b40c8e commit 93f3b62

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)