diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-13 02:44:45 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-15 16:19:35 +0300 |
commit | 3e789eab8be93c45685c417488da102d996209ba (patch) | |
tree | cb8adfb275f4b94d567b894191cc4ac09e9a4754 /spec | |
parent | 9470d05c70c15df75ae6be45812967abf89ae59a (diff) |
Add minor fixes in note polling specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/note_polling_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/issues/note_polling_spec.rb b/spec/features/issues/note_polling_spec.rb index 1698a0a3e5d..5cf3dcf8904 100644 --- a/spec/features/issues/note_polling_spec.rb +++ b/spec/features/issues/note_polling_spec.rb @@ -9,10 +9,8 @@ feature 'Issue notes polling' do end scenario 'Another user adds a comment to an issue', js: true do - note = create(:note_on_issue, noteable: issue, - project_id: project.project_id, - note: 'Looks good!') - sleep 16 # refresh interval in notes.js.coffee, 15 seconds + note = create(:note_on_issue, noteable: issue, note: 'Looks good!') + sleep 15 # refresh interval in notes.js.coffee is 15 seconds expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!') end end |