2015-12-23 02:04:40 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
feature 'Issue notes polling' do
|
|
|
|
let!(:project) { create(:project, :public) }
|
|
|
|
let!(:issue) { create(:issue, project: project) }
|
|
|
|
|
|
|
|
background do
|
|
|
|
visit namespace_project_issue_path(project.namespace, project, issue)
|
|
|
|
end
|
|
|
|
|
|
|
|
scenario 'Another user adds a comment to an issue', js: true do
|
2016-06-16 23:09:34 +05:30
|
|
|
note = create(:note, noteable: issue, project: project,
|
|
|
|
note: 'Looks good!')
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
page.execute_script('notes.refresh();')
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!')
|
|
|
|
end
|
|
|
|
end
|