diff options
Diffstat (limited to 'spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb')
-rw-r--r-- | spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb b/spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb index e47f9ff2660..38546fd629d 100644 --- a/spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb +++ b/spec/features/merge_request/user_sees_check_out_branch_modal_spec.rb @@ -18,8 +18,8 @@ RSpec.describe 'Merge request > User sees check out branch modal', :js do expect(page).to have_content('Check out, review, and merge locally') end - it 'closes the check out branch modal with escape keypress' do - find('#modal_merge_info').send_keys(:escape) + it 'closes the check out branch modal with the close action' do + find('.modal button[aria-label="Close"]').click expect(page).not_to have_content('Check out, review, and merge locally') end |