fixes tests failing
This commit is contained in:
parent
eb162c2b27
commit
8ee6abaaf4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue