From 89d269e4f52fcd3621bcc67213713c5d74b138da Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 13 Apr 2016 14:13:30 +0200 Subject: [PATCH] fixes flacky test: "$ is undefined" --- spec/support/phantomjs_ext/disable_js_fx.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/support/phantomjs_ext/disable_js_fx.js b/spec/support/phantomjs_ext/disable_js_fx.js index 2b97f0a0f..eae828ac8 100644 --- a/spec/support/phantomjs_ext/disable_js_fx.js +++ b/spec/support/phantomjs_ext/disable_js_fx.js @@ -1,3 +1,5 @@ document.addEventListener("DOMContentLoaded", function() { - $.fx.off = true; + if (typeof $ !== 'undefined') { + $.fx.off = true; + } });