summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-03 22:08:19 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-03 22:08:19 -0300
commit942fd15284df33e8e3e51beb175f38ca5cf65928 (patch)
tree22649f0e4fb71fa88aefa0d98ef0535c8d240a55
parent43f9d5d755db543df9f33bce5d386127e1b39575 (diff)
downloadgitlab-ce-942fd15284df33e8e3e51beb175f38ca5cf65928.tar.gz
Fix broken spec for Merge request > Revert modal
-rw-r--r--spec/features/user_sees_revert_modal_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/user_sees_revert_modal_spec.rb b/spec/features/user_sees_revert_modal_spec.rb
index 3b48ea4786d..d2cdade88d1 100644
--- a/spec/features/user_sees_revert_modal_spec.rb
+++ b/spec/features/user_sees_revert_modal_spec.rb
@@ -17,12 +17,14 @@ describe 'Merge request > User sees revert modal', :js do
end
it 'shows the revert modal' do
- expect(page).to have_content('Revert this merge request')
+ page.within('.modal-header') do
+ expect(page).to have_content 'Revert this merge request'
+ end
end
it 'closes the revert modal with escape keypress' do
find('#modal-revert-commit').send_keys(:escape)
- expect(page).not_to have_content('Revert this merge request')
+ expect(page).not_to have_selector('#modal-revert-commit', visible: true)
end
end