Added reloading to commit non-diff discussion note spec

This commit is contained in:
Constance Okoghenun 2019-01-18 21:23:47 +01:00
parent c1c0c0c21b
commit b3d748b8ad

View file

@ -94,6 +94,8 @@ describe 'Merge request > User sees discussions', :js do
it 'displays correct header' do
page.within(find("#note_#{note.id}", match: :first)) do
refresh # Trigger a refresh of notes.
wait_for_requests
expect(page).to have_content "commented on commit #{note.commit_id[0...7]}"
end
end