summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-01-23 13:50:18 -0600
committerClement Ho <ClemMakesApps@gmail.com>2017-01-25 12:06:11 -0600
commit5bb6910006f67496551362a1bb498a46605f72ae (patch)
treede7b9976d605726f00f87731046732666658db7f
parentb55c1bc4b5fb8d259ba9f264eff607f81012fa39 (diff)
downloadgitlab-ce-fix-search-bar-spec.tar.gz
Fix search bar reset dropdown filter specfix-search-bar-spec
-rw-r--r--spec/features/issues/filtered_search/search_bar_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/features/issues/filtered_search/search_bar_spec.rb b/spec/features/issues/filtered_search/search_bar_spec.rb
index 90eb60eb337..f4e93ee8848 100644
--- a/spec/features/issues/filtered_search/search_bar_spec.rb
+++ b/spec/features/issues/filtered_search/search_bar_spec.rb
@@ -86,10 +86,6 @@ describe 'Search bar', js: true, feature: true do
end
it 'resets the dropdown filters' do
- filtered_search.set('a')
- hint_style = page.find('#js-dropdown-hint')['style']
- hint_offset = get_left_style(hint_style)
-
filtered_search.set('author:')
expect(page.all('#js-dropdown-hint .filter-dropdown .filter-dropdown-item').size).to eq(0)
@@ -98,7 +94,7 @@ describe 'Search bar', js: true, feature: true do
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(0)
end
end
end