From 6a665b4ca2e5d0638bf2e778551a5c1299ce7fd4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 7 Oct 2013 23:43:30 +0200 Subject: [PATCH] Behat jQuery reference --- .../SilverStripe/Framework/Test/Behaviour/CmsUiContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php index 41f35f62e..0b95f0a82 100644 --- a/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php +++ b/tests/behat/features/bootstrap/SilverStripe/Framework/Test/Behaviour/CmsUiContext.php @@ -299,7 +299,7 @@ class CmsUiContext extends BehatContext $driver->switchToIFrame('cms-preview-iframe'); $this->getSession()->wait( 5000, - "!jQuery('iframe[name=cms-preview-iframe]').hasClass('loading')" + "window.jQuery && !window.jQuery('iframe[name=cms-preview-iframe]').hasClass('loading')" ); $driver->switchToWindow($origWindowName); }