Commit f870857d authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Updated tests

parent dca50ac1
......@@ -65,7 +65,7 @@ module ProjectsHelper
link_to(simple_sanitize(owner.name), user_path(owner))
end
project_link = link_to simple_sanitize(project.name), project_path(project), { class: "project-item-select-holder"}
project_link = link_to simple_sanitize(project.name), project_path(project), { class: "project-item-select-holder" }
project_link += icon "chevron-down", class: "dropdown-toggle-caret js-projects-dropdown-toggle", data: { target: ".header-content", toggle: "dropdown" } if current_user
full_title = namespace_link + ' / ' + project_link
......
......@@ -18,7 +18,7 @@
= render "layouts/init_auto_complete" if current_user
- content_for :header_content do
.dropdown-menu.dropdown-select
.dropdown-menu.dropdown-select.dropdown-menu-projects
= dropdown_title("Go to a project")
= dropdown_filter("Search your projects")
= dropdown_content
......
......@@ -100,8 +100,7 @@ feature 'Project', feature: true do
it 'click toggle and show dropdown', js: true do
find('.js-projects-dropdown-toggle').click
wait_for_ajax
expect(page).to have_css('.select2-results li', count: 1)
expect(page).to have_css('.dropdown-menu-projects .dropdown-content li', count: 1)
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