From e218fb85dfe53e37c74581ee22d8f728519ac342 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Tue, 17 Mar 2020 15:44:39 +1300 Subject: [PATCH] FIX WebDriverSession autostart Mink does not autostart web driver session anymore until the first ->visit invocation Here's the breaking change: https://github.com/minkphp/Mink/commit/acf5fb1ec70b7de4902daf75301356702a26e6da SilverStripeContext assumes the session is started when it prepares for the scenario (e.g. it may change the resolution) --- src/Context/SilverStripeContext.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Context/SilverStripeContext.php b/src/Context/SilverStripeContext.php index 5a8ecfc..68e1b13 100644 --- a/src/Context/SilverStripeContext.php +++ b/src/Context/SilverStripeContext.php @@ -240,6 +240,11 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw ); } + $webDriverSession = $this->getSession(); + if (!$webDriverSession->isStarted()) { + $webDriverSession->start(); + } + $state = $this->getTestSessionState(); $this->testSessionEnvironment->startTestSession($state);