Skip to content

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

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

okolesnyk
Copy link
Member

@okolesnyk okolesnyk commented Jun 6, 2020

Description

  • MQE-2162: Chrome remains running after MFTF suite finishes

Jenkins Build

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@coveralls
Copy link

Coverage Status

Coverage remained the same at 55.85% when pulling 5079cca on MQE-2162 into e36fc50 on 3.0.0-RC4.

@coveralls
Copy link

coveralls commented Jun 6, 2020

Coverage Status

Coverage remained the same at 55.85% when pulling 23d8693 on MQE-2162 into e36fc50 on 3.0.0-RC4.

@okolesnyk
Copy link
Member Author

Just to clarify
Attached build is failing due to latest changes merged to security-package. Known issue not caused by mftf.

Copy link
Contributor

@KevinBKozan KevinBKozan left a 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');
Copy link
Contributor

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(
Copy link
Contributor

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?

@okolesnyk okolesnyk merged commit 8905c10 into 3.0.0-RC4 Jun 8, 2020
@okolesnyk okolesnyk deleted the MQE-2162 branch June 8, 2020 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants