diff options
Diffstat (limited to 'spec/features/merge_request/user_views_diffs_spec.rb')
-rw-r--r-- | spec/features/merge_request/user_views_diffs_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/merge_request/user_views_diffs_spec.rb b/spec/features/merge_request/user_views_diffs_spec.rb index d5061657c59..09dfe41a718 100644 --- a/spec/features/merge_request/user_views_diffs_spec.rb +++ b/spec/features/merge_request/user_views_diffs_spec.rb @@ -24,7 +24,7 @@ RSpec.describe 'User views diffs', :js do page.within('.file-holder[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd"]') do expect(find('.text-file')).to have_content('fileutils') - expect(page).to have_selector('.new_line [data-linenumber="1"]', count: 1) + expect(page).to have_selector('[data-interop-type="new"] [data-linenumber="1"]') end end @@ -32,8 +32,8 @@ RSpec.describe 'User views diffs', :js do page.within('.file-holder[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd"]') do all('.js-unfold-all')[1].click - expect(page).to have_selector('.new_line [data-linenumber="24"]', count: 1) - expect(page).not_to have_selector('.new_line [data-linenumber="1"]') + expect(page).to have_selector('[data-interop-type="new"] [data-linenumber="24"]', count: 1) + expect(page).not_to have_selector('[data-interop-type="new"] [data-linenumber="1"]') end end |