diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2015-12-15 14:02:28 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2015-12-15 14:02:28 +0000 |
commit | 4493d3fd556af6ded47f940f258b0fc26c9eb3e8 (patch) | |
tree | 3879f17a3a175e13d7ebaf33dc2b06a1e6ad4f6b /spec | |
parent | 9451db3819ae45734c4343e55a74d347cdacf70d (diff) | |
parent | 8fe821cfa5acea2a4ab1fce7f35a76455d5a1cac (diff) | |
download | gitlab-ce-4493d3fd556af6ded47f940f258b0fc26c9eb3e8.tar.gz |
Merge branch 'tests/note-polling' into 'master'
Add feature specs for note polling
Ref. #4032, !2084
cc @rspeicher
See merge request !2086
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/note_polling_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/issues/note_polling_spec.rb b/spec/features/issues/note_polling_spec.rb new file mode 100644 index 00000000000..e4efdbe2421 --- /dev/null +++ b/spec/features/issues/note_polling_spec.rb @@ -0,0 +1,16 @@ +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 + note = create(:note_on_issue, noteable: issue, note: 'Looks good!') + page.execute_script('notes.refresh();') + expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!') + end +end |