Commit e82ed3f4 authored by charlieablett's avatar charlieablett

Abstract out method from spec to support

parent 6b8f6075
......@@ -129,6 +129,7 @@ describe 'Issue Boards', :js do
click_link 'Unassigned'
end
close_dropdown_menu_if_visible
wait_for_requests
expect(page).to have_content('No assignee')
......
......@@ -149,4 +149,10 @@ module FilteredSearchHelpers
loop until find('.filtered-search').value.strip == text
end
end
def close_dropdown_menu_if_visible
find('.dropdown-menu-toggle', visible: :all).tap do |toggle|
toggle.click if toggle.visible?
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