Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
[Behat] Adjusted tests to Mink Session changes in new Mink release (#991
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mnocon authored Mar 13, 2020
1 parent 2d4b64c commit 1a27fff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Features/Context/PlatformUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ public function __construct($uri = self::PLATFORM_URI, $user = null, $password =
*/
public function beforeScenario()
{
$this->getSession()->getDriver()->maximizeWindow();
$session = $this->getSession();

if (!$session->isStarted()) {
$session->start();
}

$session->getDriver()->maximizeWindow();
}

/**
Expand Down

0 comments on commit 1a27fff

Please sign in to comment.