require'spec_helper'feature'Diffs URL',js: true,feature: truedobeforedologin_as:admin@merge_request=create(:merge_request)@project=@merge_request.source_projectendcontext'when visit with */* as accept header'dobefore(:each)dopage.driver.add_header('Accept','*/*')endit'renders the notes'docreate:note_on_merge_request,project: @project,noteable: @merge_request,note: 'Rebasing with master'visitdiffs_namespace_project_merge_request_path(@project.namespace,@project,@merge_request)# Load notes and diff through AJAXexpect(page).tohave_css('.note-text',visible: false,text: 'Rebasing with master')expect(page).tohave_css('.diffs.tab-pane.active')endendend