mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #178 from open-sausages/pulls/1.0/fix-3-7-regression
BUG Fix error when running on ss 3.7
This commit is contained in:
commit
35a5f450f6
@ -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')]")
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user