diff options
Diffstat (limited to 'spec/features/merge_request/user_posts_notes_spec.rb')
-rw-r--r-- | spec/features/merge_request/user_posts_notes_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/merge_request/user_posts_notes_spec.rb b/spec/features/merge_request/user_posts_notes_spec.rb index b54addce993..a4867313a5c 100644 --- a/spec/features/merge_request/user_posts_notes_spec.rb +++ b/spec/features/merge_request/user_posts_notes_spec.rb @@ -153,12 +153,14 @@ describe 'Merge request > User posts notes', :js do it 'shows the delete link' do page.within('.note-attachment') do - is_expected.to have_css('.js-note-attachment-delete') + is_expected.to have_css('button[title="Delete this attachment"]') end end it 'removes the attachment div and resets the edit form' do - accept_confirm { find('.js-note-attachment-delete').click } + find('button[title="Delete this attachment"]').click + click_button('Remove attachment') + is_expected.not_to have_css('.note-attachment') is_expected.not_to have_css('.current-note-edit-form') wait_for_requests |