Skip to content
Snippets Groups Projects
Commit 15bc1a01 authored by Phil Hughes's avatar Phil Hughes
Browse files

added feature test

parent 56b0c46b
No related branches found
No related tags found
1 merge request!2438Added dropdown to list all projects on project header
Loading
Loading
@@ -86,6 +86,25 @@ feature 'Project', feature: true do
end
end
 
describe 'project title' do
include WaitForAjax
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace) }
before do
login_with(user)
project.team.add_user(user, Gitlab::Access::MASTER)
visit namespace_project_path(project.namespace, project)
end
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)
end
end
def remove_with_confirm(button_text, confirm_with)
click_button button_text
fill_in 'confirm_name_input', with: confirm_with
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment