Skip to content

Commit 555c9a0

Browse files
committed
MQE-1117: dontSeeJsError does not catch JS errors
- Syntax issue in ErrorLogger.php fixed.
1 parent 26487bc commit 555c9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Magento/FunctionalTestingFramework/Extension/ErrorLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ private function __construct()
4949
public function logErrors($module, $stepEvent)
5050
{
5151
//Types available should be "server", "browser", "driver". Only care about browser at the moment.
52-
if (in_array("browser", $module->$webDriver->manage()->getAvailableLogTypes())) {
53-
$browserLogEntries = $module->$webDriver->manage()->getLog("browser");
52+
if (in_array("browser", $module->webDriver->manage()->getAvailableLogTypes())) {
53+
$browserLogEntries = $module->webDriver->manage()->getLog("browser");
5454
foreach ($browserLogEntries as $entry) {
5555
if (array_key_exists("source", $entry) && $entry["source"] === "javascript") {
5656
$this->logError("javascript", $stepEvent, $entry);

0 commit comments

Comments
 (0)