diff --git a/spec/features/merge_requests/diff_notes_spec.rb b/spec/features/merge_requests/diff_notes_spec.rb index 482c280c188..a371d89f7a5 100644 --- a/spec/features/merge_requests/diff_notes_spec.rb +++ b/spec/features/merge_requests/diff_notes_spec.rb @@ -102,7 +102,7 @@ feature 'Diff notes', js: true, feature: true do context 'with an unfolded line' do before(:each) do - first('.js-unfold').click + find('.js-unfold', match: :first).click wait_for_ajax end