Commit 22e98fd0 authored by Luke Bennett's avatar Luke Bennett

Fix protected branch example failing on master

Failing due to updates in capybara and selenium driver.
parent d0af8c32
- can_admin_project = can?(current_user, :admin_project, @project)
%tr.js-protected-branch-edit-form{ data: { url: namespace_project_protected_branch_path(@project.namespace, @project, protected_branch) } }
%tr.qa-protected-branch.js-protected-branch-edit-form{ data: { url: namespace_project_protected_branch_path(@project.namespace, @project, protected_branch) } }
%td
%span.ref-name= protected_branch.name
......
......@@ -177,9 +177,9 @@ shared_examples "protected branches > access control > EE" do
it 'unprotect/delete can be performed by a maintainer' do
visit project_protected_branches_path(project)
expect do
expect(page).to have_selector('.qa-protected-branch')
accept_alert { click_on 'Unprotect' }
end.to change(ProtectedBranch, :count).to(0)
expect(page).not_to have_selector('.qa-protected-branch')
end
context 'with unprotect access levels' do
......
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