Commit 6390a219 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch '9985-issues-filtered_search-search_bar_spec-rb-job-failed-167295868' into 'master'

Fix feature spec in `issues/filtered_search/search_bar_spec.rb`

See merge request gitlab-org/gitlab!70203
parents c09cd36b 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment