Skip to content

Commit 68c8d68

Browse files
authored
MQE-1117: dontSeeJsError does not catch JS errors (#242)
- Added check for null driver to prevent php fatal error
1 parent a4e0a9b commit 68c8d68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Magento/FunctionalTestingFramework/Extension/BaseExtension.php

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public function getUri()
9090
protected function pageChanged()
9191
{
9292
try {
93+
if ($this->getDriver() === null) {
94+
return false;
95+
}
9396
$currentUri = $this->getDriver()->_getCurrentUri();
9497

9598
if ($this->uri !== $currentUri) {

0 commit comments

Comments
 (0)