File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
src/Magento/FunctionalTestingFramework/Extension Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ modules:
28
28
url : " %MAGENTO_BASE_URL%"
29
29
backend_name : " %MAGENTO_BACKEND_NAME%"
30
30
browser : ' chrome'
31
- restart : true
32
31
window_size : 1280x1024
33
32
username : " %MAGENTO_ADMIN_USERNAME%"
34
33
password : " %MAGENTO_ADMIN_PASSWORD%"
Original file line number Diff line number Diff line change @@ -187,11 +187,7 @@ function () use ($metrics) {
187
187
private function checkForNewPage ($ step )
188
188
{
189
189
try {
190
- if (!empty ($ this ->getDriver ())) {
191
- $ currentUri = $ this ->getDriver ()->_getCurrentUri ();
192
- } else {
193
- throw new \Exception ();
194
- }
190
+ $ currentUri = $ this ->getDriver ()->_getCurrentUri ();
195
191
196
192
if ($ this ->uri !== $ currentUri ) {
197
193
$ this ->logDebug (
Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ public function afterStep(\Codeception\Event\StepEvent $e)
122
122
// @codingStandardsIgnoreStart
123
123
$ webDriver = $ this ->getModule ("\Magento\FunctionalTestingFramework\Module\MagentoWebDriver " )->webDriver ;
124
124
// @codingStandardsIgnoreEnd
125
- if (!empty ($ webDriver )) {
126
- ErrorLogger::getInstance ()->logErrors ($ webDriver , $ e );
127
- }
125
+ ErrorLogger::getInstance ()->logErrors ($ webDriver , $ e );
128
126
}
129
127
}
You can’t perform that action at this time.
0 commit comments