BUG Fix error when running on ss 3.7

This commit is contained in:
Damian Mooyman 2018-06-01 16:13:33 +12:00
parent 8bb5ff5a1f
commit 3f1f623f19
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
2 changed files with 4 additions and 4 deletions

View File

@ -843,7 +843,7 @@ JS;
public function iWaitXUntilISee($wait, $selector) {
$page = $this->getSession()->getPage();
$this->spin(function($page) use ($page, $selector){
$this->spin(function() use ($page, $selector){
$element = $page->find('css', $selector);
if(empty($element)) {
@ -864,7 +864,7 @@ JS;
*/
public function iWaitUntilISee($selector) {
$page = $this->getSession()->getPage();
$this->spin(function($page) use ($page, $selector){
$this->spin(function() use ($page, $selector){
$element = $page->find('css', $selector);
if(empty($element)){
return false;
@ -885,7 +885,7 @@ JS;
public function iWaitUntilISeeText($text){
$page = $this->getSession()->getPage();
$session = $this->getSession();
$this->spin(function($page) use ($page, $session, $text) {
$this->spin(function() use ($page, $session, $text) {
$element = $page->find(
'xpath',
$session->getSelectorsHandler()->selectorToXpath("xpath", ".//*[contains(text(), '$text')]")

View File

@ -342,7 +342,7 @@ class FixtureContext extends BehatContext
\Versioned::reading_stage('Live');
$clone = clone $obj;
$clone->delete();
\Versioned::reading_stage($oldMode);
\Versioned::set_reading_mode($oldMode);
break;
case 'deleted':
$obj->delete();