mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
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:
parent
bd4a737833
commit
e218fb85df
@ -240,6 +240,11 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$webDriverSession = $this->getSession();
|
||||||
|
if (!$webDriverSession->isStarted()) {
|
||||||
|
$webDriverSession->start();
|
||||||
|
}
|
||||||
|
|
||||||
$state = $this->getTestSessionState();
|
$state = $this->getTestSessionState();
|
||||||
$this->testSessionEnvironment->startTestSession($state);
|
$this->testSessionEnvironment->startTestSession($state);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user