Commit 7b0f9f82 authored by Robert Speicher's avatar Robert Speicher

Merge branch '6573-extract-ee-spec-features-boards-ce' into 'master'

CE: Resolve "Extract EE specific files/lines for spec/features/boards"

See merge request gitlab-org/gitlab-ce!27110
parents 7e22054a 4e95aa3d
......@@ -2,6 +2,7 @@ require 'rails_helper'
describe 'Issue Boards', :js do
include BoardHelpers
include FilteredSearchHelpers
let(:user) { create(:user) }
let(:user2) { create(:user) }
......@@ -129,6 +130,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