Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
58c9b7df
Commit
58c9b7df
authored
Feb 23, 2021
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unhide custom checkbox/radio inputs in tests so capybara can target them
parent
03fbd6cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
app/assets/stylesheets/disable_animations.scss
app/assets/stylesheets/disable_animations.scss
+0
-6
app/assets/stylesheets/test_environment.scss
app/assets/stylesheets/test_environment.scss
+11
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-0
config/application.rb
config/application.rb
+1
-0
No files found.
app/assets/stylesheets/disable_animations.scss
View file @
58c9b7df
...
...
@@ -12,9 +12,3 @@
animation
:
none
!
important
;
/* stylelint-enable property-no-vendor-prefix */
}
// Disable sticky changes bar for tests
.diff-files-changed
{
position
:
relative
!
important
;
top
:
0
!
important
;
}
app/assets/stylesheets/test_environment.scss
0 → 100644
View file @
58c9b7df
// Disable sticky changes bar for tests
.diff-files-changed
{
position
:
relative
!
important
;
top
:
0
!
important
;
}
// Un-hide inputs for @gitlab/ui custom checkboxes and radios so Capybara can target them
.custom-control-input
{
z-index
:
500
;
opacity
:
1
;
}
app/views/layouts/_head.html.haml
View file @
58c9b7df
...
...
@@ -44,6 +44,7 @@
=
yield
:page_specific_styles
=
stylesheet_link_tag_defer
"application_utilities"
=
stylesheet_link_tag
"disable_animations"
,
media:
"all"
if
Rails
.
env
.
test?
||
Gitlab
.
config
.
gitlab
[
'disable_animations'
]
=
stylesheet_link_tag
"test_environment"
,
media:
"all"
if
Rails
.
env
.
test?
=
stylesheet_link_tag_defer
"highlight/themes/
#{
user_color_scheme
}
"
...
...
config/application.rb
View file @
58c9b7df
...
...
@@ -219,6 +219,7 @@ module Gitlab
config
.
assets
.
precompile
<<
"lazy_bundles/select2.css"
config
.
assets
.
precompile
<<
"performance_bar.css"
config
.
assets
.
precompile
<<
"disable_animations.css"
config
.
assets
.
precompile
<<
"test_environment.css"
config
.
assets
.
precompile
<<
"snippets.css"
config
.
assets
.
precompile
<<
"locale/**/app.js"
config
.
assets
.
precompile
<<
"emoji_sprites.css"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment