Skip to content

Commit 7a77f17

Browse files
committed
MQE-1181: Fatal error while test running
- Removed catches, removed line from functional suite yml
1 parent ea0fc0e commit 7a77f17

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

etc/config/functional.suite.dist.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ modules:
2828
url: "%MAGENTO_BASE_URL%"
2929
backend_name: "%MAGENTO_BACKEND_NAME%"
3030
browser: 'chrome'
31-
restart: true
3231
window_size: 1280x1024
3332
username: "%MAGENTO_ADMIN_USERNAME%"
3433
password: "%MAGENTO_ADMIN_PASSWORD%"

src/Magento/FunctionalTestingFramework/Extension/PageReadinessExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,7 @@ function () use ($metrics) {
187187
private function checkForNewPage($step)
188188
{
189189
try {
190-
if (!empty($this->getDriver())) {
191-
$currentUri = $this->getDriver()->_getCurrentUri();
192-
} else {
193-
throw new \Exception();
194-
}
190+
$currentUri = $this->getDriver()->_getCurrentUri();
195191

196192
if ($this->uri !== $currentUri) {
197193
$this->logDebug(

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

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

0 commit comments

Comments
 (0)