Commit 262c8f35 authored by Winnie Hellmann's avatar Winnie Hellmann

Add failing test for commit ID in discussion header

(cherry picked from commit cd7ed764c2d5902b88cb3842ca34ae7f9febfc37)
parent 66518762
...@@ -88,5 +88,13 @@ describe 'Merge request > User sees discussions', :js do ...@@ -88,5 +88,13 @@ describe 'Merge request > User sees discussions', :js do
expect(page).to have_content "started a discussion on commit #{note.commit_id[0...7]}" expect(page).to have_content "started a discussion on commit #{note.commit_id[0...7]}"
end end
end end
context 'a commit non-diff discussion' do
let(:note) { create(:discussion_note_on_commit, project: project) }
it 'displays correct header' do
expect(page).to have_content "commented on commit #{note.commit_id[0...7]}"
end
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment