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
23d43243
Commit
23d43243
authored
Dec 16, 2016
by
Lin Jen-Shin
Committed by
Clement Ho
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix various styles for rubocop
parent
464dddf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/features/issues/filtered_search/dropdown_hint_spec.rb
spec/features/issues/filtered_search/dropdown_hint_spec.rb
+2
-2
spec/features/issues/filtered_search/search_bar_spec.rb
spec/features/issues/filtered_search/search_bar_spec.rb
+4
-4
No files found.
spec/features/issues/filtered_search/dropdown_hint_spec.rb
View file @
23d43243
...
...
@@ -27,7 +27,7 @@ describe 'Dropdown hint', js: true, feature: true do
describe
'behavior'
do
before
do
expect
(
page
).
to
have_css
(
js_dropdown_hint
,
visible:
false
)
filtered_search
.
click
()
filtered_search
.
click
end
it
'opens when the search bar is first focused'
do
...
...
@@ -35,7 +35,7 @@ describe 'Dropdown hint', js: true, feature: true do
end
it
'closes when the search bar is unfocused'
do
find
(
'body'
).
click
()
find
(
'body'
).
click
expect
(
page
).
to
have_css
(
js_dropdown_hint
,
visible:
false
)
end
end
...
...
spec/features/issues/filtered_search/search_bar_spec.rb
View file @
23d43243
...
...
@@ -53,14 +53,14 @@ describe 'Search bar', js: true, feature: true do
end
it
'resets the dropdown hint filter'
do
filtered_search
.
click
()
filtered_search
.
click
original_size
=
page
.
all
(
'#js-dropdown-hint .filter-dropdown .filter-dropdown-item'
).
size
filtered_search
.
set
(
'author'
)
expect
(
page
.
all
(
'#js-dropdown-hint .filter-dropdown .filter-dropdown-item'
).
size
).
to
eq
(
1
)
find
(
'.filtered-search-input-container .clear-search'
).
click
filtered_search
.
click
()
filtered_search
.
click
expect
(
page
.
all
(
'#js-dropdown-hint .filter-dropdown .filter-dropdown-item'
).
size
).
to
eq
(
original_size
)
end
...
...
@@ -73,9 +73,9 @@ describe 'Search bar', js: true, feature: true do
expect
(
page
.
all
(
'#js-dropdown-hint .filter-dropdown .filter-dropdown-item'
).
size
).
to
eq
(
0
)
find
(
'.filtered-search-input-container .clear-search'
).
click
filtered_search
.
click
()
filtered_search
.
click
expect
(
page
.
all
(
'#js-dropdown-hint .filter-dropdown .filter-dropdown-item'
).
size
).
to
be
>
0
expect
(
get_left_style
(
page
.
find
(
'#js-dropdown-hint'
)[
'style'
])).
to
eq
hint_offset
expect
(
get_left_style
(
page
.
find
(
'#js-dropdown-hint'
)[
'style'
])).
to
eq
(
hint_offset
)
end
end
end
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