diff --git a/app/assets/javascripts/admin/spree/base.js.erb b/app/assets/javascripts/admin/spree/base.js.erb index 8432fd4d7e0..1ddd4a8dd3f 100644 --- a/app/assets/javascripts/admin/spree/base.js.erb +++ b/app/assets/javascripts/admin/spree/base.js.erb @@ -21,7 +21,9 @@ jQuery(function($) { if (typeof $('.field.checkbox label').vAlign === 'function' ) $('.field.checkbox label').vAlign() - if (typeof Spree !== 'undefined') { + // We activate AdaptiveMenu only if not on webdriver + // Re-adjusting the admin menu during tests causes tests to fail. + if (!navigator.webdriver && typeof Spree !== 'undefined') { $('.main-menu-wrapper ul').AdaptiveMenu({ text: " " + Spree.translations.more + "", klass: "dropdown"