Skip jQuery animations in all layouts when testing.
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
<%= favicon_link_tag "favicon.ico" %>
|
||||||
|
<%= render "layouts/no_animations_in_tests" if Rails.env.test? %>
|
||||||
|
|||||||
1
app/views/layouts/_no_animations_in_tests.html.erb
Normal file
1
app/views/layouts/_no_animations_in_tests.html.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<%= javascript_tag "jQuery.fx.off = true" %>
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<%= render "layouts/common_head", default_title: "Admin" %>
|
<%= render "layouts/common_head", default_title: "Admin" %>
|
||||||
<%= content_for :head %>
|
<%= content_for :head %>
|
||||||
<%= javascript_tag "jQuery.fx.off = true" if Rails.env.test? %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="admin" data-watch-form-message="<%= I18n.t('layouts.admin.watch_form_message') %>">
|
<body class="admin" data-watch-form-message="<%= I18n.t('layouts.admin.watch_form_message') %>">
|
||||||
|
|||||||
Reference in New Issue
Block a user