From 5bb6910006f67496551362a1bb498a46605f72ae Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Mon, 23 Jan 2017 13:50:18 -0600 Subject: Fix search bar reset dropdown filter spec --- spec/features/issues/filtered_search/search_bar_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1