FIX WebDriverSession autostart

Mink does not autostart web driver session anymore until the first ->visit invocation

Here's the breaking change: acf5fb1ec7

SilverStripeContext assumes the session is started when it prepares for the scenario (e.g. it may change the resolution)
This commit is contained in:
Serge Latyntcev 2020-03-17 15:44:39 +13:00
parent bd4a737833
commit e218fb85df

View File

@ -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);