From 1a27fff712956c56a76f67f1a040c083c652b10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Fri, 13 Mar 2020 13:05:34 +0100 Subject: [PATCH] [Behat] Adjusted tests to Mink Session changes in new Mink release (#991) --- Features/Context/PlatformUI.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Features/Context/PlatformUI.php b/Features/Context/PlatformUI.php index 128f79d23..ddba580be 100644 --- a/Features/Context/PlatformUI.php +++ b/Features/Context/PlatformUI.php @@ -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(); } /**