Commit 23d43243 authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Clement Ho

Fix various styles for rubocop

parent 464dddf4
......@@ -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
......
......@@ -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
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