Skip jQuery animations in all layouts when testing.

This commit is contained in:
Javier Martín
2018-06-24 02:49:55 +02:00
parent 6e4f697cea
commit 9198b1af03
3 changed files with 2 additions and 1 deletions

View File

@@ -6,3 +6,4 @@
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
<%= favicon_link_tag "favicon.ico" %>
<%= render "layouts/no_animations_in_tests" if Rails.env.test? %>

View File

@@ -0,0 +1 @@
<%= javascript_tag "jQuery.fx.off = true" %>

View File

@@ -4,7 +4,6 @@
<head>
<%= render "layouts/common_head", default_title: "Admin" %>
<%= content_for :head %>
<%= javascript_tag "jQuery.fx.off = true" if Rails.env.test? %>
</head>
<body class="admin" data-watch-form-message="<%= I18n.t('layouts.admin.watch_form_message') %>">