Add test.js and test.css to disable animations during testing and include these in _head when testing
This commit is contained in:
parent
e2ffb86987
commit
7e7f266139
5 changed files with 22 additions and 0 deletions
1
app/assets/javascripts/test.js
Normal file
1
app/assets/javascripts/test.js
Normal file
|
@ -0,0 +1 @@
|
|||
$.fx.off = true;
|
17
app/assets/stylesheets/test.scss
Normal file
17
app/assets/stylesheets/test.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
* {
|
||||
-o-transition: none !important;
|
||||
-moz-transition: none !important;
|
||||
-ms-transition: none !important;
|
||||
-webkit-transition: none !important;
|
||||
transition: none !important;
|
||||
-o-transform: none !important;
|
||||
-moz-transform: none !important;
|
||||
-ms-transform: none !important;
|
||||
-webkit-transform: none !important;
|
||||
transform: none !important;
|
||||
-webkit-animation: none !important;
|
||||
-moz-animation: none !important;
|
||||
-o-animation: none !important;
|
||||
-ms-animation: none !important;
|
||||
animation: none !important;
|
||||
}
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
= stylesheet_link_tag "application", media: "all"
|
||||
= stylesheet_link_tag "print", media: "print"
|
||||
= stylesheet_link_tag "test", media: "all" if Rails.env.test?
|
||||
|
||||
= Gon::Base.render_data
|
||||
|
||||
|
@ -34,6 +35,7 @@
|
|||
= webpack_bundle_tag "common"
|
||||
= webpack_bundle_tag "main"
|
||||
= webpack_bundle_tag "raven" if current_application_settings.clientside_sentry_enabled
|
||||
= webpack_bundle_tag "test" if Rails.env.test?
|
||||
|
||||
- if content_for?(:page_specific_javascripts)
|
||||
= yield :page_specific_javascripts
|
||||
|
|
|
@ -106,6 +106,7 @@ module Gitlab
|
|||
config.assets.precompile << "xterm/xterm.css"
|
||||
config.assets.precompile << "lib/ace.js"
|
||||
config.assets.precompile << "vendor/assets/fonts/*"
|
||||
config.assets.precompile << "test.css"
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
|
|
|
@ -63,6 +63,7 @@ var config = {
|
|||
users: './users/users_bundle.js',
|
||||
raven: './raven/index.js',
|
||||
vue_merge_request_widget: './vue_merge_request_widget/index.js',
|
||||
test: './test.js',
|
||||
},
|
||||
|
||||
output: {
|
||||
|
|
Loading…
Reference in a new issue