Skip to content
Snippets Groups Projects
Commit cc7cce9c authored by Sam Beckham's avatar Sam Beckham
Browse files

Updates the specs that were looking for old btns

Ran another find + Replace on the specs
parent 92ed4027
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -76,7 +76,7 @@
 
render 'shared/issuable/approvals', form: form, issuable: merge_request, presenter: presenter
 
expect(rendered).not_to have_css('.btn-remove')
expect(rendered).not_to have_css('.btn-danger')
end
end
end
Loading
Loading
Loading
Loading
@@ -194,7 +194,7 @@
expect(page).to have_content('Developer')
end
 
accept_confirm { find(:css, 'li', text: current_user.name).find(:css, 'a.btn-remove').click }
accept_confirm { find(:css, 'li', text: current_user.name).find(:css, 'a.btn-danger').click }
 
visit group_group_members_path(group)
 
Loading
Loading
Loading
Loading
@@ -70,7 +70,7 @@
 
visit group_group_members_path(group)
 
expect(find(:css, '.project-members-page li', text: user.name)).not_to have_selector(:css, 'a.btn-remove')
expect(find(:css, '.project-members-page li', text: user.name)).not_to have_selector(:css, 'a.btn-danger')
end
 
it 'owner can not leave the group by url param if they are the last owner', :js do
Loading
Loading
Loading
Loading
@@ -64,7 +64,7 @@
expect(page).to have_content(shared_with_group.name)
 
accept_confirm do
find(:css, '#tab-groups li', text: shared_with_group.name).find(:css, 'a.btn-remove').click
find(:css, '#tab-groups li', text: shared_with_group.name).find(:css, 'a.btn-danger').click
end
 
expect(page).not_to have_content(shared_with_group.name)
Loading
Loading
Loading
Loading
@@ -17,7 +17,7 @@
fill_in("branch-search", with: "improve/awesome").native.send_keys(:enter)
 
page.within(".js-branch-improve\\/awesome") do
accept_alert { find(".btn-remove").click }
accept_alert { find(".btn-danger").click }
end
 
wait_for_requests
Loading
Loading
Loading
Loading
@@ -101,7 +101,7 @@
visit project_branches_filtered_path(project, state: 'all')
 
expect(all('.all-branches').last).to have_selector('li', count: 20)
accept_confirm { first('.js-branch-item .btn-remove').click }
accept_confirm { first('.js-branch-item .btn-danger').click }
 
expect(all('.all-branches').last).to have_selector('li', count: 19)
end
Loading
Loading
@@ -163,7 +163,7 @@
 
expect(page).to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 1)
accept_confirm { find('.js-branch-fix .btn-remove').click }
accept_confirm { find('.js-branch-fix .btn-danger').click }
 
expect(page).not_to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 0)
Loading
Loading
Loading
Loading
@@ -333,7 +333,7 @@ def auto_stop_button_selector
visit project_branches_filtered_path(project, state: 'all', search: 'feature')
 
remove_branch_with_hooks(project, user, 'feature') do
page.within('.js-branch-feature') { find('a.btn-remove').click }
page.within('.js-branch-feature') { find('a.btn-danger').click }
end
 
visit_environment(environment)
Loading
Loading
Loading
Loading
@@ -64,7 +64,7 @@
 
it 'deletes group link' do
page.within(first('.group_member')) do
accept_confirm { find('.btn-remove').click }
accept_confirm { find('.btn-danger').click }
end
wait_for_requests
 
Loading
Loading
Loading
Loading
@@ -102,7 +102,7 @@
visit_members_page
 
expect(page).not_to have_selector("#edit_project_member_#{project_member.id}")
expect(page).not_to have_selector("#project_member_#{project_member.id} .btn-remove")
expect(page).not_to have_selector("#project_member_#{project_member.id} .btn-danger")
end
end
 
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@
fill_in 'branch-search', with: 'fix'
find('#branch-search').native.send_keys(:enter)
 
expect(page).to have_css('.btn-remove.disabled')
expect(page).to have_css('.btn-danger.disabled')
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment