summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/projects/branches_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/features/projects/branches_spec.rb b/spec/features/projects/branches_spec.rb
index 2f712341a59..7a77df83034 100644
--- a/spec/features/projects/branches_spec.rb
+++ b/spec/features/projects/branches_spec.rb
@@ -67,11 +67,7 @@ describe 'Branches' do
expect(page).to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 1)
- # To work with Chrome headless, this needs an updated version of
- # Capybara with two bug fixes:
- # * https://github.com/teamcapybara/capybara/pull/1902/
- # * https://github.com/teamcapybara/capybara/pull/1903/
- accept_alert { find('.js-branch-fix .btn-remove').click }
+ accept_confirm { find('.js-branch-fix .btn-remove').click }
expect(page).not_to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 0)