Updated tests

This commit is contained in:
Phil Hughes 2016-03-24 16:28:46 +00:00 committed by Jacob Schatz
parent dca50ac1d4
commit f870857ddd
3 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,7 @@
= render "layouts/init_auto_complete" if current_user = render "layouts/init_auto_complete" if current_user
- content_for :header_content do - content_for :header_content do
.dropdown-menu.dropdown-select .dropdown-menu.dropdown-select.dropdown-menu-projects
= dropdown_title("Go to a project") = dropdown_title("Go to a project")
= dropdown_filter("Search your projects") = dropdown_filter("Search your projects")
= dropdown_content = dropdown_content

View File

@ -100,8 +100,7 @@ feature 'Project', feature: true do
it 'click toggle and show dropdown', js: true do it 'click toggle and show dropdown', js: true do
find('.js-projects-dropdown-toggle').click find('.js-projects-dropdown-toggle').click
wait_for_ajax expect(page).to have_css('.dropdown-menu-projects .dropdown-content li', count: 1)
expect(page).to have_css('.select2-results li', count: 1)
end end
end end