Merge branch 'da-fix-broken-master' into 'master'

Fix broken spec for Merge request > Revert modal

See merge request gitlab-org/gitlab-ce!26961
This commit is contained in:
Stan Hu 2019-04-04 02:31:55 +00:00
commit 74ace2a445
1 changed files with 4 additions and 2 deletions

View File

@ -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