-
Notifications
You must be signed in to change notification settings - Fork 132
MQE-2162: Chrome remains running after MFTF suite finishes #734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Just to clarify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small code style suggestion, one question about an existing function.
@@ -84,6 +88,9 @@ class {{suiteName}} extends \Codeception\GroupObject | |||
if ($this->currentTestRun == $this->testCount) { | |||
print sprintf(self::$HOOK_EXECUTION_INIT, "after"); | |||
|
|||
/** @var MagentoWebDriver $webDriver */ | |||
$webDriver = $this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather we use MagentoWebDriver::class
if possible (here and all other places in this PR).
$webDriverConfig = $webDriver->_getConfig(); | ||
$webDriver->_closeSession(); | ||
if (isset($webDriverConfig['close_all_sessions']) && $webDriverConfig['close_all_sessions'] === "true") { | ||
$wdHost = sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a protected function stopAllSessions()
in WebDriver.php
, which MagentoWebDriver extends. It seems to do similarly what we do here, did you try and make it work?
Description
Jenkins Build
Contribution checklist