From f31bb83d8f6d3a9bc4589aeeec1524ff07d0c156 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 2 Nov 2017 14:04:27 -0500 Subject: [PATCH] remove out-of-date comments about webdriver compatability --- spec/features/projects/branches_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 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)