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
5d2a43dc
Commit
5d2a43dc
authored
Sep 13, 2021
by
Coung Ngo
Committed by
Douglas Barbosa Alexandre
Sep 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filtered search bar feature spec
https://gitlab.com/gitlab-org/gitlab/-/issues/9985
parent
5a60628d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/features/issues/filtered_search/search_bar_spec.rb
spec/features/issues/filtered_search/search_bar_spec.rb
+2
-2
No files found.
spec/features/issues/filtered_search/search_bar_spec.rb
View file @
5d2a43dc
...
@@ -89,7 +89,7 @@ RSpec.describe 'Search bar', :js do
...
@@ -89,7 +89,7 @@ RSpec.describe 'Search bar', :js do
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
original_size
)
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
original_size
)
end
end
it
'resets the dropdown filters'
,
quarantine:
'https://gitlab.com/gitlab-org/gitlab/-/issues/9985'
do
it
'resets the dropdown filters'
do
filtered_search
.
click
filtered_search
.
click
hint_offset
=
get_left_style
(
find
(
'#js-dropdown-hint'
)[
'style'
])
hint_offset
=
get_left_style
(
find
(
'#js-dropdown-hint'
)[
'style'
])
...
@@ -103,7 +103,7 @@ RSpec.describe 'Search bar', :js do
...
@@ -103,7 +103,7 @@ RSpec.describe 'Search bar', :js do
find
(
'.filtered-search-box .clear-search'
).
click
find
(
'.filtered-search-box .clear-search'
).
click
filtered_search
.
click
filtered_search
.
click
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count
:
6
)
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
minimum
:
6
)
expect
(
get_left_style
(
find
(
'#js-dropdown-hint'
)[
'style'
])).
to
eq
(
hint_offset
)
expect
(
get_left_style
(
find
(
'#js-dropdown-hint'
)[
'style'
])).
to
eq
(
hint_offset
)
end
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