Commit 8ee6abaa authored by Jacob Schatz's avatar Jacob Schatz

fixes tests failing

parent eb162c2b
......@@ -25,7 +25,7 @@
- can_edit = can?(current_user, :admin_project, @project)
- if access || can_edit
%span.dropdown.project-settings-dropdown
%a.dropdown-new.btn.btn-gray.notifications-btn#notifications-button{href: '#', 'data-toggle' => 'dropdown'}
%a.dropdown-new.btn.btn-gray#project-settings-button{href: '#', 'data-toggle' => 'dropdown'}
= icon('cog')
= icon('angle-down')
%ul.dropdown-menu.dropdown-menu-right
......@@ -37,7 +37,7 @@
%li
= link_to leave_namespace_project_project_members_path(@project.namespace, @project),
data: { confirm: leave_project_message(@project) }, method: :delete, title: 'Leave project' do
Leave project
Leave Project
.project-repo-buttons
.split-one.count-buttons
......
......@@ -81,7 +81,10 @@ feature 'Project', feature: true do
end
it { expect(page).to have_content('You have Master access to this project.') }
it { expect(page).to have_link('Leave this project') }
it {
find('#project-settings').click
expect(page).to have_link('Leave Project')
}
end
def remove_with_confirm(button_text, confirm_with)
......
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